CVE-2023-25157: GeoServer OGC Filter SQL Injection Vulnerabilities
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.9985%
CWE
Published
2/22/2023
Updated
2/22/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| 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 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from two primary issues: 1) Direct string concatenation in OGC filter handling (particularly PropertyIsLike) without parameterization, visible in the FilterToCatalogSQL.java diff where LIKE patterns were moved to parameterized queries. 2) Unsafe comment generation in debug mode, addressed by the escapeComment() method in Dialect.java. The commit shows these functions were modified to add parameter binding and comment escaping, confirming their vulnerable prior state.