Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.geoserver/gs-gwc
  4. ›
  5. CVE-2024-24749

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

July 1, 2024

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).

References

  • github.com/GeoWebCache/geowebcache/commit/c7f76bd8a1d67c3b986146e7a5e0b14dd64a8fef
  • github.com/GeoWebCache/geowebcache/pull/1211
  • github.com/advisories/GHSA-jhqx-5v5g-mpf3
  • github.com/geoserver/geoserver
  • github.com/geoserver/geoserver/security/advisories/GHSA-jhqx-5v5g-mpf3
  • nvd.nist.gov/vuln/detail/CVE-2024-24749

Code Behaviors & Features

Detect and mitigate CVE-2024-24749 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.23.5, all versions starting from 2.24.0 before 2.24.3

Fixed versions

  • 2.23.5
  • 2.24.3

Solution

Upgrade to versions 2.23.5, 2.24.3 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

maven/org.geoserver/gs-gwc/CVE-2024-24749.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:41 +0000.