CVE-2024-24749
Classpath resource disclosure in GWC Web Resource API on Windows / Tomcat
Also known as GHSA-jhqx-5v5g-mpf3
Mitigation
- Upgrade org.geoserver.web:gs-web-app to one of 2.23.5, 2.24.3 (or later in the same release line).
- Upgrade org.geoserver:gs-gwc to one of 2.23.5, 2.24.3 (or later in the same release line).
Who should check
- Projects that depend on Maven package org.geoserver.web:gs-web-app (< 2.23.5)
- Projects that depend on Maven package org.geoserver:gs-gwc (< 2.23.5)
- Anyone running geoserver < 2.23.5; >= 2.24.0, < 2.24.3
Vulnerability facts
- Affected
- org.geoserver.web:gs-web-app < 2.23.5; org.geoserver:gs-gwc < 2.23.5
- Fixed in
- 2.23.5, 2.24.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.95% chance of exploitation in 30 days (percentile 60, 2026-11-26)
- CWE
- CWE-22
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.geoserver.web:gs-web-app | < 2.23.5 | 2.23.5, 2.24.3 | osv |
| Maven org.geoserver:gs-gwc | < 2.23.5 | 2.23.5, 2.24.3 | osv |
| geoserver | < 2.23.5; >= 2.24.0, < 2.24.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-24749. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-24749.md Affected: org.geoserver.web:gs-web-app < 2.23.5; org.geoserver:gs-gwc < 2.23.5 Fixed in: 2.23.5, 2.24.3 Steps: 1. Search this machine and project for org.geoserver.web:gs-web-app (Maven), org.geoserver:gs-gwc (Maven), geoserver: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2024-24749 being exploited?
There is no confirmed exploitation: CVE-2024-24749 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.95% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-24749?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-24749?
org.geoserver.web:gs-web-app < 2.23.5; org.geoserver:gs-gwc < 2.23.5.
Is there a fix for CVE-2024-24749?
Yes. Fixed in 2.23.5, 2.24.3. Upgrade org.geoserver.web:gs-web-app to one of 2.23.5, 2.24.3 (or later in the same release line). Upgrade org.geoserver:gs-gwc to one of 2.23.5, 2.24.3 (or later in the same release line).
How do I check if I'm affected by CVE-2024-24749?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.