Skip to content

CVE-2023-25157 Unfiltered SQL Injection Vulnerabilities in Geoserver

CriticalCVSS 9.8 EPSS 85.8% Scanner template
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
org.geoserver.community/gs-jdbcconfig(Maven) < 2.21.4; >= 2.22.0, < 2.22.2 2.21.4, 2.22.2 Fixed
osgeo geoserver < 2.18.7; >= 2.19.0, < 2.19.7; >= 2.20.0, < 2.20.7; >= 2.21.0, < 2.21.4 +1 more 2.18.7, 2.19.7, 2.20.7, 2.21.4, 2.22.2 Fixed
geoserver = < 2.21.4; = >= 2.22.0, < 2.22.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
org.geoserver.community/gs-jdbcconfig(Maven) < 2.21.4 2.21.4
org.geoserver.community/gs-jdbcconfig(Maven) >= 2.22.0, < 2.22.2 2.22.2
geoserver = >= 2.22.0, < 2.22.2 No fix listed
geoserver = < 2.21.4 No fix listed
osgeo geoserver < 2.18.7 2.18.7
osgeo geoserver >= 2.19.0, < 2.19.7 2.19.7
osgeo geoserver >= 2.20.0, < 2.20.7 2.20.7
osgeo geoserver >= 2.21.0, < 2.21.4 2.21.4
osgeo geoserver >= 2.22.0, < 2.22.2 2.22.2

References