# CVE-2023-25157 — geoserver

> As of 2025-03-10, CVE-2023-25157 is a CRITICAL-severity vulnerability in geoserver, CVSS v3.1 9.8, EPSS 85.2% (99.7th percentile). Threadlinqs Intelligence links 1 tracked threat campaign to CVE-2023-25157, most recently “Unpatched GeoServer Zero-Day SQL Injection (jsonArrayContains, GHSA-mqjf-5f49-2fjh) Under Active Exploitation”.

**Last updated:** 2025-03-10

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

The record classifies CVE-2023-25157 under weakness class [CWE-89](https://intel.threadlinqs.com/cwe/CWE-89). Its CVSS v3 base vector states that the flaw is reachable remotely over the network, needs no prior authentication, needs no user interaction, and has high impact on confidentiality, integrity, availability. 1 affected-product entry is recorded, across 1 vendor, listed below. The identifier was first published 1341 days ago.

## Severity and exploitation probability

- **CVSS v3.1 base score:** 9.8 — CRITICAL (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **EPSS (FIRST):** 85.2% probability of exploitation in the next 30 days, higher than 99.7% of all scored CVEs
- **CISA KEV:** Not listed in the CISA Known Exploited Vulnerabilities catalog
- **Threadlinqs priority:** 10/10 — a Threadlinqs composite of the CVSS base score, the EPSS percentile and public exploit availability
- **Published:** 2023-02-21, last modified 2025-03-10

## Is CVE-2023-25157 being exploited?

Weaponised exploit code for CVE-2023-25157 is publicly available. 11 public proof-of-concept repositories are tracked for this identifier. A ProjectDiscovery Nuclei detection template exists (`http/cves/2023/CVE-2023-25157.yaml`). It currently carries a trending score of 40 in the Threadlinqs vulnerability feed.

- [win3zz/CVE-2023-25157](https://github.com/win3zz/CVE-2023-25157) (github)
- [murataydemir/CVE-2023-25157-and-CVE-2023-25158](https://github.com/murataydemir/CVE-2023-25157-and-CVE-2023-25158) (github)
- [0x2458bughunt/CVE-2023-25157](https://github.com/0x2458bughunt/CVE-2023-25157) (github)
- [7imbitz/CVE-2023-25157-checker](https://github.com/7imbitz/CVE-2023-25157-checker) (github)
- [charis3306/CVE-2023-25157](https://github.com/charis3306/CVE-2023-25157) (github)
- [dr-cable-tv/Geoserver-CVE-2023-25157](https://github.com/dr-cable-tv/Geoserver-CVE-2023-25157) (github)
- [Rubikcuv5/CVE-2023-25157](https://github.com/Rubikcuv5/CVE-2023-25157) (github)
- [custiya/geoserver-CVE-2023-25157](https://github.com/custiya/geoserver-CVE-2023-25157) (github)

## Affected products and versions

- **geoserver**: geoserver

Affected software packages:

- `maven:org.geoserver.community:gs-jdbcconfig` — patched in 2.21.4
- `maven:org.geoserver.community:gs-jdbcconfig` — patched in 2.22.2

## How to fix CVE-2023-25157

The record marks a vendor fix as available for CVE-2023-25157. Fixed versions are recorded for 2 packages: maven:org.geoserver.community:gs-jdbcconfig 2.21.4, maven:org.geoserver.community:gs-jdbcconfig 2.22.2. Patch reference: [https://github.com/geoserver/geoserver/commit/145a8af798590288d270b240235e89c8f0b62e1d](https://github.com/geoserver/geoserver/commit/145a8af798590288d270b240235e89c8f0b62e1d). Vendor advisory: [https://github.com/geoserver/geoserver/security/advisories/GHSA-7g5f-wrx8-5ccf](https://github.com/geoserver/geoserver/security/advisories/GHSA-7g5f-wrx8-5ccf). Apply the vendor fix referenced above to every affected product listed in this record, then confirm the running version against the vendor advisory.

## Threat activity tracking CVE-2023-25157

1 tracked threat in the Threadlinqs corpus references CVE-2023-25157, either in the campaign’s CVE list or as an indicator on the campaign record.

- [Unpatched GeoServer Zero-Day SQL Injection (jsonArrayContains, GHSA-mqjf-5f49-2fjh) Under Active Exploitation](https://intel.threadlinqs.com/threat/TL-2026-2037) — CRITICAL · 2026-08-13

## Sources

Enriched from CVE.org, NVD, FIRST EPSS, GitHub Security Advisories, public proof-of-concept repositories, ProjectDiscovery Nuclei. Last verified by Threadlinqs on 2026-10-10. This product uses the NVD API but is not endorsed or certified by the NVD.

**Vendor advisory and patch**

- [github.com](https://github.com/geoserver/geoserver/security/advisories/GHSA-7g5f-wrx8-5ccf)

**Other references**

- [github.com](https://github.com/geoserver/geoserver/commit/145a8af798590288d270b240235e89c8f0b62e1d)

Canonical: https://intel.threadlinqs.com/cve/CVE-2023-25157
Full detection coverage and IOCs for threats exploiting CVE-2023-25157 via the Threadlinqs MCP server (Purple tier): https://intel.threadlinqs.com/mcp
