Skip to content
Critical

CVE-2023-25157Geoserver SQL Injection

GeoServer OGC Filter SQL Injection Vulnerabilities

Published Feb 22, 2023 · Updated Oct 28, 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 86% 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.

Scores

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)

86%

Higher than 99.7% of all scored CVEs

Exploit maturity

Exploited (KEV)

ATLAS score

68/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Sep 22, 2020

-883 days after publication

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Exploited (KEV)

Public exploit code

0

Proof-of-concept links

In-the-wild evidence

9

Reports of active use

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

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

    Oct 28, 2026

Weakness Type

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command

FAQ

Common Questions.

Is CVE-2023-25157 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

More vulnerabilities

Figures as of Dec 1, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.