Apache Tomcat Vulnerability CVE-2024
Vulnerabilities mentionedAll →
| CVE | Vulnerability | CVSS | EPSS | Flags | Affected | Exposure | Published |
|---|---|---|---|---|---|---|---|
| CVE-2024-12828 | Authenticated OS Command Injection RCE in Webmin Webmin, a widely used web-based administration tool for Unix and Linux servers, contains an OS command injection flaw (CWE-78, ZDI-CAN-22346) in its handling of CGI requests: a user-supplied string is not properly validated before being used in a system call. An attacker with valid low-privilege credentials can trigger the flaw remotely by sending a crafted CGI request with injected shell commands. Successful exploitation yields arbitrary code execution in the context of root, giving the attacker full control over the affected host. Any organization running Webmin whose web interface is reachable from a network the attacker can access is in scope, including instances exposed to the internet on the default port 10000. No public proof-of-concept or CISA KEV listing exists yet, but EPSS assigns a 33.5% probability of exploitation within 30 days (98th percentile), indicating a meaningful near-term threat. Do: Upgrade Webmin to the fixed release identified in the vendor/ZDI advisory as soon as possible; the available data does not state specific affected or fixed version numbers, so verify the fixed version in Webmin's release notes. Until patched, restrict access to the Webmin interface (default TCP 10000) to trusted networks or a VPN, and audit which accounts hold Webmin credentials since valid authentication is required to exploit. Review web-server and Webmin logs for anomalous CGI requests containing shell metacharacters that could indicate exploitation attempts. | 8.8 | 33% |
| largetens of thousands of internet-exposed Webmin installations (roughly 10k-100k systems), plus additional internal-only deployments of unknown count | ||
| CVE-2024-50379 | TOCTOU Race Condition in Apache Tomcat JSP Compilation Enables RCE CVE-2024-50379 is a time-of-check time-of-use (TOCTOU) race condition (CWE-367) in Apache Tomcat's JSP compilation path that permits unauthenticated remote code execution when Tomcat runs on a case-insensitive file system and the default servlet is enabled for write, which is a non-default configuration. An attacker who can upload or modify files through the write-enabled default servlet can race the JSP compiler so that an altered file is compiled and executed in place of the version that was checked, yielding code execution in the context of the Tomcat process (CVSS 3.1 9.8, network vector with no privileges required). Affected versions are 11.0.0-M1 through 11.0.1, 10.1.0-M1 through 10.1.33, and 9.0.0.M1 through 9.0.97, plus EOL releases 8.5.0 through 8.5.100 and possibly older EOL versions; NetApp products that embed Apache Tomcat are also listed as affected. The flaw is fixed in Tomcat 11.0.2, 10.1.34, and 9.0.98. As of this analysis there is no CISA KEV entry and no public PoC or confirmed in-the-wild exploitation is known, but EPSS assigns a 44.3% probability of exploitation within 30 days (99th percentile), making this a high-priority patch. Do: Upgrade Tomcat to 11.0.2, 10.1.34, or 9.0.98 as applicable; EOL 8.5.x deployments should migrate to a supported branch since no further 8.5 fixes are listed. Check whether your deployment runs on a case-insensitive file system (e.g., Windows, macOS) and whether the default servlet is enabled for write; if it is read-only, the exposure under the current description is low. NetApp customers should review NetApp security advisories for their products that embed Tomcat. | 9.8 | 44% |
| mass≈500,000+ internet-exposed Tomcat instances per public scan counts, with several million total deployments including embedded use | ||
| CVE-2024-56337 | Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability in Apache Tomcat. Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability in Apache Tomcat. 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. The mitigation for CVE-2024-50379 was incomplete. Users running Tomcat on a case insensitive file system with the default servlet write enabled (readonly initialisation parameter set to the non-default value of false) may need additional configuration to fully mitigate CVE-2024-50379 depending on which version of Java they are using with Tomcat: - running on Java 8 or Java 11: the system property sun.io.useCanonCaches must be explicitly set to false (it defaults to true) - running on Java 17: the system property sun.io.useCanonCaches, if set, must be set to false (it defaults to false) - running on Java 21 onwards: no further configuration is required (the system property and the problematic cache have been removed) Tomcat 11.0.3, 10.1.35 and 9.0.99 onwards will include checks that sun.io.useCanonCaches is set appropriately before allowing the default servlet to be write enabled on a case insensitive file system. Tomcat will also set sun.io.useCanonCaches to false by default where it can. NVD description · AI analysis pending | 9.8 | 9% |
| — |
Full article437 words · extracted from thehackernews.com · click to collapse
Ravie LakshmananDec 24, 2024Vulnerability / Zero Day
The Apache Software Foundation (ASF) has released a security update to address an important vulnerability in its Tomcat server software that could result in remote code execution (RCE) under certain conditions.
The vulnerability, tracked as CVE-2024-56337, has been described as an incomplete mitigation for CVE-2024-50379 (CVSS score: 9.8), another critical security flaw in the same product that was previously addressed on December 17, 2024.
"Users running Tomcat on a case insensitive file system with the default servlet write enabled (readonly initialisation parameter set to the non-default value of false) may need additional configuration to fully mitigate CVE-2024-50379 depending on which version of Java they are using with Tomcat," the project maintainers said in an advisory last week.
Both the flaws are Time-of-check Time-of-use (TOCTOU) race condition vulnerabilities that could result in code execution on case-insensitive file systems when the default servlet is enabled for write.
"Concurrent read and upload under load of the same file can bypass Tomcat's case sensitivity checks and cause an uploaded file to be treated as a JSP leading to remote code execution," Apache noted in an alert for CVE-2024-50379.
CVE-2024-56337 impacts the below versions of Apache Tomcat -
- Apache Tomcat 11.0.0-M1 to 11.0.1 (Fixed in 11.0.2 or later)
- Apache Tomcat 10.1.0-M1 to 10.1.33 (Fixed in 10.1.34 or later)
- Apache Tomcat 9.0.0.M1 to 9.0.97 (Fixed in 9.0.98 or later)
Additionally, users are required to carry out the following configuration changes depending on the version of Java being run -
- Java 8 or Java 11 - Explicitly set system property sun.io.useCanonCaches to false (it defaults to true)
- Java 17 - Set system property sun.io.useCanonCaches to false, if already set (it defaults to false)
- Java 21 and later - No action is required, as the system property has been removed
The ASF credited security researchers Nacl, WHOAMI, Yemoli, and Ruozhi for identifying and reporting both shortcomings. It also acknowledged the KnownSec 404 Team for independently reporting CVE-2024-56337 with a proof-of-concept (PoC) code.
The disclosure comes as the Zero Day Initiative (ZDI) shared details of a critical bug in Webmin (CVE-2024-12828, CVSS score: 9.9) that allows authenticated remote attackers to execute arbitrary code.
"The specific flaw exists within the handling of CGI requests," the ZDI said. "The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of root."
Found this article interesting? Follow us on Google News, Twitter and LinkedIn to read more exclusive content we post.
Text extracted automatically; images, tables and formatting may be missing. Original: https://thehackernews.com/2024/12/apache-tomcat-vulnerability-cve-2024.html