# CVE-2023-25157

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.

- Page: https://www.vulneraibility.com/cve/CVE-2023-25157
- CVSS: 9.8
- Known exploited: not in CISA KEV as of our last sync
- EPSS: 85.76% (percentile 99.7)
- Unvetted proof-of-concept code on GitHub: 10 GitHub proofs of concept · 1 Nuclei template (first 2023-06-06)
- CISA SSVC: exploitation none, automatable yes, technical impact total (assessed 2025-03-10)
- Weakness: CWE-89
- Published: 2023-02-21

## Affected versions

- geoserver: affected >= 2.22.0 and < 2.22.2; < 2.21.4

A version outside these ranges is not a statement that it is unaffected.

## References

- [other] https://github.com/geoserver/geoserver/security/advisories/GHSA-7g5f-wrx8-5ccf
- [other] https://github.com/geoserver/geoserver/commit/145a8af798590288d270b240235e89c8f0b62e1d

---
Summary, impact and action are written by the vulneraibility.com AI analysis pipeline from the CVE record, NVD, CISA and FIRST data; verify against the references.
