QID 150673

Date Published: 2023-04-18

QID 150673: GeoServer OGC Filter SQL Injection Vulnerability (CVE-2023-25157)

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. GeoServer OGC Filter is vulnerable to multiple SQL injection vulnerabilities.

Affected Versions:
GeoServer Versions prior to version 2.18.7
GeoServer Versions from 2.19.0 prior to version 2.18.7
GeoServer Versions from 2.20.0 prior to version 2.18.7
GeoServer Versions from 2.21.0 prior to version 2.21.4
GeoServer Versions from 2.22.0 prior to version 2.21.2

QID Detection Logic (Unauthenticated):
This QID sends a HTTP GET request checks for vulnerable version of GeoServer running on the target host.

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary commands.

  • CVSS V3 rated as Critical - 9.8 severity.
  • CVSS V2 rated as Critical - 10 severity.
  • Solution
    Customers are advised to upgrade to latest version of GeoServer to remediate this vulnerability. For more information please refer GeoServer Advisory

    CVEs related to QID 150673

    Software Advisories
    Advisory ID Software Component Link
    GHSA-7g5f-wrx8-5ccf URL Logo github.com/geoserver/geoserver/security/advisories/GHSA-7g5f-wrx8-5ccf