CVE-2024-24749: Classpath resource disclosure in GWC Web Resource API on Windows / Tomcat
Impact If GeoServer is deployed in the Windows operating system using an Apache Tomcat web application server, it is possible to bypass existing input validation in the GeoWebCache ByteStreamController class and read arbitrary classpath resources with specific file name extensions.
Published Jul 1, 2024 · Updated Nov 4, 2025
Affected packages
org.geoserver.web:gs-web-app
- Ecosystem
- Maven
- Affected
- < 2.23.5
- Fixed in
- 2.23.5
- Check
mvn dependency:tree -Dincludes=org.geoserver.web:gs-web-app
org.geoserver.web:gs-web-app
- Ecosystem
- Maven
- Affected
- >= 2.24.0, < 2.24.3
- Fixed in
- 2.24.3
- Check
mvn dependency:tree -Dincludes=org.geoserver.web:gs-web-app
org.geoserver:gs-gwc
- Ecosystem
- Maven
- Affected
- < 2.23.5
- Fixed in
- 2.23.5
- Check
mvn dependency:tree -Dincludes=org.geoserver:gs-gwc
org.geoserver:gs-gwc
- Ecosystem
- Maven
- Affected
- >= 2.24.0, < 2.24.3
- Fixed in
- 2.24.3
- Check
mvn dependency:tree -Dincludes=org.geoserver:gs-gwc
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
If GeoServer is deployed in the Windows operating system using an Apache Tomcat web application server, it is possible to bypass existing input validation in the GeoWebCache ByteStreamController class and read arbitrary classpath resources with specific file name extensions.
If GeoServer is also deployed as a web archive using the data directory embedded in the geoserver.war file (rather than an external data directory), it will likely be possible to read specific resources to gain administrator privileges. However, it is very unlikely that production environments will be using the embedded data directory since, depending on how GeoServer is deployed, it will be erased and re-installed (which would also reset to the default password) either every time the server restarts or every time a new GeoServer WAR is installed and is therefore difficult to maintain. An external data directory will always be used if GeoServer is running in standalone mode (via an installer or a binary).
Patches
https://github.com/GeoWebCache/geowebcache/pull/1211
Workarounds
Change environment:
- Change from Windows operating system. This vulnerability depends on Windows file paths so Linux and Mac OS are not vulnerable.
- Change from Apache Tomcat application server. Jetty and WildFly are confirmed to not be vulnerable. Other application servers have not been tested and may be vulnerable.
Disable anonymous access to the embeded GeoWebCache administration and status pages:
- Navigate to Security > Authentication Page
- Locate Filter Chains heading
- Select the `
webfilter filter chain (ant pattern/web/**,/gwc/rest/web/**,/`) - Remove `
,/gwc/rest/web/**from the pattern (so that/web/**,/` is left). - Save the changes
References
- CVE-Pending
Credited to Kai5174, sikeoka, jodygarnett.
References
- https://github.com/geoserver/geoserver/security/advisories/GHSA-jhqx-5v5g-mpf3
- https://nvd.nist.gov/vuln/detail/CVE-2024-24749
- https://github.com/GeoWebCache/geowebcache/pull/1211
- https://github.com/GeoWebCache/geowebcache/commit/c7f76bd8a1d67c3b986146e7a5e0b14dd64a8fef
- https://github.com/advisories/GHSA-jhqx-5v5g-mpf3
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2024-45747
GeoServer has a Server-Side Template Injection (SSTI) vulnerability in processing FreeMarker templates
high7.2Aug 19, 2026CVE-2025-52465
GeoServer has an arbitrary file write vulnerability in its Master Password Dump Page
high7.2Jun 12, 2026CVE-2025-58175
GeoServer has a Server-Side Request Forgery (SSRF) Vulnerability in its XML Entity Resolution
medium6.5Jun 12, 2026CVE-2025-21621
GeoServer has a Reflected Cross-Site Scripting (XSS) vulnerability in its WMS GetFeatureInfo HTML format
medium6.1Nov 25, 2025CVE-2025-58360
GeoServer is vulnerable to Unauthenticated XML External Entities (XXE) attack via WMS GetMap feature
high8.2ExploitedNov 25, 2025CVE-2024-34711
GeoServer has improper ENTITY_RESOLUTION_ALLOWLIST URI validation in XML Processing (SSRF)
critical9.3Jun 10, 2025
