Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-50379: CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition in Apache Software Foundation Apache Tomcat

0
Critical
VulnerabilityCVE-2024-50379cvecve-2024-50379cwe-367
Published: Tue Dec 17 2024 (12/17/2024, 12:34:54 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache Tomcat

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.

AI-Powered Analysis

AILast updated: 11/06/2025, 01:39:59 UTC

Technical Analysis

CVE-2024-50379 is a critical security vulnerability classified under CWE-367 (Time-of-check Time-of-use (TOCTOU) Race Condition) affecting Apache Tomcat versions 8.5.0 through 11.0.1. The flaw occurs during the compilation of JavaServer Pages (JSP) on case-insensitive file systems when the default servlet is configured to allow write operations, which is not the default setting. The TOCTOU race condition arises because the system checks file properties and then uses the file in a separate step, allowing an attacker to manipulate the file state between these operations. This can be exploited to achieve remote code execution (RCE) without requiring authentication or user interaction, making it highly dangerous. The vulnerability affects multiple major Tomcat branches, including 8.5.x, 9.0.x, 10.1.x, and 11.0.x, with older versions also impacted though some are end-of-life. The Apache Software Foundation has addressed the issue in versions 11.0.2, 10.1.34, and 9.0.98. The CVSS v3.1 score of 9.8 reflects the vulnerability's ease of exploitation, lack of required privileges, and the potential for complete compromise of confidentiality, integrity, and availability. No known exploits are currently reported in the wild, but the critical nature and public disclosure necessitate immediate attention. The vulnerability is particularly relevant for environments running Tomcat on case-insensitive file systems such as Windows or certain macOS configurations, and where the default servlet is configured to allow write access, which is a non-default but possible configuration in some deployments.

Potential Impact

The impact of CVE-2024-50379 on European organizations is severe due to the widespread use of Apache Tomcat in enterprise web applications, government portals, and critical infrastructure. Successful exploitation results in remote code execution, allowing attackers to execute arbitrary code with the privileges of the Tomcat process. This can lead to full system compromise, data theft, service disruption, and lateral movement within networks. Organizations using case-insensitive file systems (commonly Windows-based servers) with write-enabled default servlets are at highest risk. The vulnerability threatens confidentiality, integrity, and availability of affected systems. Given the criticality and ease of exploitation, attackers could deploy ransomware, exfiltrate sensitive data, or establish persistent footholds. European sectors such as finance, healthcare, public administration, and manufacturing that rely on Tomcat-based applications could face operational disruptions and regulatory penalties under GDPR if breaches occur. The lack of known exploits in the wild provides a window for proactive mitigation, but the risk of imminent exploitation remains high.

Mitigation Recommendations

1. Immediately upgrade Apache Tomcat to the fixed versions: 11.0.2, 10.1.34, or 9.0.98 depending on your deployment branch. 2. Audit and disable write permissions on the default servlet unless explicitly required, as this is a non-default configuration that enables the vulnerability. 3. For environments running on case-insensitive file systems (e.g., Windows), prioritize patching and configuration review due to increased risk. 4. Implement strict file system permissions to limit the ability of attackers to manipulate JSP files or servlet resources. 5. Monitor web server logs and application behavior for unusual file access patterns or JSP compilation errors that may indicate exploitation attempts. 6. Employ network segmentation and application-layer firewalls to restrict external access to Tomcat management interfaces and JSP compilation endpoints. 7. Regularly review and update incident response plans to include scenarios involving Tomcat RCE vulnerabilities. 8. Consider deploying runtime application self-protection (RASP) or web application firewalls (WAF) with signatures targeting TOCTOU exploitation techniques as an additional layer of defense.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
apache
Date Reserved
2024-10-23T13:31:10.241Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 690204553aaa02566521b56f

Added to database: 10/29/2025, 12:11:01 PM

Last enriched: 11/6/2025, 1:39:59 AM

Last updated: 12/13/2025, 2:44:12 PM

Views: 89

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats