{"answers":{"affected":"8 open source packages ship an affected version, including org.geoserver.web:gs-web-app and org.geoserver:gs-gwc. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-24749 in the wild and no public exploit code.","fix":"Upgrade org.geoserver.web:gs-web-app to a fixed version for your release line: 2.23.5 or 2.24.3.","what":"CVE-2024-24749 is a high-severity path traversal vulnerability in geoserver, published on 1 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-24749 and fix it if it is affected.\n\nWhat it is: CVE-2024-24749 is a high-severity path traversal vulnerability in geoserver, published on 1 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-24749 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.geoserver.web:gs-web-app (Maven): affected all versions; fixed in 2.23.5\n- org.geoserver.web:gs-web-app (Maven): affected all versions; fixed in 2.23.5\n- org.geoserver.web:gs-web-app (Maven): affected from 2.24.0; fixed in 2.24.3\n- org.geoserver.web:gs-web-app (Maven): affected from 2.24.0; fixed in 2.24.3\n- org.geoserver:gs-gwc (Maven): affected all versions; fixed in 2.23.5\n- org.geoserver:gs-gwc (Maven): affected all versions; fixed in 2.23.5\n- org.geoserver:gs-gwc (Maven): affected from 2.24.0; fixed in 2.24.3\n- org.geoserver:gs-gwc (Maven): affected from 2.24.0; fixed in 2.24.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-24749/ (Markdown: https://insights.sbomify.com/CVE-2024-24749/index.md)","id":"CVE-2024-24749","markdown":"https://insights.sbomify.com/CVE-2024-24749/index.md","name":"CVE-2024-24749","record":{"aliases":["GHSA-jhqx-5v5g-mpf3"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["data_read","privilege_escalation"],"network_reachable":"yes","non_default_config":true,"product_category":"GeoServer web application","requires_auth":"none","summary":"Attackers can read arbitrary classpath resources and potentially gain admin privileges on Windows/Tomcat deployments with embedded data directories.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"geoserver","vendor":"geoserver"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Classpath resource disclosure in GWC Web Resource API on Windows / Tomcat","id":"CVE-2024-24749","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":8,"n_references":3,"next":{"headline":"Backpressure request ignored in fetch() in Undici","id":"CVE-2024-24750"},"packages":[{"ecosystem":"Maven","fixed":["2.23.5"],"introduced":["0"],"last_affected":[],"package":"org.geoserver.web:gs-web-app","purl":null,"source":"GHSA-jhqx-5v5g-mpf3"},{"ecosystem":"Maven","fixed":["2.23.5"],"introduced":["0"],"last_affected":[],"package":"org.geoserver.web:gs-web-app","purl":"pkg:maven/org.geoserver.web/gs-web-app","source":"GHSA-jhqx-5v5g-mpf3"},{"ecosystem":"Maven","fixed":["2.24.3"],"introduced":["2.24.0"],"last_affected":[],"package":"org.geoserver.web:gs-web-app","purl":null,"source":"GHSA-jhqx-5v5g-mpf3"},{"ecosystem":"Maven","fixed":["2.24.3"],"introduced":["2.24.0"],"last_affected":[],"package":"org.geoserver.web:gs-web-app","purl":"pkg:maven/org.geoserver.web/gs-web-app","source":"GHSA-jhqx-5v5g-mpf3"},{"ecosystem":"Maven","fixed":["2.23.5"],"introduced":["0"],"last_affected":[],"package":"org.geoserver:gs-gwc","purl":null,"source":"GHSA-jhqx-5v5g-mpf3"},{"ecosystem":"Maven","fixed":["2.23.5"],"introduced":["0"],"last_affected":[],"package":"org.geoserver:gs-gwc","purl":"pkg:maven/org.geoserver/gs-gwc","source":"GHSA-jhqx-5v5g-mpf3"},{"ecosystem":"Maven","fixed":["2.24.3"],"introduced":["2.24.0"],"last_affected":[],"package":"org.geoserver:gs-gwc","purl":null,"source":"GHSA-jhqx-5v5g-mpf3"},{"ecosystem":"Maven","fixed":["2.24.3"],"introduced":["2.24.0"],"last_affected":[],"package":"org.geoserver:gs-gwc","purl":"pkg:maven/org.geoserver/gs-gwc","source":"GHSA-jhqx-5v5g-mpf3"}],"prev":{"headline":"Disclosure of the existence of secret subcategories in Discourse","id":"CVE-2024-24748"},"products":["geoserver"],"published":"2024-07-01","related":[{"cvss_score":9.8,"headline":"OSGeo GeoServer GeoTools Eval Injection","id":"CVE-2024-36401","kev_date_added":"2024-07-15","published":"2024-07-01"},{"cvss_score":8.2,"headline":"OSGeo GeoServer Improper Restriction of XML External Entity Reference","id":"CVE-2025-58360","kev_date_added":"2025-12-11","published":"2025-11-25"},{"cvss_score":9.8,"headline":"GeoServer RCE due to improper control of generation of code in jai-ext`Jiffle` map algebra language","id":"CVE-2023-35042","kev_date_added":null,"published":"2023-06-12"},{"cvss_score":7.2,"headline":"GeoServer log file path traversal vulnerability","id":"CVE-2023-41877","kev_date_added":null,"published":"2024-03-20"},{"cvss_score":7.2,"headline":"GeoServer arbitrary file upload vulnerability in REST Coverage Store API","id":"CVE-2023-51444","kev_date_added":null,"published":"2024-03-20"},{"cvss_score":6.1,"headline":"GeoServer Reflected Cross-Site Scripting (XSS) vulnerability in WMS GetFeatureInfo HTML format","id":"CVE-2025-21621","kev_date_added":null,"published":"2025-11-25"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-04","vendors":["geoserver"]},"summary":"Attackers can read arbitrary classpath resources and potentially gain admin privileges on Windows/Tomcat deployments with embedded data directories.","url":"https://insights.sbomify.com/CVE-2024-24749/"}