{"cve":"CVE-2023-25157","nvd":{"published":"2023-02-21T22:15:10.620","modified":"2026-06-17T05:40:48.073","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-89"],"references":["https://github.com/geoserver/geoserver/commit/145a8af798590288d270b240235e89c8f0b62e1d","https://github.com/geoserver/geoserver/security/advisories/GHSA-7g5f-wrx8-5ccf","https://github.com/geoserver/geoserver/commit/145a8af798590288d270b240235e89c8f0b62e1d","https://github.com/geoserver/geoserver/security/advisories/GHSA-7g5f-wrx8-5ccf"],"products":["osgeo:geoserver"],"source":"nvd","synced_at":"2026-10-19T21:37:38.595364862+00:00"},"epss":{"cve":"CVE-2023-25157","score":0.85247,"percentile":0.99716,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-7g5f-wrx8-5ccf","url":"https://osv.dev/vulnerability/GHSA-7g5f-wrx8-5ccf","summary":"GeoServer OGC Filter SQL Injection Vulnerabilities","modified":"2026-09-10T03:49:56.856032898Z","packages":[{"ecosystem":"Maven","name":"org.geoserver.community:gs-jdbcconfig","purl":"pkg:maven/org.geoserver.community/gs-jdbcconfig","ranges":["<2.21.4"],"fixed":["2.21.4"]},{"ecosystem":"Maven","name":"org.geoserver.community:gs-jdbcconfig","purl":"pkg:maven/org.geoserver.community/gs-jdbcconfig","ranges":[">=2.22.0 <2.22.2"],"fixed":["2.22.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}