[MAVEN:GHSA-7G5F-WRX8-5CCF] GeoServer OGC Filter SQL Injection Vulnerabilities
Severity
Critical
Affected Packages
2
Fixed Packages
2
CVEs
1
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 enabledstrEndsWith
function, when used with a PostGIS DataStore with encode functions enabledstrStartsWith
function, when used with a PostGIS DataStore with encode functions enabledFeatureId
filter, when used with any database table having a String primary key column and when prepared statements are disabledjsonArrayContains
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 2.22.2
- GeoServer 2.20.7
- GeoServer 2.19.7
- GeoServer 2.18.7
Workarounds
- Disabling the PostGIS Datastore encode functions setting to mitigate
strEndsWith
,strStartsWith
vulnerabilities (Like filters have no mitigation, if there is a string field in the feature type published). - Enabling the PostGIS DataStore preparedStatements setting to mitigate the
FeatureId
vulnerability.
References
- OGC Filter SQL Injection Vulnerabilities (GeoTools)
- OGC Filter Injection Vulnerability Statement (GeoServer Blog)
Package | Affected Version |
---|---|
pkg:maven/org.geoserver.community/gs-jdbcconfig | >= 2.22.0, < 2.22.2 |
pkg:maven/org.geoserver.community/gs-jdbcconfig | < 2.21.4 |
Package | Fixed Version |
---|---|
pkg:maven/org.geoserver.community/gs-jdbcconfig | = 2.22.2 |
pkg:maven/org.geoserver.community/gs-jdbcconfig | = 2.21.4 |
- ID
- MAVEN:GHSA-7G5F-WRX8-5CCF
- Severity
- critical
- URL
- https://github.com/advisories/GHSA-7g5f-wrx8-5ccf
- Published
-
2023-02-22T19:15:56
(19 months ago) - Modified
-
2023-02-22T19:15:58
(19 months ago) - Rights
- Maven Security Team
Type | Package URL | Namespace | Name / Product | Version | Distribution / Platform | Arch | Patch / Fix |
---|---|---|---|---|---|---|---|
Affected | pkg:maven/org.geoserver.community/gs-jdbcconfig | org.geoserver.community | gs-jdbcconfig | >= 2.22.0 < 2.22.2 | |||
Fixed | pkg:maven/org.geoserver.community/gs-jdbcconfig | org.geoserver.community | gs-jdbcconfig | = 2.22.2 | |||
Affected | pkg:maven/org.geoserver.community/gs-jdbcconfig | org.geoserver.community | gs-jdbcconfig | < 2.21.4 | |||
Fixed | pkg:maven/org.geoserver.community/gs-jdbcconfig | org.geoserver.community | gs-jdbcconfig | = 2.21.4 |
# CVE | Description | CVSS | EPSS | EPSS Trend (30 days) | Affected Products | Weaknesses | Security Advisories | Exploits | PoC | Pubblication Date | Modification Date |
---|---|---|---|---|---|---|---|---|---|---|---|
# CVE | Description | CVSS | EPSS | EPSS Trend (30 days) | Affected Products | Weaknesses | Security Advisories | PoC | Pubblication Date | Modification Date |