WaratekVRT Sign in

CVE-2023-25157 GeoServer

Affected softwareGeoServer
Severity9.8 Critical CVSS 3.1 2 scores
Fixed in2.21.4, 2.22.2
WeaknessSQL injection (CWE-89)
Published21 Feb 2023
Updated3 Nov 2026

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.

Exploitation status

Exploited

Real-world exploitation reported by VulnCheck KEV. CISA has not confirmed it.

  • CISA KEV not listed
  • VulnCheck KEV listed Exploitation reported in the wild. 7 citations · honeypot sightings · 12 exploits · earliest 2020-09-22.
  • CISA Vulnrichment exploitation: none
  • Indexed PoC 8 indexed Published artifacts you can open, in GitHub PoC, Nuclei; first seen 2023-06-06.
  • EPSS 86% chance in 30 days A model's forecast, not a report of exploitation. Higher than 99.7% of all scored CVEs.

VulnCheck KEV

Exploitation evidence from VulnCheck Known Exploited Vulnerabilities (VulnCheck KEV), used under VulnCheck's community terms. View CVE-2023-25157 in VulnCheck (free account), which lists 2 more citations and 7 more exploit references not shown here.

EvidenceSourceDetailDate
Honeypot sighting SANS DShield sensors Exploitation attempts seen on 1 day 2020-09-22
Reported exploitation thedfirreport.com /2023/12/18/lets-opendir-some-presents-an-analysis-of-a-persistent-actors-activity 2023-12-18
Reported exploitation rt-solar.ru /solar-4rays/blog/4333 2024-05-24
Reported exploitation rt-solar.ru /solar-4rays/blog/4527 2024-07-18
Reported exploitation f5.com /labs/articles/threat-intelligence/sensor-intel-series-top-cves-august-2024 2024-09-19
Reported exploitation f5.com /labs/articles/threat-intelligence/botpoke-scanner-switches-ip 2024-11-25
Exploit reference VulnCheck XDB 281183e04222 Exploit type: infoleak 2023-06-06
Exploit reference VulnCheck XDB 94494148cb01 Exploit type: infoleak 2023-06-10
Exploit reference VulnCheck XDB 9cf6c74ddc0a Exploit type: initial-access 2023-06-11
Exploit reference VulnCheck XDB b785e145c5f6 Exploit type: initial-access 2023-06-12
Exploit reference VulnCheck XDB 44aac331bc8b Exploit type: infoleak 2023-11-28

4 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC CVE-2023-25157 - GeoServer SQL Injection - PoC 166 2023-06-06
GitHub PoC GeoServer & GeoTools SQL Injection (CVE-2023-25157 & CVE-2023-25158) 13 2023-06-11
GitHub PoC 0x2458bughunt/CVE-2023-25157 10 2023-06-10
GitHub PoC CVE-2023-25157 exp 3 2025-04-24
GitHub PoC A script, written in golang. POC for CVE-2023-25157 3 2023-06-12
GitHub PoC Geoserver SQL Injection Exploit 2 2023-11-28
GitHub PoC GeoServer OGC Filter SQL Injection Vulnerabilities 2023-07-31
Nuclei GeoServer OGC Filter - SQL Injection

Waratek protection

Mitigation candidate

A kind of vulnerability Waratek's rules address, with exploit code published or exploitation reported. No rule exists and none is planned yet. The decision below says what we found to build a rule from.

  • Protection none
  • Action feasible
  • Review human Researcher
  • Record active
Decided by A researcher's recorded decision for this specific CVE
Finding A researcher set this CVE's status to Mitigation candidate.

Waratek research note

written 2026-11-13

Written by a Waratek engineer who reviewed this CVE. Their decision sets the status above, ahead of every automated rule except a withdrawal.

Comments

SQL injection in GeoServer's PostGIS datastore through the strStartsWith, strEndsWith, PropertyIsLike and FeatureId filters, reachable unauthenticated through the CQL_FILTER parameter. The SQL rule does not currently detect this injection.

CVSS

9.8 CRITICAL v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 9.8 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H security-advisories@github.com Secondary published
CVSS 3.1 9.8 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.geoserver.community:gs-jdbcconfig 0 2.21.4 unbounded
org.geoserver.community:gs-jdbcconfig 2.22.0 2.22.2 unbounded

Products and versions

2 products, 7 version entries
SourceVendorProductSchemeAffected versions
osv org.geoserver.community gs-jdbcconfig generic < 2.21.4 · ≥ 2.22.0 and < 2.22.2
nvd osgeo geoserver generic < 2.18.7 · ≥ 2.19.0 and < 2.19.7 · ≥ 2.20.0 and < 2.20.7 · ≥ 2.21.0 and < 2.21.4 · ≥ 2.22.0 and < 2.22.2

References

URLTags
https://github.com/geoserver/geoserver/security/advisories/GHSA-7g5f-wrx8-5ccf WEB
https://github.com/geoserver/geoserver/commit/145a8af798590288d270b240235e89c8f0b62e1d WEB
https://github.com/geoserver/geoserver PACKAGE

Timeline

VulnCheck KEV: earliest evidence2020-09-22Date of the oldest evidence of exploitation in VulnCheck KEV's record. VulnCheck does not publish the date it listed the CVE.
Published2023-02-21By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.
VulnCheck KEV: latest evidence2026-09-11Date of the newest report, exploit reference or honeypot sighting in VulnCheck KEV's record.
Last VRT activity2026-11-03Most recent commit touching this CVE's classification, patch or rule file.
Classification created2026-11-13First commit adding this CVE's research note.