CVE-2023-25158Osgeo Geotools
Critical 9.8 No auth needed
Follow: this CVE · Osgeo · Osgeo Geotools We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 70
- Auth required
- No
- Published
- Feb 21, 2023
- Updated
- Nov 30, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-89
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Geotools.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.geotools:gt-jdbc |
≥ 28.0 < 28.2 |
28.2 |
— |
| Maven | org.geotools:gt-jdbc |
≥ 27.0 < 27.4 |
27.4 |
— |
| Maven | org.geotools:gt-jdbc |
≥ 26.0 < 26.7 |
26.7 |
— |
| Maven | org.geotools:gt-jdbc |
≥ 25.0 < 25.7 |
25.7 |
— |
| Maven | org.geotools:gt-jdbc |
< 24.7 |
24.7 |
— |
Per OSV / GitHub Advisories (GHSA-99c3-qc2q-p94m). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| osgeo | geotools | < 24.7 |
| osgeo | geotools | ≥ 25.0 < 25.7 |
| osgeo | geotools | ≥ 26.0 < 26.7 |
| osgeo | geotools | ≥ 27.0 < 27.4 |
| osgeo | geotools | ≥ 28.0 < 28.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Mitigation Vendor Advisory