Loading...
Skip to main content

CVE-2024-50379

HIGH

Apache Tomcat Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability

Published December 17, 2024Updated February 4, 2026Source: osv

Summary

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.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.apache.tomcat:tomcat-catalina to 10.1.34 or later
<!-- Update pom.xml dependency version to 10.1.34 for org.apache.tomcat:tomcat-catalina -->
Maven
Update org.apache.tomcat:tomcat-catalina to 11.0.2 or later
<!-- Update pom.xml dependency version to 11.0.2 for org.apache.tomcat:tomcat-catalina -->
Maven
Update org.apache.tomcat.embed:tomcat-embed-core to 11.0.2 or later
<!-- Update pom.xml dependency version to 11.0.2 for org.apache.tomcat.embed:tomcat-embed-core -->
Maven
Update org.apache.tomcat.embed:tomcat-embed-core to 9.0.98 or later
<!-- Update pom.xml dependency version to 9.0.98 for org.apache.tomcat.embed:tomcat-embed-core -->
Maven
Update org.apache.tomcat.embed:tomcat-embed-core to 10.1.34 or later
<!-- Update pom.xml dependency version to 10.1.34 for org.apache.tomcat.embed:tomcat-embed-core -->
Maven
Update org.apache.tomcat:tomcat-catalina to 9.0.98 or later
<!-- Update pom.xml dependency version to 9.0.98 for org.apache.tomcat:tomcat-catalina -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (8)

PackageEcosystemAffectedFixed In
org.apache.tomcat.embed:tomcat-embed-core
maven
8.5.0, 8.5.100, 8.5.11, 8.5.12 (+81 more)Range-based data available
org.apache.tomcat:tomcat-catalina
maven
8.5.0, 8.5.100, 8.5.11, 8.5.12 (+81 more)Range-based data available
org.apache.tomcat:tomcat-catalina
maven
10.1.0, 10.1.0-M1, 10.1.0-M10, 10.1.0-M11 (+39 more)10.1.34
org.apache.tomcat:tomcat-catalina
maven
11.0.0, 11.0.0-M1, 11.0.0-M10, 11.0.0-M11 (+21 more)11.0.2
org.apache.tomcat.embed:tomcat-embed-core
maven
11.0.0, 11.0.0-M1, 11.0.0-M10, 11.0.0-M11 (+21 more)11.0.2
org.apache.tomcat.embed:tomcat-embed-core
maven
9.0.0.M1, 9.0.0.M10, 9.0.0.M11, 9.0.0.M13 (+95 more)9.0.98
org.apache.tomcat.embed:tomcat-embed-core
maven
10.1.0, 10.1.0-M1, 10.1.0-M10, 10.1.0-M11 (+39 more)10.1.34
org.apache.tomcat:tomcat-catalina
maven
9.0.0.M1, 9.0.0.M10, 9.0.0.M11, 9.0.0.M13 (+95 more)9.0.98

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2024-50379?
Apache Tomcat Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2024-50379?
CVE-2024-50379 affects org.apache.tomcat.embed:tomcat-embed-core and org.apache.tomcat:tomcat-catalina. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-50379 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-5j33-cvvr-w245
BIT-tomcat-2024-50379

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies