Patchfirst
CVE-2023-25157 Public exploit Critical · 9.8 EPSS 85.8%

Unfiltered SQL Injection Vulnerabilities in Geoserver

Fix:upgrade gs-jdbcconfig to 2.22.2 or later Details ↓

geoserver · geoserver

Summary

The flaw is an SQL injection issue in GeoServer, the open source Java geospatial server, affecting how its OGC Filter and CQL expression handling is processed in the WFS and WMS protocols, and in WCS for ImageMosaic coverages. An unauthenticated remote attacker who can reach the network service can send crafted filter or query requests, with no user interaction required, to inject SQL commands that are executed against the backing data store.

Official description · CVE.org

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.

Breakdown
69.5 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 10 months after disclosure. Public exploit code (PoC-in-GitHub) appeared 3 months after disclosure.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+3 mo
  3. First seen exploitedVulnCheck KEV evidence+10 mo

Detection

1 rule for this CVE · 0 general rules for its techniques

Rules for this CVE

1 that reference CVE-2023-25157 directly.

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

Affected versions and fixes

as published in the CVE record

geoserver geoserver

Affected: >= 2.22.0, < 2.22.2 · < 2.21.4

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: org.geoserver.community:gs-jdbcconfig.

Mavenorg.geoserver.community:gs-jdbcconfigGHSA-7g5f-wrx8-5ccf

Upgrade to 2.22.2 or later

Set the version to 2.22.2 or later in your pom.xml or build.gradle.

The first fix for CVE-2023-25157. No other CVE tracked by Patchfirst affects this package.

Affected versions, by release line

If you runUpgrade to
2.22.0 up to 2.22.22.22.2
All versions before 2.21.42.21.4

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

References

2 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close