9.8

CVE-2023-25157: geoserver SQL Injection

CVSS: 9.8v3.1CriticalModified
AliasesGHSA-7g5f-wrx8-5ccf
Published 21-02-2023Last modified 10-03-2025

Vulnerability summary

CVE-2023-25157 is a critical (CVSS 9.8) SQL Injection vulnerability in geoserver. EPSS estimates a 85.25% chance of exploitation in the next 30 days, higher than 99.7% of scored vulnerabilities.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)
EPSS score
85.25%
0%100%
Critical · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 21-02-2023
    PublishedVulnerability first disclosed.
  2. 10-03-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

85.25%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

0.00 pp

From 85.25% on 20-09-2026

20-09-202620-10-2026
EPSS score
85.25%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Geoserver1 product
Org.geoserver.community1 product
  • gs-jdbcconfig< 2.21.4 | ≥ 2.22.0, < 2.22.2
Osgeo1 product
  • geoserver< 2.18.7 | ≥ 2.19.0, < 2.19.7 | ≥ 2.20.0, < 2.20.7 | ≥ 2.21.0, < 2.21.4 | ≥ 2.22.0, < 2.22.2

3 vendors · 3 products

References

4 links