cve.bz

CVE-2024-56337

9.8 criticalEPSS 19%Fix available

Critical (9.8). EPSS 19% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.tomcat:tomcat-catalina 10.1.34, 11.0.2.

On this page
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.

Severity

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
EPSS
19% (unchanged from 19% a week ago; 9.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 97th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2025-08-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-56337 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-56337?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-56337?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-56337 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Tomcatfrom 11.0.0-M1 through 11.0.1
Apache Software Foundation Apache Tomcatfrom 10.1.0-M1 through 10.1.33
Apache Software Foundation Apache Tomcatfrom 9.0.0.M1 through 9.0.97
Apache Software Foundation Apache Tomcatfrom 8.5.0 through 8.5.100

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-27hp-xhwr-wr2mMavenorg.apache.tomcat:tomcat-catalina>=11.0.0-M1 <11.0.211.0.2
GHSA-27hp-xhwr-wr2mMavenorg.apache.tomcat:tomcat-catalina>=10.1.0-M1 <10.1.3410.1.34
GHSA-27hp-xhwr-wr2mMavenorg.apache.tomcat:tomcat-embed-core>=9.0.0.M1 <9.0.989.0.98
GHSA-27hp-xhwr-wr2mMavenorg.apache.tomcat.embed:tomcat-embed-core>=11.0.0-M1 <11.0.211.0.2
GHSA-27hp-xhwr-wr2mMavenorg.apache.tomcat.embed:tomcat-embed-core>=10.1.0-M1 <10.1.3410.1.34
GHSA-27hp-xhwr-wr2mMavenorg.apache.tomcat.embed:tomcat-embed-core>=9.0.0.M1 <9.0.989.0.98

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11tomcat99.0.43-2~deb11u11DLA-4017-1
Debian12tomcat1010.1.34-0+deb12u1DEBIAN-CVE-2024-56337 DSA-5845-1
Debian12, 13, 14tomcat99.0.70-2DEBIAN-CVE-2024-56337
Debian13, 14tomcat1010.1.34-1DEBIAN-CVE-2024-56337
Ubuntu24.04:LTStomcat10no fix listedUBUNTU-CVE-2024-56337
UbuntuPro:16.04:LTStomcat8no fix listedUBUNTU-CVE-2024-56337
UbuntuPro:18.04:LTStomcat8, tomcat9no fix listedUBUNTU-CVE-2024-56337
UbuntuPro:20.04:LTS, Pro:22.04:LTStomcat9no fix listedUBUNTU-CVE-2024-56337
Red Hatenterprise_linux:8::appstreamtomcat, tomcat-lib, tomcat-webapps and 5 more1:9.0.87-1.el8_10.4RHSA-2025:11333
Red Hatenterprise_linux:9::appstreamtomcat, tomcat-lib, tomcat-webapps and 5 more1:9.0.87-3.el9_6.1RHSA-2025:11335
Red Hatenterprise_linux:10.0tomcat, tomcat-lib, tomcat-webapps and 5 more1:10.1.36-1.el10_0RHSA-2025:7497
Red Hatenterprise_linux:10.0tomcat9, tomcat9-lib, tomcat9-webapps and 5 more1:9.0.87-5.el10_0.1RHSA-2025:11332
Red Hatjboss_enterprise_web_server:5.8::el7jws5-tomcat, jws5-tomcat-lib, jws5-tomcat-javadoc and 9 more0:9.0.87-11.redhat_00010.1.el7jwsRHSA-2025:4521
Red Hatjboss_enterprise_web_server:5.8::el8jws5-tomcat, jws5-tomcat-lib, jws5-tomcat-javadoc and 7 more0:9.0.87-11.redhat_00010.1.el8jwsRHSA-2025:4521
Red Hatjboss_enterprise_web_server:5.8::el9jws5-tomcat, jws5-tomcat-lib, jws5-tomcat-javadoc and 7 more0:9.0.87-11.redhat_00010.1.el9jwsRHSA-2025:4521
Red Hatrhel_e4s:8.8::appstream, rhel_tus:8.8::appstreamtomcat, tomcat-lib, tomcat-webapps and 5 more1:9.0.87-1.el8_8.5RHSA-2025:11382
Red Hatrhel_e4s:9.2::appstreamtomcat, tomcat-lib, tomcat-webapps and 5 more1:9.0.87-1.el9_2.4RHSA-2025:11381
Red Hatrhel_eus:9.4::appstreamtomcat, tomcat-lib, tomcat-webapps and 5 more1:9.0.87-1.el9_4.4RHSA-2025:11334
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 moretomcat9.0.102-150200.78.1SUSE-SU-2025:1126-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 moretomcat9.0.98-150200.74.1SUSE-SU-2025:0058-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Module for Web and Scripting 15 SP6 and 2 moretomcat1010.1.34-150200.5.31.1SUSE-SU-2025:0033-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Module for Web and Scripting 15 SP6 and 2 moretomcat1010.1.39-150200.5.36.1SUSE-SU-2025:1024-1
openSUSELeap 15.6tomcat9.0.102-150200.78.1SUSE-SU-2025:1126-1
openSUSELeap 15.6tomcat9.0.98-150200.74.1SUSE-SU-2025:0058-1
openSUSELeap 15.6tomcat1010.1.34-150200.5.31.1SUSE-SU-2025:0033-1
openSUSELeap 15.6tomcat1010.1.39-150200.5.36.1SUSE-SU-2025:1024-1
openSUSETumbleweedtomcat9.0.99-1.1openSUSE-SU-2025:14896-1
openSUSETumbleweedtomcat1010.1.35-1.1openSUSE-SU-2025:14897-1
AlmaLinux8tomcat, tomcat-lib, tomcat-webapps and 5 more1:9.0.87-1.el8_10.4ALSA-2025:11333
AlmaLinux9tomcat, tomcat-lib, tomcat-webapps and 5 more1:9.0.87-3.el9_6.1ALSA-2025:11335
AlmaLinux10tomcat9, tomcat9-lib, tomcat9-webapps and 5 more1:9.0.87-5.el10_0.1ALSA-2025:11332
Rocky Linux8tomcat1:9.0.87-1.el8_10.4RLSA-2025:11333
Rocky Linux9tomcat1:9.0.87-3.el9_6.1RLSA-2025:11335
Rocky Linux10tomcat91:9.0.87-5.el10_0.1RLSA-2025:11332

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The vulnerability is marked as moderate rather than important due to the specific conditions required for exploitation. For the attack to succeed, the server must be running on a case-insensitive file system (e.g., Windows or macOS) and have the default servlet enabled with write permissions —a configuration that is not common in production-grade environments. Additionally, the attacker must gain the ability to upload files to a writable directory and exploit a race condition to execute them as JSP files, which introduces a level of complexity and timing dependency.

The pki-servlet-engine package has been obsoleted by the tomcat package as of Red Hat Enterprise Linux 8.9 so no fixes for the servlet engine would be made available.

Although Red Hat Satellite Server— via its Candlepin component— employs the use of Tomcat, Satellite is itself not considered Affected. Satellite does not provide the Tomcat package— it is inherited from the underlying RHEL Operating System. Users of Red Hat Satellite are advised to refer to the impact state of the Tomcat package provided by the version of RHEL underpinning the Satellite Server instance, as any errata will be provided via RHEL Application Stream repositories.

It should be noted that a successful attack requires the server be running on a case-insensitive file system. As Satellite only runs on RHEL— and RHEL employs case-sensitive filesystems by default— a typical Satellite server instance is not vulnerable. Additionally, a successful attack also requires the server have the default servlet enabled with write permissions– a condition which does not exist in a default Satellite deployment. Again, a typical Satellite server instance is not vulnerable.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10tomcat9-1:9.0.87-5.el10_0.1Fixed 2025-07-16RHSA-2025:11332
Red Hat Enterprise Linux 10tomcat-1:10.1.36-1.el10_0Fixed 2025-05-13RHSA-2025:7497
Red Hat Enterprise Linux 8tomcat-1:9.0.87-1.el8_10.4Fixed 2025-07-16RHSA-2025:11333
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicetomcat-1:9.0.87-1.el8_8.5Fixed 2025-07-17RHSA-2025:11382
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionstomcat-1:9.0.87-1.el8_8.5Fixed 2025-07-17RHSA-2025:11382
Red Hat Enterprise Linux 9tomcat-1:9.0.87-3.el9_6.1Fixed 2025-07-16RHSA-2025:11335
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionstomcat-1:9.0.87-1.el9_2.4Fixed 2025-07-17RHSA-2025:11381
Red Hat Enterprise Linux 9.4 Extended Update Supporttomcat-1:9.0.87-1.el9_4.4Fixed 2025-07-16RHSA-2025:11334
Red Hat JBoss Web Server 5tomcatFixed 2025-05-08RHSA-2025:4522
Red Hat JBoss Web Server 5.8 on RHEL 7jws5-tomcat-0:9.0.87-11.redhat_00010.1.el7jwsFixed 2025-05-08RHSA-2025:4521
Red Hat JBoss Web Server 5.8 on RHEL 8jws5-tomcat-0:9.0.87-11.redhat_00010.1.el8jwsFixed 2025-05-08RHSA-2025:4521
Red Hat JBoss Web Server 5.8 on RHEL 9jws5-tomcat-0:9.0.87-11.redhat_00010.1.el9jwsFixed 2025-05-08RHSA-2025:4521
Red Hat Enterprise Linux 6tomcat6Not affected
Red Hat Enterprise Linux 7tomcatNot affected
Red Hat Enterprise Linux 8pki-deps:10.6/pki-servlet-engineWill not fix
Red Hat Enterprise Linux 9pki-servlet-engineWill not fix
Red Hat JBoss Web Server 6tomcatFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-56337.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

History

  1. EPSS rose to 19% (10% or more)

Changes since this site first stored the record. The same for every record: /api/public/changes.

References

Check your stackJSON