CVE-2023-25157

published 21 Feb 2023 · updated 10 Mar 2025

Unfiltered SQL Injection Vulnerabilities in Geoserver

10.0CriticalCVSS 9.8EPSS 86%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 86%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
geoserver<2.21.4, >=2.22.0 <2.22.2

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-25157 severity on Zeptric[![CVE-2023-25157](https://zeptric.io/badge/cve/CVE-2023-25157.svg)](https://zeptric.io/cve/CVE-2023-25157)