CVE-2023-25158
CRITICAL 9.8CVSS 3.1GeoTools OGC Filter SQL Injection Vulnerabilities
GeoTools is an open source Java library that provides tools for geospatial data. GeoTools includes support for OGC Filter expression language parsing, encoding and execution against a range of datastore. SQL Injection Vulnerabilities have been found when executing OGC Filters with JDBCDataStore implementations. Users are advised to upgrade to either version 27.4 or to 28.2 to resolve this issue. Users unable to upgrade may disable encode functions for PostGIS DataStores or enable prepared statements for JDBCDataStores as a partial mitigation.
- Published
- 21 Feb 2023
- Last modified
- 30 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- GHSA-99c3-qc2q-p94m
- Sources
- NVDJSONOSV GHSA-99c3-qc2q-p94mJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | osgeo | geotoolscpe:2.3:a:osgeo:geotools:*:*:*:*:*:*:*:* |
< 24.7 | 24.7 |
| NVD | osgeo | geotoolscpe:2.3:a:osgeo:geotools:*:*:*:*:*:*:*:* |
>= 25.0, < 25.7 | 25.7 |
| NVD | osgeo | geotoolscpe:2.3:a:osgeo:geotools:*:*:*:*:*:*:*:* |
>= 26.0, < 26.7 | 26.7 |
| NVD | osgeo | geotoolscpe:2.3:a:osgeo:geotools:*:*:*:*:*:*:*:* |
>= 27.0, < 27.4 | 27.4 |
| NVD | osgeo | geotoolscpe:2.3:a:osgeo:geotools:*:*:*:*:*:*:*:* |
>= 28.0, < 28.2 | 28.2 |
| OSV | Maven | org.geotools:gt-jdbc | >= 28.0, < 28.2 | 28.2 |
| OSV | Maven | org.geotools:gt-jdbc | >= 27.0, < 27.4 | 27.4 |
| OSV | Maven | org.geotools:gt-jdbc | >= 26.0, < 26.7 | 26.7 |
| OSV | Maven | org.geotools:gt-jdbc | >= 25.0, < 25.7 | 25.7 |
| OSV | Maven | org.geotools:gt-jdbc | < 24.7 | 24.7 |
References
- https://github.com/geotools/geotools/commit/64fb4c47f43ca818c2fe96a94651bff1b3b3ed2b · Patch, WEB
- https://github.com/geotools/geotools/security/advisories/GHSA-99c3-qc2q-p94m · Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-25158 · ADVISORY
- https://github.com/geotools/geotools · PACKAGE
History
- 30 Nov 2026 19:41 UTC · NVD: affected list changed (5 entries)
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 21 Feb 2023)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 22 Feb 2023)