CVE-2023-25157
Unfiltered SQL Injection Vulnerabilities in Geoserver
- Published
- Feb 21, 2023
- Updated
- Mar 10, 2025
- Assigning CNA
- GitHub_M
- Evidence observed
- Aug 8, 2026
Primary CVSS
nvd · CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HHigh · next 30 days
- Percentile
- 99.7%
- Model date
- Oct 19, 2026
EPSS is a statistical estimate, not a certainty or a measure of impact. Combine it with CVSS, KEV status, exposure and your environment.
Summary
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.
Sources
geoserver/CVE-2023-25157
GeoServer OGC Filter SQL Injection (CVE-2023-25157)
Vulhub vulnerability labsDeclared conditions
- lab image version: vulhub/geoserver:2.22.1(geoserver/CVE-2023-25157/docker-compose.yml:services.web.image)
- lab image version: postgis/postgis:14-3.3-alpine(geoserver/CVE-2023-25157/docker-compose.yml:services.postgres.image)
http/cves/2023/CVE-2023-25157.yaml
Nuclei TemplatesDeclared conditions
- network: http($.protocol_keys)
- verification: word($.matchers[*].type)
Responsible use
Use vulnerability information only on systems you own or are authorized to test. Kitploit links to public research metadata and does not store exploit code or malicious payloads.