{"answers":{"affected":"8 open source packages ship an affected version, including org.geoserver.web:gs-web-app and org.geoserver:gs-main. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-34696 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.24.4 or 2.25.1.","what":"CVE-2024-34696 is a medium-severity vulnerability in geoserver, published on 1 Jul 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-34696 and fix it if it is affected.\n\nWhat it is: CVE-2024-34696 is a medium-severity vulnerability in geoserver, published on 1 Jul 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-34696 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.geoserver.web:gs-web-app (Maven): affected from 2.10.0; fixed in 2.24.4\n- org.geoserver.web:gs-web-app (Maven): affected from 2.10.0; fixed in 2.24.4\n- org.geoserver.web:gs-web-app (Maven): affected from 2.25.0; fixed in 2.25.1\n- org.geoserver.web:gs-web-app (Maven): affected from 2.25.0; fixed in 2.25.1\n- org.geoserver:gs-main (Maven): affected from 2.10.0; fixed in 2.24.4\n- org.geoserver:gs-main (Maven): affected from 2.10.0; fixed in 2.24.4\n- org.geoserver:gs-main (Maven): affected from 2.25.0; fixed in 2.25.1\n- org.geoserver:gs-main (Maven): affected from 2.25.0; fixed in 2.25.1\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-34696/ (Markdown: https://insights.sbomify.com/CVE-2024-34696/index.md)","id":"CVE-2024-34696","markdown":"https://insights.sbomify.com/CVE-2024-34696/index.md","name":"CVE-2024-34696","record":{"aliases":["GHSA-j59v-vgcr-hxvf"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"GeoServer geospatial server","requires_auth":"high_privilege","summary":"Administrators can view sensitive environment variables and Java properties, including credentials, via the Server Status page or REST API.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"geoserver","vendor":"geoserver"}],"cvss":{"score":4.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"GeoServer is an open source server that allows users to share and edit geospatial data. Starting in version 2.10.0 and prior to versions 2.24.4 and 2.25.1, GeoServer's Server Status page and REST API lists all environment variables and Java properties to any GeoServer user with administrative rights as part of those modules' status message. These variables/properties can also contain sensitive information, such as database passwords or API keys/tokens. Additionally, many community-developed GeoServer container images `export` other credentials from their start-up scripts as environment variables to the GeoServer (`java`) process. The precise scope of the issue depends on which container image is used and how it is configured.\n\nThe `about status` API endpoint which powers the Server Status page is only available to administrators.Depending on the operating environment, administrators might have legitimate access to credentials in other ways, but this issue defeats more sophisticated controls (like break-glass access to secrets or role accounts).By default, GeoServer only allows same-origin authenticated API access. This limits the scope for a third-party attacker to use an administrator’s credentials to gain access to credentials. The researchers who found the vulnerability were unable to determine any other conditions under which the GeoServer REST API may be available more broadly.\n\nUsers should update container images to use GeoServer 2.24.4 or 2.25.1 to get the bug fix. As a workaround, leave environment variables and Java system properties hidden by default. Those who provide the option to re-enable it should communicate the impact and risks so that users can make an informed choice.","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":"GeoServer's Server Status shows sensitive environmental variables and Java properties","id":"CVE-2024-34696","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":8,"n_references":1,"next":{"headline":"Freescout vulnerable to Stored HTML Injection in Editing Received Emails","id":"CVE-2024-34697"},"packages":[{"ecosystem":"Maven","fixed":["2.24.4"],"introduced":["2.10.0"],"last_affected":[],"package":"org.geoserver.web:gs-web-app","purl":null,"source":"GHSA-j59v-vgcr-hxvf"},{"ecosystem":"Maven","fixed":["2.24.4"],"introduced":["2.10.0"],"last_affected":[],"package":"org.geoserver.web:gs-web-app","purl":"pkg:maven/org.geoserver.web/gs-web-app","source":"GHSA-j59v-vgcr-hxvf"},{"ecosystem":"Maven","fixed":["2.25.1"],"introduced":["2.25.0"],"last_affected":[],"package":"org.geoserver.web:gs-web-app","purl":null,"source":"GHSA-j59v-vgcr-hxvf"},{"ecosystem":"Maven","fixed":["2.25.1"],"introduced":["2.25.0"],"last_affected":[],"package":"org.geoserver.web:gs-web-app","purl":"pkg:maven/org.geoserver.web/gs-web-app","source":"GHSA-j59v-vgcr-hxvf"},{"ecosystem":"Maven","fixed":["2.24.4"],"introduced":["2.10.0"],"last_affected":[],"package":"org.geoserver:gs-main","purl":null,"source":"GHSA-j59v-vgcr-hxvf"},{"ecosystem":"Maven","fixed":["2.24.4"],"introduced":["2.10.0"],"last_affected":[],"package":"org.geoserver:gs-main","purl":"pkg:maven/org.geoserver/gs-main","source":"GHSA-j59v-vgcr-hxvf"},{"ecosystem":"Maven","fixed":["2.25.1"],"introduced":["2.25.0"],"last_affected":[],"package":"org.geoserver:gs-main","purl":null,"source":"GHSA-j59v-vgcr-hxvf"},{"ecosystem":"Maven","fixed":["2.25.1"],"introduced":["2.25.0"],"last_affected":[],"package":"org.geoserver:gs-main","purl":"pkg:maven/org.geoserver/gs-main","source":"GHSA-j59v-vgcr-hxvf"}],"prev":{"headline":"WOWS Karma vulnerable to a post submission bounce/timing attack","id":"CVE-2024-34695"},"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.5,"headline":"Classpath resource disclosure in GWC Web Resource API on Windows / Tomcat","id":"CVE-2024-24749","kev_date_added":null,"published":"2024-07-01"},{"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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["geoserver"]},"summary":"Administrators can view sensitive environment variables and Java properties, including credentials, via the Server Status page or REST API.","url":"https://insights.sbomify.com/CVE-2024-34696/"}