CVE-2024-56337
tomcat: Incomplete fix for CVE-2024-50379 - RCE due to TOCTOU issue in JSP compilation
Overview
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.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-367
Affected packages · 6
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | tomcat | <9.0.98>=10.0.0, <10.1.34>=11.0.0, <11.0.2 | 9.0.9810.1.3411.0.2 |
| Maven | org.apache.tomcat:tomcat-catalina | >=11.0.0-M1, <11.0.2>=10.1.0-M1, <10.1.34 | 11.0.210.1.34 |
| Maven | org.apache.tomcat:tomcat-embed-core | >=9.0.0.M1, <9.0.98 | 9.0.98 |
| Maven | org.apache.tomcat.embed:tomcat-embed-core | >=11.0.0-M1, <11.0.2>=10.1.0-M1, <10.1.34>=9.0.0.M1, <9.0.98 | 11.0.210.1.349.0.98 |
| Seal Maven | org.apache.tomcat.embed:tomcat-embed-core | >=10.1.10+sp0, <10.1.10+sp2>=10.1.5+sp0, <10.1.5+sp2>=9.0.46+sp0, <9.0.46+sp2>=9.0.58+sp0, <9.0.58+sp2>=9.0.68+sp0, <9.0.68+sp2+2 more | 10.1.10+sp210.1.5+sp29.0.46+sp29.0.58+sp29.0.68+sp2 |
| Seal Maven | seal.sp1.org.apache.tomcat.embed:tomcat-embed-core | >=10.1.10, <10.1.10+sp999>=10.1.5, <10.1.5+sp999>=9.0.46, <9.0.46+sp999>=9.0.58, <9.0.58+sp999>=9.0.68, <9.0.68+sp999+2 more | 10.1.10+sp99910.1.5+sp9999.0.46+sp9999.0.58+sp9999.0.68+sp999 |
Open a package to see all its vulnerabilities.
Operating systems · 46 fixes
Oracle Linux 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | tomcat +7 | 1:9.0.87-1.el8_10.4 |
| 9 | tomcat +7 | 1:9.0.87-3.el9_6.1 |
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | apache-tomcat9 +1 | 9.0.98-1.ph4 |
| 5.0 | apache-tomcat9 +1 | 9.0.98-1.ph5 |
Red Hat 4 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | tomcat | affected | — |
| 7 | jws5-tomcat +11 | 0:9.0.87-11.redhat_00010.1.el7jws | RHSA-2025:4521 |
| 8 | tomcat | affected | — |
| 8 | jws5-tomcat +9 | 0:9.0.87-11.redhat_00010.1.el8jws | RHSA-2025:4521 |
| 8 | tomcat +7 | 1:9.0.87-1.el8_10.4 | RHSA-2025:11333 |
| 8 | tomcat +7 | 1:9.0.87-1.el8_8.5 | RHSA-2025:11382 |
7 more rows
SUSE Linux Enterprise 3 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | tomcat +6 | 9.0.98-150200.74.1 | SUSE-SU-2025:0058-1 |
| 15.5 | tomcat10 +6 | 10.1.34-150200.5.31.1 | SUSE-SU-2025:0033-1 |
| 15.5 | tomcat +6 | 9.0.98-150200.74.1 | SUSE-SU-2025:0058-1 |
| 15.6 | tomcat10 +6 | 10.1.34-150200.5.31.1 | SUSE-SU-2025:0033-1 |
| 15.6 | tomcat +6 | 9.0.98-150200.74.1 | SUSE-SU-2025:0058-1 |
alma 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | tomcat9 +7 | 1:9.0.87-5.el10_0.1 |
| 8 | tomcat +7 | 1:9.0.87-1.el8_10.4 |
| 9 | tomcat +7 | 1:9.0.87-3.el9_6.1 |
amazon linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | tomcat10 +7 | 1:10.1.34-1.amzn2023.0.1 |
| 2023 | tomcat9 +7 | 1:9.0.98-1.amzn2023.0.1 |
chainguard 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| thingsboard | 3.9-r1 |
debian 4 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | tomcat9 | 9.0.43-2~deb11u11 |
| 12 | tomcat10 | 10.1.34-0+deb12u1 |
| 12 | tomcat9 | 9.0.70-2 |
| 13 | tomcat10 | 10.1.34-1 |
| 13 | tomcat9 | 9.0.70-2 |
| 14 | tomcat10 | 10.1.34-1 |
1 more row
echo 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| tomcat10 | 10.1.34-0+deb12u1 | |
| tomcat9 | 9.0.70-2 |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | tomcat10 +10 | 10.1.35-1.1 | openSUSE-SU-2025:14897-1 |
| Tumbleweed | tomcat +10 | 9.0.99-1.1 | openSUSE-SU-2025:14896-1 |
rocky 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | tomcat9 +7 | 1:9.0.87-5.el10_0.1 |
| 8 | tomcat +7 | 1:9.0.87-1.el8_10.4 |
| 9 | tomcat +7 | 1:9.0.87-3.el9_6.1 |
ubuntu 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | tomcat8 +1 | affected |
| 20.04-ESM | tomcat9 | affected |
| 22.04 | tomcat9 | affected |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| thingsboard | 3.9-r1 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:11333
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:11335
- access.redhat.com https://access.redhat.com/security/cve/CVE-2024-56337
- bugzilla.redhat.com https://bugzilla.redhat.com/2333521
- bugzilla.redhat.com https://bugzilla.redhat.com/2362783
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2333521
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2362783
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-56337
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-31650
Show all 25 references
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2025-11335.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2025:11333
- github.com https://github.com/apache/tomcat
- linux.oracle.com https://linux.oracle.com/cve/CVE-2024-56337.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2025-11335.html
- lists.apache.org https://lists.apache.org/thread/b2b9qrgjrz1kvo4ym8y2wkfdvwoq6qbp
- lists.debian.org https://lists.debian.org/debian-lts-announce/2025/01/msg00009.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2024-56337
- security.netapp.com https://security.netapp.com/advisory/ntap-20250103-0002
- security.netapp.com https://security.netapp.com/advisory/ntap-20250103-0002/
- tomcat.apache.org https://tomcat.apache.org/security-10.html#Fixed_in_Apache_Tomcat_10.1.34
- tomcat.apache.org https://tomcat.apache.org/security-11.html#Fixed_in_Apache_Tomcat_11.0.2
- tomcat.apache.org https://tomcat.apache.org/security-9.html#Fixed_in_Apache_Tomcat_9.0.98
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2024-50379
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2024-56337
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.