# CVE-2023-25157: Unfiltered SQL Injection Vulnerabilities in Geoserver

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 85.8%, higher than 99% of CVEs (2026-12-01)
- Published: 2023-02-21T21:00:13.392Z
- Modified: 2026-09-10T03:49:56.856Z
- Also known as: GHSA-7g5f-wrx8-5ccf
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- geoserver geoserver: >= 2.22.0, < 2.22.2; < 2.21.4
- org.geoserver.community:gs-jdbcconfig (Maven): before 2.21.4; from 2.22.0 before 2.22.2
- osgeo geoserver: before 2.18.7; from 2.19.0 before 2.19.7; from 2.20.0 before 2.20.7; from 2.21.0 before 2.21.4; from 2.22.0 before 2.22.2

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/geoserver/geoserver/security/advisories/GHSA-7g5f-wrx8-5ccf> (vendor-advisory, web)
- <https://github.com/geoserver/geoserver/commit/145a8af798590288d270b240235e89c8f0b62e1d> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-25157> (advisory)
- <https://github.com/geoserver/geoserver> (package)

## Sources

- CVE List: [CVE-2023-25157](https://www.cve.org/CVERecord?id=CVE-2023-25157), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-7g5f-wrx8-5ccf](https://github.com/advisories/GHSA-7g5f-wrx8-5ccf), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-25157](https://nvd.nist.gov/vuln/detail/CVE-2023-25157), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-25157 · Whole record: https://cve.day/CVE-2023-25157.json · Rebuilt by cve.day 2026-11-25T22:58:22.099Z
