Vulnerability Details : CVE-2023-25158
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.
Vulnerability category: Sql Injection
Products affected by CVE-2023-25158
- cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*
- cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*
- cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*
- cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*
- cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-25158
1.14%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 77 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-25158
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST | |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
GitHub, Inc. |
CWE ids for CVE-2023-25158
-
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.Assigned by:
- nvd@nist.gov (Primary)
- security-advisories@github.com (Secondary)
References for CVE-2023-25158
-
https://github.com/geotools/geotools/commit/64fb4c47f43ca818c2fe96a94651bff1b3b3ed2b
Merge pull request from GHSA-99c3-qc2q-p94m · geotools/geotools@64fb4c4 · GitHubPatch
-
https://github.com/geotools/geotools/security/advisories/GHSA-99c3-qc2q-p94m
OGC Filter SQL Injection Vulnerabilities · Advisory · geotools/geotools · GitHubMitigation;Vendor Advisory
Jump to