{"answers":{"affected":"13 open source packages ship an affected version, including org.apache.tomcat.embed:tomcat-embed-core, tomcat and org.apache.tomcat:tomcat-catalina. It affects 2 products.","exploited":"There is no known exploitation of CVE-2024-56337 in the wild and no public exploit code.","fix":"Upgrade org.apache.tomcat.embed:tomcat-embed-core to a fixed version for your release line: 10.1.34, 11.0.2 or 9.0.98.","what":"CVE-2024-56337 is a critical vulnerability in Apache Tomcat, published on 20 Dec 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-56337 and fix it if it is affected.\n\nWhat it is: CVE-2024-56337 is a critical vulnerability in Apache Tomcat, published on 20 Dec 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-56337 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 10.1.0-M1; fixed in 10.1.34\n- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 10.1.0-M1; fixed in 10.1.34\n- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 11.0.0-M1; fixed in 11.0.2\n- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 11.0.0-M1; fixed in 11.0.2\n- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 9.0.0.M1; fixed in 9.0.98\n- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 9.0.0.M1; fixed in 9.0.98\n- tomcat (Bitnami): affected all versions; fixed in 9.0.98, 10.1.34, 11.0.2\n- org.apache.tomcat:tomcat-catalina (Maven): affected from 10.1.0-M1; fixed in 10.1.34\n- org.apache.tomcat:tomcat-catalina (Maven): affected from 10.1.0-M1; fixed in 10.1.34\n- org.apache.tomcat:tomcat-catalina (Maven): affected from 11.0.0-M1; fixed in 11.0.2\n- org.apache.tomcat:tomcat-catalina (Maven): affected from 11.0.0-M1; fixed in 11.0.2\n- org.apache.tomcat:tomcat-embed-core (Maven): affected from 9.0.0.M1; fixed in 9.0.98\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-56337/ (Markdown: https://insights.sbomify.com/CVE-2024-56337/index.md)","id":"CVE-2024-56337","markdown":"https://insights.sbomify.com/CVE-2024-56337/index.md","name":"CVE-2024-56337","record":{"aliases":["BIT-tomcat-2024-56337","CLSA-2025-1754650455","CLSA-2026-1784164087","CLSA-2026-1784250513","CLSA-2026-1792160908","DEBIAN-CVE-2024-56337","GHSA-27hp-xhwr-wr2m","OESA-2025-1226","ROOT-APP-MAVEN-CVE-2024-56337","UBUNTU-CVE-2024-56337"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Apache Tomcat","requires_auth":"none","summary":"Attackers can achieve remote code execution via a race condition in JSP compilation when the default servlet write is enabled on case-insensitive file systems.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"tomcat","vendor":"apache"},{"product":"bootstrap_os","vendor":"netapp"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"description":"Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability in Apache Tomcat.\n\nThis issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.1, from 10.1.0-M1 through 10.1.33, from 9.0.0.M1 through 9.0.97.\nThe following versions were EOL at the time the CVE was created but are \nknown to be affected: 8.5.0 though 8.5.100. Other, older, EOL versions \nmay also be affected.\n\nThe mitigation for CVE-2024-50379 was incomplete.\n\nUsers running Tomcat on a case insensitive file system with the default servlet write enabled (readonly initialisation \nparameter set to the non-default value of false) may need additional configuration to fully mitigate CVE-2024-50379 depending on which version of Java they are using with Tomcat:\n- running on Java 8 or Java 11: the system property sun.io.useCanonCaches must be explicitly set to false (it defaults to true)\n- running on Java 17: the system property sun.io.useCanonCaches, if set, must be set to false (it defaults to false)\n- running on Java 21 onwards: no further configuration is required (the system property and the problematic cache have been removed)\n\nTomcat 11.0.3, 10.1.35 and 9.0.99 onwards will include checks that sun.io.useCanonCaches is set appropriately before allowing the default servlet to be write enabled on a case insensitive file system. Tomcat will also set sun.io.useCanonCaches to false by default where it can.","ecosystems":["Bitnami","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":"Apache Tomcat: RCE due to TOCTOU issue in JSP compilation - CVE-2024-50379 mitigation was incomplete","id":"CVE-2024-56337","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"apache:tomcat","products":["apache:tomcat","netapp:bootstrap_os"],"type":"race_condition","year":"2024"},"n_packages":13,"n_references":2,"next":{"headline":"IBM Sterling B2B Integrator cross-site scripting","id":"CVE-2024-56338"},"packages":[{"ecosystem":"Bitnami","fixed":["9.0.98","10.1.34","11.0.2"],"introduced":["0","10.0.0","11.0.0"],"last_affected":[],"package":"tomcat","purl":"pkg:bitnami/tomcat","source":"BIT-tomcat-2024-56337"},{"ecosystem":"Maven","fixed":["10.1.34"],"introduced":["10.1.0-M1"],"last_affected":[],"package":"org.apache.tomcat.embed:tomcat-embed-core","purl":null,"source":"GHSA-27hp-xhwr-wr2m"},{"ecosystem":"Maven","fixed":["10.1.34"],"introduced":["10.1.0-M1"],"last_affected":[],"package":"org.apache.tomcat.embed:tomcat-embed-core","purl":"pkg:maven/org.apache.tomcat.embed/tomcat-embed-core","source":"GHSA-27hp-xhwr-wr2m"},{"ecosystem":"Maven","fixed":["11.0.2"],"introduced":["11.0.0-M1"],"last_affected":[],"package":"org.apache.tomcat.embed:tomcat-embed-core","purl":null,"source":"GHSA-27hp-xhwr-wr2m"},{"ecosystem":"Maven","fixed":["11.0.2"],"introduced":["11.0.0-M1"],"last_affected":[],"package":"org.apache.tomcat.embed:tomcat-embed-core","purl":"pkg:maven/org.apache.tomcat.embed/tomcat-embed-core","source":"GHSA-27hp-xhwr-wr2m"},{"ecosystem":"Maven","fixed":["9.0.98"],"introduced":["9.0.0.M1"],"last_affected":[],"package":"org.apache.tomcat.embed:tomcat-embed-core","purl":null,"source":"GHSA-27hp-xhwr-wr2m"},{"ecosystem":"Maven","fixed":["9.0.98"],"introduced":["9.0.0.M1"],"last_affected":[],"package":"org.apache.tomcat.embed:tomcat-embed-core","purl":"pkg:maven/org.apache.tomcat.embed/tomcat-embed-core","source":"GHSA-27hp-xhwr-wr2m"},{"ecosystem":"Maven","fixed":["10.1.34"],"introduced":["10.1.0-M1"],"last_affected":[],"package":"org.apache.tomcat:tomcat-catalina","purl":null,"source":"GHSA-27hp-xhwr-wr2m"},{"ecosystem":"Maven","fixed":["10.1.34"],"introduced":["10.1.0-M1"],"last_affected":[],"package":"org.apache.tomcat:tomcat-catalina","purl":"pkg:maven/org.apache.tomcat/tomcat-catalina","source":"GHSA-27hp-xhwr-wr2m"},{"ecosystem":"Maven","fixed":["11.0.2"],"introduced":["11.0.0-M1"],"last_affected":[],"package":"org.apache.tomcat:tomcat-catalina","purl":null,"source":"GHSA-27hp-xhwr-wr2m"},{"ecosystem":"Maven","fixed":["11.0.2"],"introduced":["11.0.0-M1"],"last_affected":[],"package":"org.apache.tomcat:tomcat-catalina","purl":"pkg:maven/org.apache.tomcat/tomcat-catalina","source":"GHSA-27hp-xhwr-wr2m"},{"ecosystem":"Maven","fixed":["9.0.98"],"introduced":["9.0.0.M1"],"last_affected":[],"package":"org.apache.tomcat:tomcat-embed-core","purl":null,"source":"GHSA-27hp-xhwr-wr2m"},{"ecosystem":"Maven","fixed":["9.0.98"],"introduced":["9.0.0.M1"],"last_affected":[],"package":"org.apache.tomcat:tomcat-embed-core","purl":"pkg:maven/org.apache.tomcat/tomcat-embed-core","source":"GHSA-27hp-xhwr-wr2m"}],"prev":{"headline":"Security feature bypass in SINAMICS S200","id":"CVE-2024-56336"},"products":["Apache Tomcat"],"published":"2024-12-20","related":[{"cvss_score":10,"headline":"Apache Tomcat Path Equivalence","id":"CVE-2025-24813","kev_date_added":"2025-04-01","published":"2025-03-10"},{"cvss_score":9.8,"headline":"Apache Tomcat Remote Code Execution","id":"CVE-2016-8735","kev_date_added":"2023-05-12","published":"2017-04-06"},{"cvss_score":8.1,"headline":"Apache Tomcat Remote Code Execution","id":"CVE-2017-12617","kev_date_added":"2022-03-25","published":"2017-10-03"},{"cvss_score":8.1,"headline":"Apache Tomcat on Windows Remote Code Execution","id":"CVE-2017-12615","kev_date_added":"2022-03-25","published":"2017-09-19"},{"cvss_score":7.5,"headline":"Apache Tomcat Missing Encryption of Sensitive Data","id":"CVE-2026-34486","kev_date_added":"2026-08-04","published":"2026-04-09"},{"cvss_score":9.8,"headline":"Apache Tomcat: HTTP/2 no-authority bypass of strict SNI validation - CVE-2026-32990 fix incomplete","id":"CVE-2026-65637","kev_date_added":null,"published":"2026-08-25"},{"cvss_score":9.8,"headline":"Apache Tomcat: Limited replay attack possible with DIGEST authentication","id":"CVE-2026-65905","kev_date_added":null,"published":"2026-08-25"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"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":"total"},"state":"PUBLISHED","updated":"2025-11-04","vendors":["Apache Software Foundation"]},"summary":"Attackers can achieve remote code execution via a race condition in JSP compilation when the default servlet write is enabled on case-insensitive file systems.","url":"https://insights.sbomify.com/CVE-2024-56337/"}