# CVE-2024-56337: Apache Tomcat: RCE due to TOCTOU issue in JSP compilation - CVE-2024-50379 mitigation was incomplete

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 20.7%, higher than 97% of CVEs (2026-12-01)
- Published: 2024-12-20T15:28:54.738Z
- Modified: 2026-09-10T03:50:56.287Z
- Also known as: GHSA-27hp-xhwr-wr2m, BIT-TOMCAT-2024-56337
- Weaknesses: CWE-367
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: apache

## Description

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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Tomcat: from 11.0.0-M1 up to 11.0.1; from 10.1.0-M1 up to 10.1.33; from 9.0.0.M1 up to 9.0.97; from 8.5.0 up to 8.5.100; from 3 before 8.5.0; from 10.0.0-M1 up to 10.0.27
- org.apache.tomcat:tomcat-catalina (Maven): from 11.0.0-M1 before 11.0.2; from 10.1.0-M1 before 10.1.34
- org.apache.tomcat:tomcat-embed-core (Maven): from 9.0.0.M1 before 9.0.98
- org.apache.tomcat.embed:tomcat-embed-core (Maven): from 11.0.0-M1 before 11.0.2; from 10.1.0-M1 before 10.1.34; from 9.0.0.M1 before 9.0.98
- apache tomcat: from 9.0.0 before 9.0.98; from 10.1.0 before 10.1.34; from 11.0.0 before 11.0.2
- netapp bootstrap_os: no versions given
- tomcat (Bitnami): before 9.0.98; from 10.0.0 before 10.1.34; from 11.0.0 before 11.0.2

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://www.cve.org/CVERecord?id=CVE-2024-50379> (advisory, third-party-advisory, vdb-entry, web)
- <https://lists.apache.org/thread/b2b9qrgjrz1kvo4ym8y2wkfdvwoq6qbp> (advisory, mailing-list, vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20250103-0002/> (advisory, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00009.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-56337> (advisory, web)
- <https://github.com/apache/tomcat> (package)
- <https://security.netapp.com/advisory/ntap-20250103-0002> (web)
- <https://tomcat.apache.org/security-10.html#Fixed_in_Apache_Tomcat_10.1.34> (web)
- <https://tomcat.apache.org/security-11.html#Fixed_in_Apache_Tomcat_11.0.2> (web)
- <https://tomcat.apache.org/security-9.html#Fixed_in_Apache_Tomcat_9.0.98> (web)

## Sources

- CVE List: [CVE-2024-56337](https://www.cve.org/CVERecord?id=CVE-2024-56337), CVE Terms of Use, modified 2025-11-04
- GitHub Advisory Database: [GHSA-27hp-xhwr-wr2m](https://github.com/advisories/GHSA-27hp-xhwr-wr2m), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-56337](https://nvd.nist.gov/vuln/detail/CVE-2024-56337), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-TOMCAT-2024-56337](https://osv.dev/vulnerability/BIT-TOMCAT-2024-56337), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-56337 · Whole record: https://cve.day/CVE-2024-56337.json · Rebuilt by cve.day 2026-11-25T22:58:50.295Z
