CVE-2023-25157Geoserver SQL Injection
GeoServer OGC Filter SQL Injection Vulnerabilities
Published Feb 22, 2023 · Updated Oct 28, 2026 · Also known as GHSA-7g5f-wrx8-5ccf
Key Facts
Patch immediately- CVE-2023-25157 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Geoserver (Osgeo), org.geoserver.community:gs-jdbcconfig (maven).
- It is exploited in the wild, listed in Industry KEV feed since Sep 22, 2020. No public exploit code is known.
- EPSS estimates a 86% probability of exploitation in the next 30 days.
- Fixed versions are available, including org.geoserver.community:gs-jdbcconfig 2.21.4, org.geoserver.community:gs-jdbcconfig 2.22.2, Geoserver 2.18.7.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
86%
Higher than 99.7% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
68/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Sep 22, 2020
-883 days after publication
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
0
Proof-of-concept links
In-the-wild evidence
9
Reports of active use
Advisories And Exploit References
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2023-25157
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2023-25157
- advisoryGHSA advisory
- advisoryhttps://github.com/geoserver/geoserver/security/advisories/GHSA-7g5f-wrx8-5ccf
- patchhttps://github.com/geoserver/geoserver/commit/145a8af798590288d270b240235e89c8f0b62e1d
Description
GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. GeoServer includes support for the OGC Filter expression language and the OGC Common Query Language (CQL) as part of the Web Feature Service (WFS) and Web Map Service (WMS) protocols. CQL is also supported through the Web Coverage Service (WCS) protocol for ImageMosaic coverages. Users are advised to upgrade to either version 2.21.4, or version 2.22.2 to resolve this issue. Users unable to upgrade should disable the PostGIS Datastore encode functions setting to mitigate strEndsWith, strStartsWith and PropertyIsLike misuse and enable the PostGIS DataStore preparedStatements setting to mitigate the FeatureId misuse.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| Industry KEV feed | Sep 22, 2020 | n/a | Not reported |
Affected Products
3 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| GeoserverOsgeo | >= 2.22.0, < 2.22.2 | 2.18.7 |
| org.geoserver.community:gs-jdbcconfigmaven | See advisory | 2.22.2 |
Patched Releases
org.geoserver.community:gs-jdbcconfig
2.21.4, 2.22.2
Geoserver
2.18.7
Timeline
Added to Industry KEV feed
Sep 22, 2020
Publicly disclosed
Feb 22, 2023
Last updated
Oct 28, 2026
Weakness Type
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
- advisorycve.org · CVERecord
- advisorynvd.nist.gov · CVE-2023-25157
- advisoryGHSA advisory
- advisoryhttps://github.com/geoserver/geoserver/security/advisories/GHSA-7g5f-wrx8-5ccf
- patchhttps://github.com/geoserver/geoserver/commit/145a8af798590288d270b240235e89c8f0b62e1d
FAQ
Common Questions.
GeoServer is an open source software server written in Java that allows users to share and edit geospatial data.
Affected: Geoserver (Osgeo) versions >= 2.22.0, < 2.22.2; org.geoserver.community:gs-jdbcconfig (maven). The full list is in the CVE brief.
It is exploited in the wild, listed in Industry KEV feed since Sep 22, 2020.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including org.geoserver.community:gs-jdbcconfig 2.21.4, org.geoserver.community:gs-jdbcconfig 2.22.2, Geoserver 2.18.7.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2023-25157 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo