Apache Tomcat TOCTOU Race Condition Vulnerability

Published Date: December 18, 2024

Package Affected Versions Patched Versions Severity
📦 org.apache.tomcat:tomcat-catalina (Maven) >= 11.0.0-M1, < 11.0.2 11.0.2 High

Description

A high-severity vulnerability has been identified in Apache Tomcat. This issue, a Time-of-check Time-of-use (TOCTOU) race condition, arises during JSP compilation and can result in Remote Code Execution (RCE) on case-insensitive file systems. The vulnerability occurs when the default servlet is enabled for write—a non-default configuration.

Affected Versions



  • 11.0.0-M1 to 11.0.1

  • 10.1.0-M1 to 10.1.33

  • 9.0.0.M1 to 9.0.97


Patched Versions


The issue has been resolved in the following versions:

  • 11.0.2

  • 10.1.34

  • 9.0.98


Impact


This vulnerability exploits a timing discrepancy between the validation of a resource and its use during the JSP compilation process. If an attacker can manipulate the system within this brief window, they could execute arbitrary code remotely. The risk is significant, especially on systems configured with case-insensitive file systems and where the default servlet is writable. Notably, the vulnerable configuration is not enabled by default, reducing the potential attack surface.

Patches & Workarounds

Recommendations


Users should upgrade to the patched versions as soon as possible:

  • For the 11.x series: Upgrade to 11.0.2.

  • For the 10.1.x series: Upgrade to 10.1.34.

  • For the 9.0.x series: Upgrade to 9.0.98.


If upgrading is not immediately possible, consider mitigating the risk by disabling write access for the default servlet or using a case-sensitive file system.

References

https://tomcat.apache.org/security-10.html#Fixed_in_Apache_Tomcat_10.1.34

https://tomcat.apache.org/security-11.html#Fixed_in_Apache_Tomcat_11.0.2

https://tomcat.apache.org/security-9.html#Fixed_in_Apache_Tomcat_9.0.98

http://www.openwall.com/lists/oss-security/2024/12/17/4
Share this:
  • Preventing QR Code Phishing Attacks in Small Businesses

    QR codes have become a staple in small businesses. From quick payments to instant access to menus and promotions, they offer speed and convenience. However, with increased adoption comes a growing threat: QR code phishing, also known as quishing. Cybercriminals exploit QR codes to trick customers into sharing sensitive data or downloading malware.

  • How a Small Business Survived a Ransomware Attack: Costs, Lessons, and Practical Cybersecurity Tips

    Introduction In December 2024, a small marketing agency with just 20 employees faced a ransomware attack that locked them out of critical client files during the peak holiday campaign season. This case study explores how the attack happened, how the business responded, and what lessons other small and medium-sized businesses (SMBs) can take away.

  • Sophos Firewall Vulnerabilities: Critical Fixes You Shouldn’t Ignore

    Sophos has rolled out hotfixes to fix three serious security flaws in its firewall products. These vulnerabilities could let attackers execute remote code and gain privileged system access under specific conditions. While there’s no sign of active exploitation, the risks are too significant to overlook.

  • Case Study: How a Small Bakery Lost Its Recipe — and Customer Data

    The Incident In mid-2024, “Flour Power,” a small bakery in Wisconsin, fell victim to a data breach. The owners had just implemented a new online ordering system. The system made it easy for customers to place orders and pay online, but it also made things easy for attackers.

  • Blockchain-Based Backup Solutions: Ensuring Immutable and Decentralized Data Protection

    Data protection is a challenge. From accidental deletions to malicious attacks, the risks are endless. Traditional backup systems, while useful, come with vulnerabilities—centralized storage, potential tampering, and single points of failure. Enter blockchain technology, a buzzword that’s more than just hype. Blockchain-based backup solutions promise to revolutionize how we protect and store data, offering immutability,…

  • New Cybersecurity Rules to Protect Sensitive US Data

    The US Cybersecurity and Infrastructure Security Agency (CISA) is rolling out strict new security rules for critical sectors to prevent sensitive data from falling into the wrong hands. Recent cyberattacks have exposed major vulnerabilities, making these changes urgent and necessary. Here’s what you need to know.

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.