CVEBrief

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.

Exploited in the wild
Not in CISA KEV
KEV 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
Exploit odds (EPSS)
85.8% in 30 days
higher than 100% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

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?

VendorProductAffectedFixed or not affected from
geoservergeoserver>= 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?

EcosystemPackageAffectedFixed inAdvisory
Mavenorg.geoserver.community:gs-jdbcconfig< 2.21.42.21.4GHSA-7g5f-wrx8-5ccf
Mavenorg.geoserver.community:gs-jdbcconfig>= 2.22.0, < 2.22.22.22.2GHSA-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?

VendorProductVersionsType
osgeogeoserverbefore 2.18.7application
osgeogeoserverfrom 2.19.0 before 2.19.7application
osgeogeoserverfrom 2.20.0 before 2.20.7application
osgeogeoserverfrom 2.21.0 before 2.21.4application
osgeogeoserverfrom 2.22.0 before 2.22.2application

NVD analysis (status Modified), last modified June 17, 2026, 05:40 UTC.

How severe is CVE-2023-25157?

ScoreVersionVectorSource
Critical 9.8CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HGitHub_M
Critical 9.8CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD

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?

Where are the vendor advisories and references?

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?

Every CVE in geoserver

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.