cve.bz

CVE-2024-50379

9.8 criticalEPSS 43%Fix available

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

On this page
Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability during JSP compilation in Apache Tomcat permits an RCE on case insensitive file systems when the default servlet is enabled for write (non-default configuration). 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. Users are recommended to upgrade to version 11.0.2, 10.1.34 or 9.0.98, which fixes the issue.

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
43% (unchanged from 43% a week ago; 32% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2025-03-20. 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-50379 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-50379?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-50379?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-50379 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-5j33-cvvr-w245Mavenorg.apache.tomcat:tomcat-catalina>=11.0.0-M1 <11.0.211.0.2
GHSA-5j33-cvvr-w245Mavenorg.apache.tomcat:tomcat-catalina>=10.1.0-M1 <10.1.3410.1.34
GHSA-5j33-cvvr-w245Mavenorg.apache.tomcat:tomcat-catalina>=9.0.0.M1 <9.0.989.0.98
GHSA-5j33-cvvr-w245Mavenorg.apache.tomcat.embed:tomcat-embed-core>=11.0.0-M1 <11.0.211.0.2
GHSA-5j33-cvvr-w245Mavenorg.apache.tomcat.embed:tomcat-embed-core>=10.1.0-M1 <10.1.3410.1.34
GHSA-5j33-cvvr-w245Mavenorg.apache.tomcat.embed:tomcat-embed-core>=9.0.0.M1 <9.0.989.0.98
GHSA-5j33-cvvr-w245Mavenorg.apache.tomcat:tomcat-catalina>=8.5.0 <=8.5.100no fix published
GHSA-5j33-cvvr-w245Mavenorg.apache.tomcat.embed:tomcat-embed-core>=8.5.0 <=8.5.100no fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11tomcat99.0.43-2~deb11u11DLA-4017-1
Debian12tomcat1010.1.34-0+deb12u1DEBIAN-CVE-2024-50379 DSA-5845-1
Debian12, 13, 14tomcat99.0.70-2DEBIAN-CVE-2024-50379
Debian13, 14tomcat1010.1.34-1DEBIAN-CVE-2024-50379
Ubuntu24.04:LTStomcat1010.1.61~us1-0ubuntu1~24.04.2UBUNTU-CVE-2024-50379
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 3 moretomcat9no fix listedUBUNTU-CVE-2024-50379
UbuntuPro:24.04:LTStomcat1010.1.16-1ubuntu0.1~esm3UBUNTU-CVE-2024-50379 USN-7705-1
Red Hatenterprise_linux:8::appstreamtomcat, tomcat-lib, tomcat-webapps and 5 more1:9.0.87-1.el8_10.3RHSA-2025:3683
Red Hatenterprise_linux:9::appstreamtomcat, tomcat-lib, tomcat-webapps and 5 more1:9.0.87-2.el9_5.1RHSA-2025:3645
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-6.redhat_00006.1.el7jwsRHSA-2025:0361
Red Hatjboss_enterprise_web_server:5.8::el8jws5-tomcat, jws5-tomcat-lib, jws5-tomcat-javadoc and 7 more0:9.0.87-6.redhat_00006.1.el8jwsRHSA-2025:0361
Red Hatjboss_enterprise_web_server:5.8::el9jws5-tomcat, jws5-tomcat-lib, jws5-tomcat-javadoc and 7 more0:9.0.87-6.redhat_00006.1.el9jwsRHSA-2025:0361
Red Hatjboss_enterprise_web_server:6.0::el8jws6-tomcat, jws6-tomcat-lib, jws6-tomcat-javadoc and 7 more0:10.1.8-15.redhat_00022.1.el8jwsRHSA-2025:0342
Red Hatjboss_enterprise_web_server:6.0::el9jws6-tomcat, jws6-tomcat-lib, jws6-tomcat-javadoc and 7 more0:10.1.8-15.redhat_00022.1.el9jwsRHSA-2025:0342
Red Hatrhel_eus:8.8::appstreamtomcat, tomcat-lib, tomcat-webapps and 5 more1:9.0.87-1.el8_8.4RHSA-2025:3684
Red Hatrhel_eus:9.2::appstreampki-servlet-engine, pki-servlet-4.0-api1:9.0.50-1.el9_2.2RHSA-2025:1920
Red Hatrhel_eus:9.2::appstreamtomcat, tomcat-lib, tomcat-webapps and 5 more1:9.0.87-1.el9_2.3RHSA-2025:3646
Red Hatrhel_eus:9.4::appstreamtomcat, tomcat-lib, tomcat-webapps and 5 more1:9.0.87-1.el9_4.3RHSA-2025:3647
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 Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5tomcat9.0.115-3.160.1SUSE-SU-2026:1058-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5tomcat9.0.36-3.136.1SUSE-SU-2025:0394-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
openSUSETumbleweedtomcat9.0.98-1.1openSUSE-SU-2025:14622-1
openSUSETumbleweedtomcat1010.1.34-1.1openSUSE-SU-2025:14623-1
AlmaLinux8tomcat, tomcat-lib, tomcat-webapps and 5 more1:9.0.87-1.el8_10.3ALSA-2025:3683
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-2.el9_5.1ALSA-2025:3645
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.3RLSA-2025:3683
Rocky Linux9tomcat1:9.0.87-2.el9_5.1RLSA-2025:3645

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

This flaw can only be exploited when the `readonly` initialization parameter value is set to `false`, when running on case insensitive file systems and when the application is under load, specifically when read and upload operations are performed on the same file simultaneously.

The default `readonly` initialization parameter value is `true` and not vulnerable to this issue.

Due to the conditions for this issue to be exploited, especially because it requires unlikely configurations, this flaw has been rated with a Moderate severity.

The Tomcat package as shipped in Red Hat Enterprise Linux 6 and 7 is not affected by this vulnerability because the vulnerable code was introduced in a newer Tomcat version.

Red Hat Satellite is not directed impacted by this issue as it does not include the affected Tomcat package. However, Tomcat is consumed by Candlepin, a component of Satellite. Red Hat Satellite users are advised to check the impact state of Red Hat Enterprise Linux as any necessary fixes will be distributed through the platform.

Red Hat's mitigation

Consider setting the readonly initialization parameter value to true (the default value), if that is not possible, do not use a case-insensitive file system.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10tomcat9-1:9.0.87-5.el10_0.1Fixed 2025-07-16RHSA-2025:11332
Red Hat Enterprise Linux 8tomcat-1:9.0.87-1.el8_10.3Fixed 2025-04-08RHSA-2025:3683
Red Hat Enterprise Linux 8.8 Extended Update Supporttomcat-1:9.0.87-1.el8_8.4Fixed 2025-04-08RHSA-2025:3684
Red Hat Enterprise Linux 9tomcat-1:9.0.87-2.el9_5.1Fixed 2025-04-07RHSA-2025:3645
Red Hat Enterprise Linux 9.2 Extended Update Supportpki-servlet-engine-1:9.0.50-1.el9_2.2Fixed 2025-02-27RHSA-2025:1920
Red Hat Enterprise Linux 9.2 Extended Update Supporttomcat-1:9.0.87-1.el9_2.3Fixed 2025-04-07RHSA-2025:3646
Red Hat Enterprise Linux 9.4 Extended Update Supporttomcat-1:9.0.87-1.el9_4.3Fixed 2025-04-07RHSA-2025:3647
Red Hat JBoss Web Server 5tomcatFixed 2025-01-16RHSA-2025:0362
Red Hat JBoss Web Server 5.8 on RHEL 7jws5-tomcat-0:9.0.87-6.redhat_00006.1.el7jwsFixed 2025-01-16RHSA-2025:0361
Red Hat JBoss Web Server 5.8 on RHEL 8jws5-tomcat-0:9.0.87-6.redhat_00006.1.el8jwsFixed 2025-01-16RHSA-2025:0361
Red Hat JBoss Web Server 5.8 on RHEL 9jws5-tomcat-0:9.0.87-6.redhat_00006.1.el9jwsFixed 2025-01-16RHSA-2025:0361
Red Hat JBoss Web Server 6tomcatFixed 2025-01-21RHSA-2025:0343
Red Hat JBoss Web Server 6.0 on RHEL 8jws6-tomcat-0:10.1.8-15.redhat_00022.1.el8jwsFixed 2025-01-21RHSA-2025:0342
Red Hat JBoss Web Server 6.0 on RHEL 9jws6-tomcat-0:10.1.8-15.redhat_00022.1.el9jwsFixed 2025-01-21RHSA-2025:0342
Red Hat Enterprise Linux 10tomcatNot affected
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-engineAffected

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-50379.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • Ghost-Bx1/TomcatRace-CVE-2024-50379 Harbor Check: matches CVE 0 stars, Python, created
    PoC and exploit for CVE-2024-50379 - Apache Tomcat Race Condition RCE (CVSS 9.8)
  • azilRababe/CVE-2024-50379 0 stars, created
    Technical analysis of Apache Tomcat CVE-2024-50379, covering root cause, exploitation conditions, detection strategies, and mitigation tech…

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.

  • Emerging Threats Open ET WEB_SPECIFIC_APPS Apache Tomcat Time-of-check Time-of-use (TOCTOU) Race Condition during JSP Compilation (CVE-2024-50379) sid 2059684

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.

References

Check your stackJSON