Unfiltered SQL Injection in Geotools
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| geotools | geotools | 28.0 to before 28.2; before 27.4 | 28.2, 27.4 | Patch available | CNA |
| — | org.geotools:gt-jdbc (Maven) | 28.0 to before 28.2 | 28.2 | Patch available | GHSA-99c3-qc2q-p94m |
| — | org.geotools:gt-jdbc (Maven) | 27.0 to before 27.4 | 27.4 | Patch available | GHSA-99c3-qc2q-p94m |
| — | org.geotools:gt-jdbc (Maven) | 26.0 to before 26.7 | 26.7 | Patch available | GHSA-99c3-qc2q-p94m |
| — | org.geotools:gt-jdbc (Maven) | 25.0 to before 25.7 | 25.7 | Patch available | GHSA-99c3-qc2q-p94m |
| — | org.geotools:gt-jdbc (Maven) | before 24.7 | 24.7 | Patch available | GHSA-99c3-qc2q-p94m |
- geotools Vendorgeotools Affected 28.0 to before 28.2; before 27.4 Fixed in 28.2, 27.4 Patch available CNA
- org.geotools:gt-jdbc (Maven) Vendor— Affected 28.0 to before 28.2 Fixed in 28.2 Patch available GHSA-99c3-qc2q-p94m
- org.geotools:gt-jdbc (Maven) Vendor— Affected 27.0 to before 27.4 Fixed in 27.4 Patch available GHSA-99c3-qc2q-p94m
- org.geotools:gt-jdbc (Maven) Vendor— Affected 26.0 to before 26.7 Fixed in 26.7 Patch available GHSA-99c3-qc2q-p94m
- org.geotools:gt-jdbc (Maven) Vendor— Affected 25.0 to before 25.7 Fixed in 25.7 Patch available GHSA-99c3-qc2q-p94m
- org.geotools:gt-jdbc (Maven) Vendor— Affected before 24.7 Fixed in 24.7 Patch available GHSA-99c3-qc2q-p94m
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:* | before 24.7; 25.0 to before 25.7; 26.0 to before 26.7; 27.0 to before 27.4; 28.0 to before 28.2 | Vulnerable | geotools |
- cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:* Versions before 24.7; 25.0 to before 25.7; 26.0 to before 26.7; 27.0 to before 27.4; 28.0 to before 28.2 Vulnerable ·geotools
Remediation
- Fix · CNA geotools (geotools) Fixed in 28.2, 27.4
- Fix · GHSA-99c3-qc2q-p94m org.geotools:gt-jdbc (Maven) Fixed in 28.2 Advisory →
- Fix · GHSA-99c3-qc2q-p94m org.geotools:gt-jdbc (Maven) Fixed in 27.4 Advisory →
- Fix · GHSA-99c3-qc2q-p94m org.geotools:gt-jdbc (Maven) Fixed in 26.7 Advisory →
- Fix · GHSA-99c3-qc2q-p94m org.geotools:gt-jdbc (Maven) Fixed in 25.7 Advisory →
- Fix · GHSA-99c3-qc2q-p94m org.geotools:gt-jdbc (Maven) Fixed in 24.7 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-25158
- 2026-10-03 Alias added: GHSA-99c3-qc2q-p94m
References
More Geotools vulnerabilities
- TI-2024-24187 Remote Code Execution (RCE) vulnerability in evaluating property name expressions in Geoserver KEVCVSS 3.1CRITICAL 9.8
- TI-2025-21556 GeoTools, GeoServer, and GeoNetwork XML External Entity (XXE) Processing Vulnerability in XSD schema handling CVSS 3.1CRITICAL 9.9
- TI-2022-08631 Unchecked JNDI lookups in GeoTools CVSS 3.1HIGH 8.2
Sources
- CVE-2023-25158 · CVE Program
- CVE-2023-25158 · NVD
- FIRST EPSS
- GHSA-99c3-qc2q-p94m · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences