QID 730791

Date Published: 2023-05-23

QID 730791: GeoWebCache Arbitrary Code Execution Vulnerability (GHSA-4v22-v8jp-438r)

GeoWebCache is a tile caching server implemented in Java.

The GeoWebCache disk quota mechanism can perform an unchecked JNDI lookup, which in turn can be used to perform class deserialization and result in arbitrary code execution. GeoServer a user interface is provided to perform the same, that can be accessed remotely, and requires admin-level login to be used. These lookup are unrestricted in scope and can lead to code execution.

Affected Versions:
GeoWebCache versions prior to 1.19.3
GeoWebCache versions 1.20.0 prior to 1.20.2

QID Detection Logic (Unauthenticated): This QID checks for vulnerable GeoWebCache versions on GeoServer by sending GET request to "/geoserver/web/wicket/bookmarkable/org.geoserver.web.AboutGeoServerPage"

Successful exploitation of this vulnerability may allow an attacker to perform class deserialization and result in arbitrary code execution.

  • CVSS V3 rated as High - 7.2 severity.
  • CVSS V2 rated as High - 6.5 severity.
  • Solution
    Vendor has released patches. For more information please refer to GeoWebCache Security Advisory

    Workaround:
    For stand-alone GeoWebCache, the attacker must not be able to access the file system where the GWC configuration is hosted, as well as not allowing access to the REST API at geowebcache/rest. For GeoServer instead, protection can be achieved by making the GUI (geoserver/web) and the REST configuration (geoserver/rest) unreachable from remote hosts, in addition to protecting access to the file system where the GeoServer configuration is stored and closing the embedded GeoWebCache REST API at geoserver/gwc/rest.

    CVEs related to QID 730791

    Software Advisories
    Advisory ID Software Component Link
    https://github.com/GeoWebCache/geowebcache/security/advisories/GHSA-4v22-v8jp-438r URL Logo github.com/GeoWebCache/geowebcache/security/advisories/GHSA-4v22-v8jp-438r
    © CVE.report 2026 |

    Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

    CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

    Free CVE JSON API cve.report/api

    CVE.report and Source URL Uptime Status status.cve.report