Skip to content
OpenAdvisories
Critical · 9.8 Scanner template Public exploit CVE-2023-25157 EUVD-2023-0652GHSA-7g5f-wrx8-5ccf

Unfiltered SQL Injection Vulnerabilities in Geoserver

Published Feb 21, 2023 · Updated Mar 10, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
geoserver geoserver >= 2.22.0, < 2.22.2, < 2.21.4 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 10 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.geoserver.community:gs-jdbcconfig < 2.21.4 2.21.4 GHSA-7g5f-wrx8-5ccf
Maven org.geoserver.community:gs-jdbcconfig >= 2.22.0, < 2.22.2 2.22.2 GHSA-7g5f-wrx8-5ccf

References