{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-25157","id":"CVE-2023-25157","title":"Unfiltered SQL Injection Vulnerabilities in Geoserver","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","descriptionLong":"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.","published":"2023-02-21T21:00:13.392Z","updated":"2026-10-28T10:38:21.628195132Z","reserved":"2023-02-03T16:59:18.243Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"github.com"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["geoserver"],"affectedProducts":[{"vendor":"geoserver","product":"geoserver","defaultStatus":null,"versions":[{"version":">= 2.22.0, < 2.22.2","status":"affected"},{"version":"< 2.21.4","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.geoserver.community:gs-jdbcconfig","purl":"pkg:maven/org.geoserver.community/gs-jdbcconfig","ranges":["<2.21.4",">=2.22.0 <2.22.2"],"fixed":["2.21.4","2.22.2"],"advisory":"GHSA-7g5f-wrx8-5ccf"}],"cwes":["CWE-89"],"aliases":["GHSA-7g5f-wrx8-5ccf"],"references":[{"url":"https://github.com/geoserver/geoserver/security/advisories/GHSA-7g5f-wrx8-5ccf","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/geoserver/geoserver/commit/145a8af798590288d270b240235e89c8f0b62e1d","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/25xxx/CVE-2023-25157.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25157","tags":["advisory"]},{"url":"https://github.com/geoserver/geoserver","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.85761,"epssPercentile":0.99732,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-25157","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25157","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-25157","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-7g5f-wrx8-5ccf","ok":true,"note":"GHSA-7g5f-wrx8-5ccf"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-25157","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":["EPSS 86% with CVSS 9.8"],"attention":null}