CVE-2024-50379
JSON

9.8critical

Apache Tomcat: RCE due to TOCTOU issue in JSP compilation

Severity
9.8critical CVSS:3.1 by CISA-ADP
Exploit likelihood
42.7% (higher than 98% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-5j33-cvvr-w245BIT-TOMCAT-2024-50379

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). This 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. The following versions were EOL at the time the CVE was created but are known to be affected: 8.5.0 though 8.5.100. Other, older, EOL versions may also be affected. Users are recommended to upgrade to version 11.0.2, 10.1.34 or 9.0.98, which fixes the issue.

Affected

Product or packageVersionsReported by
Apache Software Foundation Apache Tomcatfrom 11.0.0-M1 up to 11.0.1, from 10.1.0-M1 up to 10.1.33, from 9.0.0.M1 up to 9.0.97, from 8.5.0 up to 8.5.100, from 3 before 8.5.0, from 10.0.0-M1 up to 10.0.27CVE List
org.apache.tomcat:tomcat-catalina (Maven)from 11.0.0-M1 before 11.0.2, from 10.1.0-M1 before 10.1.34, from 9.0.0.M1 before 9.0.98, from 8.5.0 up to 8.5.100GitHub Advisory Database
org.apache.tomcat.embed:tomcat-embed-core (Maven)from 11.0.0-M1 before 11.0.2, from 10.1.0-M1 before 10.1.34, from 9.0.0.M1 before 9.0.98, from 8.5.0 up to 8.5.100GitHub Advisory Database
apache tomcatfrom 9.0.0 before 9.0.98, from 10.1.0 before 10.1.34, from 11.0.0 before 11.0.2NVD
netapp bootstrap_osNot specifiedNVD
tomcat (Bitnami)from 9.0.0 before 9.0.98, from 10.0.0 before 10.1.34, from 11.0.0 before 11.0.2Bitnami Vulnerability Database

All scores

CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
Bitnami Vulnerability Databasecritical rating

Classification

CWE-367

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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). This 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. The following versions were EOL at the time the CVE was created but are known to be affected: 8.5.0 though 8.5.100. Other, older, EOL versions may also be affected. Users are recommended to upgrade to version 11.0.2, 10.1.34 or 9.0.98, which fixes the issue.

NVD (es)

La vulnerabilidad de condición de ejecución de tiempo de uso y tiempo de verificación (TOCTOU) durante la compilación de JSP en Apache Tomcat permite un RCE en sistemas de archivos que no distinguen entre mayúsculas y minúsculas cuando el servlet predeterminado está habilitado para escritura (configuración no predeterminada). Este problema afecta a Apache Tomcat: desde 11.0.0-M1 hasta 11.0.1, desde 10.1.0-M1 hasta 10.1.33, desde 9.0.0.M1 hasta 9.0.97. Se recomienda a los usuarios que actualicen a la versión 11.0.2, 10.1.34 o 9.0.08, que soluciona el problema.

Bitnami Vulnerability Database

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

This issue affects Apache Tomcat: from 11.0.0 through 11.0.1, from 10.1.0 through 10.1.33, from 9.0.0 through 9.0.97.

The following versions were EOL at the time the CVE was created but are known to be affected: 8.5.0 though 8.5.100. Other, older, EOL versions may also be affected.

Users are recommended to upgrade to version 11.0.2, 10.1.34 or 9.0.98, which fixes the issue.

References

https://lists.apache.org/thread/y6lj6q1xnp822g6ro70tn19sgtjmr80radvisory, mailing-list, vendor-advisory, web
http://www.openwall.com/lists/oss-security/2024/12/17/4discussion, mailing-list, web
http://www.openwall.com/lists/oss-security/2024/12/18/2discussion, mailing-list, web
https://security.netapp.com/advisory/ntap-20250103-0003/advisory, third-party-advisory
https://lists.debian.org/debian-lts-announce/2025/01/msg00009.htmlweb
https://nvd.nist.gov/vuln/detail/CVE-2024-50379advisory, web
https://github.com/apache/tomcat/commit/05ddeeaa54df1e2dc427d0164bedd6b79f78d81fweb
https://github.com/apache/tomcat/commit/43b507ebac9d268b1ea3d908e296cc6e46795c00web
https://github.com/apache/tomcat/commit/631500b0c9b2a2a2abb707e3de2e10a5936e5d41web
https://github.com/apache/tomcat/commit/684247ae85fa633b9197b32391de59fc54703842web
https://github.com/apache/tomcat/commit/8554f6b1722b33a2ce8b0a3fad37825f3a75f2d2web
https://github.com/apache/tomcat/commit/cc7a98b57c6dc1df21979fcff94a36e068f4456cweb

Sources

SourceRecordLicence
CVE ListCVE-2024-50379 changed 2026-11-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-5j33-cvvr-w245 changed 2026-09-10CC-BY-4.0
NVDCVE-2024-50379 changed 2026-11-03Public domain
Bitnami Vulnerability DatabaseBIT-TOMCAT-2024-50379 changed 2026-09-08Apache-2.0