Skip to content
Vulnerability Intelligence

CVE-2023-25157

CriticalExploited

GeoServer OGC Filter SQL Injection Vulnerabilities

Published Feb 22, 2023 · Updated Sep 10, 2026 · Also known as GHSA-7g5f-wrx8-5ccf

Key Facts

Patch immediately
  • CVE-2023-25157 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Geoserver (Osgeo), org.geoserver.community:gs-jdbcconfig (maven).
  • It is exploited in the wild, listed in Industry KEV feed since Sep 22, 2020. No public exploit code is known.
  • EPSS estimates a 85% probability of exploitation in the next 30 days.
  • Fixed versions are available, including org.geoserver.community:gs-jdbcconfig 2.21.4, org.geoserver.community:gs-jdbcconfig 2.22.2, Geoserver 2.18.7.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

CVSS v3.1

9.8

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS (30-day exploit likelihood)

85%

Higher than 99.7% of all scored CVEs

Exploited in the wild

Yes

1 catalog listing

Public exploit code

None known

Get the full CVE-2023-25157 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

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.

Known-Exploited Catalog Listings

CatalogAddedRemediation dueRansomware use
Industry KEV feedSep 22, 2020n/aNot reported

Required action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.

Affected Products

3 affected entries in total
ProductAffected versionsFixed in
GeoserverOsgeo>= >= 2.22.0, < 2.22.22.18.7
org.geoserver.community:gs-jdbcconfigmavenSee advisory2.22.2

Patched Releases

org.geoserver.community:gs-jdbcconfig

2.21.4, 2.22.2

Geoserver

2.18.7

Timeline

  1. Added to Industry KEV feed

    Sep 22, 2020

  2. Publicly disclosed

    Feb 22, 2023

  3. Last updated

    Sep 10, 2026

Weakness Type

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

References

8 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2023-25157 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo