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.
CVE-2023-25157
This critical-severity CVE scores 9.8 under NVD CVSS v3. EPSS exploit probability: 85.2%, top 0% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High exploitation likelihood — EPSS 85%
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 9.8
- EG Score
- 9.8(medium)
- EG Risk
- 93(Track)EG Risk 93/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation85% × 40%Automatability100% × 15%Action: Routine — remediate on your standard cadence. - EPSS
- 99.7%
- KEV
- Not listed
Published
February 21, 2023
Last Modified
November 21, 2024
Advisory Details (2)
Auto-updated Jun 30, 2026OGC Filter SQL Injection Vulnerabilities · Advisory · geoserver/geoserver · GitHub
https://github.com/geoserver/geoserver/security/advisories/GHSA-7g5f-wrx8-5ccfcommit 145a8af79859 (geoserver/geoserver)
Patch available: geoserver/geoserver 2.25.1 (contains commit 145a8af79859)
https://github.com/geoserver/geoserver/commit/145a8af798590288d270b240235e89c8f0b62e1dAffected Packages
(1 across 1 ecosystem)
Maven(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| org.geoserver.community:gs-jdbcconfig | — | 2.22.2 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 5× in last 7d / 24× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-24 14:15 UTCEPSS rescore
- 2026-07-23 02:19 UTCEG score recompute
- 2026-07-22 23:07 UTCEG score recompute
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-20 17:05 UTCEPSS rescore
- 2026-07-16 17:01 UTCEPSS rescore
- 2026-07-16 17:01 UTCEPSS rescore
- 2026-07-16 04:53 UTCOSV refresh
- 2026-07-13 22:28 UTCEPSS rescore
- 2026-07-13 22:28 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-08 15:13 UTCEPSS rescore
- 2026-07-07 13:44 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-29 14:04 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:34 UTCOSV refresh
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
Show 20 moreShow fewer
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-15 17:47 UTCEPSS rescore
- 2026-06-11 13:59 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 22:17 UTCEPSS rescore
- 2026-06-10 15:17 UTCOSV refresh
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-25 06:18 UTCEG score recompute
Publicly available exploits
(7 references)Working exploit code is in the public domain (6 GitHub PoCs). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoCcharis3306/CVE-2023-25157First seen Apr 24, 2025
CVE-2023-25157 exp
Open source ↗ - GitHub PoCdr-cable-tv/Geoserver-CVE-2023-25157First seen Nov 28, 2023
Geoserver SQL Injection Exploit
Open source ↗ - GitHub PoC7imbitz/CVE-2023-25157-checkerFirst seen Jun 12, 2023
A script, written in golang. POC for CVE-2023-25157
Open source ↗ - GitHub PoCmurataydemir/CVE-2023-25157-and-CVE-2023-25158First seen Jun 11, 2023
GeoServer & GeoTools SQL Injection (CVE-2023-25157 & CVE-2023-25158)
Open source ↗ - Open source ↗GitHub PoC0x2458bughunt/CVE-2023-25157First seen Jun 10, 2023
- GitHub PoCwin3zz/CVE-2023-25157First seen Jun 6, 2023
CVE-2023-25157 - GeoServer SQL Injection - PoC
Open source ↗ - Nucleihttp/cves/2023/CVE-2023-25157.yamlFirst seen Jan 1, 2023
GeoServer OGC Filter - SQL Injection
Open source ↗
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2023-25157?
When was CVE-2023-25157 disclosed?
Is CVE-2023-25157 actively exploited?
What is the CVSS score of CVE-2023-25157?
How do I remediate CVE-2023-25157?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2023-25157
Is Your Infrastructure Affected by CVE-2023-25157?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.