CVE-2024-50379: CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition in Apache Software Foundation Apache Tomcat
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 Analysis
Technical Summary
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.
Affected Countries
Germany, France, United Kingdom, Netherlands, Italy, Spain, Poland, Sweden
CVE-2024-50379: CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition in Apache Software Foundation 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
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.
Affected Countries
For access to advanced analysis and higher rate limits, contact root@offseq.com
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2025-14617: Path Traversal in Jehovahs Witnesses JW Library App
MediumCVE-2025-14607: Memory Corruption in OFFIS DCMTK
MediumCVE-2025-14606: Deserialization in tiny-rdm Tiny RDM
LowCVE-2025-14590: SQL Injection in code-projects Prison Management System
MediumCVE-2025-14589: SQL Injection in code-projects Prison Management System
MediumActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.