CVE-2023-25157
CriticalExploitedGeoServer OGC Filter SQL Injection Vulnerabilities
Published Feb 22, 2023 · Updated Sep 10, 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 85% 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.
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)
85%
Higher than 99.7% of all scored CVEs
Exploited in the wild
Yes
1 catalog listing
Public exploit code
None known
Get the full CVE-2023-25157 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
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 |
Required action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
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
Sep 10, 2026
Weakness Type
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
- advisoryGHSA advisory
- advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2023/25xxx/CVE-2023-25157.json
- advisoryhttps://github.com/geoserver/geoserver/security/advisories/GHSA-7g5f-wrx8-5ccf
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2023-25157
- 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 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo