{"answers":{"affected":"17 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":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-50379 exists.","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-50379 is a critical vulnerability in Apache Tomcat, published on 17 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-50379 and fix it if it is affected.\n\nWhat it is: CVE-2024-50379 is a critical vulnerability in Apache Tomcat, published on 17 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-50379 exists.\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 8.5.0 up to 8.5.100; no fix listed\n- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 8.5.0 up to 8.5.100; no fix listed\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 from 9.0.0; 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\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-50379/ (Markdown: https://insights.sbomify.com/CVE-2024-50379/index.md)","id":"CVE-2024-50379","markdown":"https://insights.sbomify.com/CVE-2024-50379/index.md","name":"CVE-2024-50379","record":{"aliases":["BIT-tomcat-2024-50379","CLSA-2025-1745585424","DEBIAN-CVE-2024-50379","GHSA-5j33-cvvr-w245","RHSA-2025:0342","RHSA-2025:0361","RHSA-2025:1920","ROOT-APP-MAVEN-CVE-2024-50379","UBUNTU-CVE-2024-50379"],"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 on case-insensitive file systems when the default servlet write is enabled.","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 during JSP compilation in Apache Tomcat permits an RCE on case insensitive file systems when the default servlet is enabled for write (non-default configuration).\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.\n\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 may also be affected.\n\nUsers are recommended to upgrade to version 11.0.2, 10.1.34 or 9.0.98, which fixes the issue.","ecosystems":["Bitnami","Maven","Red Hat:jboss_enterprise_web_server:5.8::el7","Red Hat:jboss_enterprise_web_server:5.8::el8","Red Hat:jboss_enterprise_web_server:5.8::el9","Red Hat:jboss_enterprise_web_server:6.0::el8","Red Hat:jboss_enterprise_web_server:6.0::el9","Red Hat:rhel_eus:9.2::appstream"],"exploits":{"exploitdb":0,"first_seen":"2024-12-18","github_poc":15,"max_poc_stars":84,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-12-23T07:20:47Z","kind":"github_poc","ref":"https://github.com/SleepingBag945/CVE-2024-50379","stars":84,"title":"tomcat CVE-2024-50379/CVE-2024-56337 条件竞争文件上传exp"},{"date":"2024-12-21T05:54:29Z","kind":"github_poc","ref":"https://github.com/ph0ebus/Tomcat-CVE-2024-50379-Poc","stars":57,"title":"RCE through a race condition in Apache Tomcat"},{"date":"2024-12-20T05:24:10Z","kind":"github_poc","ref":"https://github.com/iSee857/CVE-2024-50379-PoC","stars":24,"title":"Apache Tomcat（CVE-2024-50379）条件竞争致远程代码执行漏洞批量检测脚本"},{"date":"2024-12-18T19:53:46Z","kind":"github_poc","ref":"https://github.com/v3153/CVE-2024-50379-POC","stars":4,"title":null},{"date":"2024-12-25T18:42:29Z","kind":"github_poc","ref":"https://github.com/dragonked2/CVE-2024-50379-POC","stars":4,"title":"This repository contains a Python script designed to exploit CVE-2024-50379, a vulnerability that allows attackers to upload a JSP shell to a vulnerable server and execute arbitrary commands remotely. This exploit is particularly useful when the /uploads directory is either unprotected or not present on the target server."},{"date":"2024-12-20T03:43:47Z","kind":"github_poc","ref":"https://github.com/JFOZ1010/Nuclei-Template-CVE-2024-50379","stars":2,"title":"Repositorio para alojar un template de Nuclei para probar el CVE-2024-50379 (en fase de prueba)"},{"date":"2025-01-23T10:28:40Z","kind":"github_poc","ref":"https://github.com/pwnosec/CVE-2024-50379","stars":2,"title":"ExploitDB CVE-2024-50379 a vulnerability that enables attackers to upload a JSP shell to a vulnerable server and execute commands remotely. The exploit is especially effective when the /uploads directory is either unprotected or missing on the target server."},{"date":"2024-12-19T02:43:18Z","kind":"github_poc","ref":"https://github.com/yiliufeng168/CVE-2024-50379-POC","stars":1,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Apache Tomcat: RCE due to TOCTOU issue in JSP compilation","id":"CVE-2024-50379","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":71,"n_references":1,"next":{"headline":"Authentication Bypass by Spoofing in Snap One OVRC cloud","id":"CVE-2024-50380"},"packages":[{"ecosystem":"Bitnami","fixed":["9.0.98","10.1.34","11.0.2"],"introduced":["9.0.0","10.0.0","11.0.0"],"last_affected":[],"package":"tomcat","purl":"pkg:bitnami/tomcat","source":"BIT-tomcat-2024-50379"},{"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-5j33-cvvr-w245"},{"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-5j33-cvvr-w245"},{"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-5j33-cvvr-w245"},{"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-5j33-cvvr-w245"},{"ecosystem":"Maven","fixed":[],"introduced":["8.5.0"],"last_affected":["8.5.100"],"package":"org.apache.tomcat.embed:tomcat-embed-core","purl":null,"source":"GHSA-5j33-cvvr-w245"},{"ecosystem":"Maven","fixed":[],"introduced":["8.5.0"],"last_affected":["8.5.100"],"package":"org.apache.tomcat.embed:tomcat-embed-core","purl":"pkg:maven/org.apache.tomcat.embed/tomcat-embed-core","source":"GHSA-5j33-cvvr-w245"},{"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-5j33-cvvr-w245"},{"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-5j33-cvvr-w245"},{"ecosystem":"Maven","fixed":["10.1.34"],"introduced":["10.1.0-M1"],"last_affected":[],"package":"org.apache.tomcat:tomcat-catalina","purl":null,"source":"GHSA-5j33-cvvr-w245"},{"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-5j33-cvvr-w245"},{"ecosystem":"Maven","fixed":["11.0.2"],"introduced":["11.0.0-M1"],"last_affected":[],"package":"org.apache.tomcat:tomcat-catalina","purl":null,"source":"GHSA-5j33-cvvr-w245"},{"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-5j33-cvvr-w245"},{"ecosystem":"Maven","fixed":[],"introduced":["8.5.0"],"last_affected":["8.5.100"],"package":"org.apache.tomcat:tomcat-catalina","purl":null,"source":"GHSA-5j33-cvvr-w245"},{"ecosystem":"Maven","fixed":[],"introduced":["8.5.0"],"last_affected":["8.5.100"],"package":"org.apache.tomcat:tomcat-catalina","purl":"pkg:maven/org.apache.tomcat/tomcat-catalina","source":"GHSA-5j33-cvvr-w245"},{"ecosystem":"Maven","fixed":["9.0.98"],"introduced":["9.0.0.M1"],"last_affected":[],"package":"org.apache.tomcat:tomcat-catalina","purl":null,"source":"GHSA-5j33-cvvr-w245"},{"ecosystem":"Maven","fixed":["9.0.98"],"introduced":["9.0.0.M1"],"last_affected":[],"package":"org.apache.tomcat:tomcat-catalina","purl":"pkg:maven/org.apache.tomcat/tomcat-catalina","source":"GHSA-5j33-cvvr-w245"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el7","fixed":["0:9.0.87-6.redhat_00006.1.el7jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat","purl":"pkg:rpm/redhat/jws5-tomcat","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el7","fixed":["0:9.0.87-6.redhat_00006.1.el7jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-admin-webapps","purl":"pkg:rpm/redhat/jws5-tomcat-admin-webapps","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el7","fixed":["0:9.0.87-6.redhat_00006.1.el7jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-docs-webapp","purl":"pkg:rpm/redhat/jws5-tomcat-docs-webapp","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el7","fixed":["0:9.0.87-6.redhat_00006.1.el7jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-el-3.0-api","purl":"pkg:rpm/redhat/jws5-tomcat-el-3.0-api","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el7","fixed":["0:9.0.87-6.redhat_00006.1.el7jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-java-jdk11","purl":"pkg:rpm/redhat/jws5-tomcat-java-jdk11","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el7","fixed":["0:9.0.87-6.redhat_00006.1.el7jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-java-jdk8","purl":"pkg:rpm/redhat/jws5-tomcat-java-jdk8","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el7","fixed":["0:9.0.87-6.redhat_00006.1.el7jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-javadoc","purl":"pkg:rpm/redhat/jws5-tomcat-javadoc","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el7","fixed":["0:9.0.87-6.redhat_00006.1.el7jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-jsp-2.3-api","purl":"pkg:rpm/redhat/jws5-tomcat-jsp-2.3-api","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el7","fixed":["0:9.0.87-6.redhat_00006.1.el7jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-lib","purl":"pkg:rpm/redhat/jws5-tomcat-lib","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el7","fixed":["0:9.0.87-6.redhat_00006.1.el7jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-selinux","purl":"pkg:rpm/redhat/jws5-tomcat-selinux","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el7","fixed":["0:9.0.87-6.redhat_00006.1.el7jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-servlet-4.0-api","purl":"pkg:rpm/redhat/jws5-tomcat-servlet-4.0-api","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el7","fixed":["0:9.0.87-6.redhat_00006.1.el7jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-webapps","purl":"pkg:rpm/redhat/jws5-tomcat-webapps","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el8","fixed":["0:9.0.87-6.redhat_00006.1.el8jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat","purl":"pkg:rpm/redhat/jws5-tomcat","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el8","fixed":["0:9.0.87-6.redhat_00006.1.el8jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-admin-webapps","purl":"pkg:rpm/redhat/jws5-tomcat-admin-webapps","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el8","fixed":["0:9.0.87-6.redhat_00006.1.el8jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-docs-webapp","purl":"pkg:rpm/redhat/jws5-tomcat-docs-webapp","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el8","fixed":["0:9.0.87-6.redhat_00006.1.el8jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-el-3.0-api","purl":"pkg:rpm/redhat/jws5-tomcat-el-3.0-api","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el8","fixed":["0:9.0.87-6.redhat_00006.1.el8jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-javadoc","purl":"pkg:rpm/redhat/jws5-tomcat-javadoc","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el8","fixed":["0:9.0.87-6.redhat_00006.1.el8jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-jsp-2.3-api","purl":"pkg:rpm/redhat/jws5-tomcat-jsp-2.3-api","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el8","fixed":["0:9.0.87-6.redhat_00006.1.el8jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-lib","purl":"pkg:rpm/redhat/jws5-tomcat-lib","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el8","fixed":["0:9.0.87-6.redhat_00006.1.el8jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-selinux","purl":"pkg:rpm/redhat/jws5-tomcat-selinux","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el8","fixed":["0:9.0.87-6.redhat_00006.1.el8jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-servlet-4.0-api","purl":"pkg:rpm/redhat/jws5-tomcat-servlet-4.0-api","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el8","fixed":["0:9.0.87-6.redhat_00006.1.el8jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat-webapps","purl":"pkg:rpm/redhat/jws5-tomcat-webapps","source":"RHSA-2025:0361"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:5.8::el9","fixed":["0:9.0.87-6.redhat_00006.1.el9jws"],"introduced":["0"],"last_affected":[],"package":"jws5-tomcat","purl":"pkg:rpm/redhat/jws5-tomcat","source":"RHSA-2025:0361"}],"prev":{"headline":"Apache Airflow: Secrets not masked in UI when sensitive variables are set via Airflow cli","id":"CVE-2024-50378"},"products":["Apache Tomcat"],"published":"2024-12-17","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":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["Apache Software Foundation"]},"summary":"Attackers can achieve remote code execution via a race condition in JSP compilation on case-insensitive file systems when the default servlet write is enabled.","url":"https://insights.sbomify.com/CVE-2024-50379/"}