Skip to main content
← All vulnerabilities
CVE-2023-25157GHSA-7G5F-WRX8-5CCF

Unfiltered SQL Injection Vulnerabilities in Geoserver

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.22.2, 2.21.4
10 proofs of concept on GitHub, 1 Nuclei template
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • geoserver geoserver

    From 2.22.0 · fixed in 2.22.2; fixed in 2.21.4

  • org.geoserver.community:gs-jdbcconfigMaven

    fixed in 2.21.4

  • org.geoserver.community:gs-jdbcconfigMaven

    From 2.22.0 · fixed in 2.22.2

References 13

GitHub · geoserver/geoserver

GitHub · projectdiscovery/nuclei-templates

GitHub · 0x2458bughunt/CVE-2023-25157

GitHub · 7imbitz/CVE-2023-25157-checker

GitHub · Giangdurian/CVE-2023-25157-GeoServer-SQLi-Lab

GitHub · Rubikcuv5/CVE-2023-25157

GitHub · charis3306/CVE-2023-25157

GitHub · custiya/geoserver-CVE-2023-25157

GitHub · dr-cable-tv/Geoserver-CVE-2023-25157

GitHub · ivanesk315/CVE-2023-25157

GitHub · murataydemir/CVE-2023-25157-and-CVE-2023-25158

GitHub · win3zz/CVE-2023-25157