Critical, CVSS 9.8MavenPublished
GeoServer OGC Filter SQL Injection Vulnerabilities
CVE-2023-25157 · GHSA-7g5f-wrx8-5ccf
- Affected
- Maven org.geoserver.community:gs-jdbcconfig < 2.21.4; >= 2.22.0, < 2.22.2
- Fixed in
- 2.22.22.21.4· Vendor fix available
- Issue
- Impact 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. SQL Injection Vulnerabilities have been found with: PropertyIsLike filter, when used with a String field and any database DataStore, or with a PostGIS DataStore with encode functions enabled strEndsWith function, when used with a PostGIS DataStore with encode functions enabled strStartsWith function, when used with a PostGIS DataStore with encode functions enabled FeatureId filter, when used with any database table having a String primary key column and when prepared statements are disabled jsonArrayContains function, when used with a String or JSON field and with a PostGIS or Oracle DataStore (GeoServer 2.22.0+ only) DWithin filter, when used with an Oracle DataStore Patches GeoSever 2.21.4 GeoServer…
Recommended action: Upgrade to 2.22.2 or 2.21.4 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.