Home / geoserver / geoserver / CVE-2023-25157
CVE-2023-25157: is it exploited, and which versions of geoserver are affected and fixed?
CVE-2023-25157 is a SQL injection vulnerability in geoserver. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:39 UTC). Affected: org.geoserver.community:gs-jdbcconfig before 2.21.4 and org.geoserver.community:gs-jdbcconfig from 2.22.0 before 2.22.2 (GitHub advisory GHSA-7g5f-wrx8-5ccf). Fixed in 2.21.4 and 2.22.2 (GitHub advisory GHSA-7g5f-wrx8-5ccf). Severity: Critical (9.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:39 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:41 UTC.
What is CVE-2023-25157?
Unfiltered SQL Injection Vulnerabilities in Geoserver
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.
From the CVE record by GitHub_M, last updated March 10, 2025, 21:07 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| geoserver | geoserver | >= 2.22.0, < 2.22.2 < 2.21.4 |
As the CVE record by GitHub_M states it, last updated March 10, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.geoserver.community:gs-jdbcconfig | < 2.21.4 | 2.21.4 | GHSA-7g5f-wrx8-5ccf |
| Maven | org.geoserver.community:gs-jdbcconfig | >= 2.22.0, < 2.22.2 | 2.22.2 | GHSA-7g5f-wrx8-5ccf |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated February 22, 2023. Summary: GeoServer OGC Filter SQL Injection Vulnerabilities.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| osgeo | geoserver | before 2.18.7 | application |
| osgeo | geoserver | from 2.19.0 before 2.19.7 | application |
| osgeo | geoserver | from 2.20.0 before 2.20.7 | application |
| osgeo | geoserver | from 2.21.0 before 2.21.4 | application |
| osgeo | geoserver | from 2.22.0 before 2.22.2 | application |
NVD analysis (status Modified), last modified June 17, 2026, 05:40 UTC.
How severe is CVE-2023-25157?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | GitHub_M |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-25157 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: total (CISA ADP, March 10, 2025)
- EPSS
- 85.8% probability of exploitation activity in the next 30 days, percentile 99.7 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Where are the vendor advisories and references?
- https://github.com/geoserver/geoserver/security/advisories/GHSA-7g5f-wrx8-5ccf x_refsource_CONFIRM
- https://github.com/geoserver/geoserver/commit/145a8af798590288d270b240235e89c8f0b62e1d x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- February 3, 2023
- Published
- February 21, 2023, 21:00 UTC
- CVE record updated
- March 10, 2025, 21:07 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 05:40 UTC
- Last checked
- CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:41 UTC; KEV December 3, 2026, 15:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect geoserver?
- Nov 30, 2026CVE-2026-129243 geoserver: incorrect authorization exploited
- Nov 30, 2026CVE-2026-120705 geoserver: XML injection exploited
- Nov 25, 2025CVE-2025-58360 geoserver: XML external entity (XXE) exploited
- Jul 1, 2024CVE-2024-36401 geoserver: code injection through eval exploited
- Nov 25, 2025CVE-2025-21621 geoserver: cross-site scripting (XSS)
- Jun 10, 2025CVE-2025-30220 geoserver: XML external entity (XXE)
- Jun 10, 2025CVE-2025-30145 geoserver: infinite loop (denial of service)
- Jun 10, 2025CVE-2025-27505 geoserver: missing authorization
Questions about CVE-2023-25157
Is CVE-2023-25157 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:39 UTC. FIRST's EPSS gives it a 85.8% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of geoserver are affected by CVE-2023-25157?
org.geoserver.community:gs-jdbcconfig before 2.21.4 and org.geoserver.community:gs-jdbcconfig from 2.22.0 before 2.22.2, per the GitHub advisory GHSA-7g5f-wrx8-5ccf. The tables above give every range the sources list.
Which version fixes CVE-2023-25157?
2.21.4 and 2.22.2, per the GitHub advisory GHSA-7g5f-wrx8-5ccf. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-25157?
Critical (9.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-25157?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.