CVE-2023-25157: geoserver SQL Injection
Vulnerability summary
CVE-2023-25157 is a critical (CVSS 9.8) SQL Injection vulnerability in geoserver. EPSS estimates a 85.25% chance of exploitation in the next 30 days, higher than 99.7% of scored vulnerabilities.
Timeline
- 21-02-2023PublishedVulnerability first disclosed.
- 10-03-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · MavenEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
85.25%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
0.00 pp
From 85.25% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Geoserver1 product
- geoserver≥ 2.22.0, < 2.22.2 | < 2.21.4
Org.geoserver.community1 product
- gs-jdbcconfig< 2.21.4 | ≥ 2.22.0, < 2.22.2
Osgeo1 product
- geoserver< 2.18.7 | ≥ 2.19.0, < 2.19.7 | ≥ 2.20.0, < 2.20.7 | ≥ 2.21.0, < 2.21.4 | ≥ 2.22.0, < 2.22.2
3 vendors · 3 products
References
4 links- github.com/geoserver/geoserver/security/advisories/GHSA-7g5f-wrx8-5ccfX Refsource CONFIRMWEBVendor Advisory
- github.com/geoserver/geoserver/commit/145a8af798590288d270b240235e89c8f0b62e1dX Refsource MISCWEBPatch