Skip to content
Fencer Vulns
critical 9.8

CVE-2024-50379 in the critical feed json

Apache Tomcat: RCE due to TOCTOU issue in JSP compilation

published 2024-12-17 22 mo ago modified 2026-11-04 5 d ago also BIT-tomcat-2024-50379 , EUVD-2024-3537 , GHSA-5j33-cvvr-w245

cvss
9.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
31.8%
EPSS 31.8% chance of exploitation in 30 days, percentile 98%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven org.apache.tomcat:tomcat-catalina 9.0.98, 10.1.34, 11.0.2
  • maven org.apache.tomcat.embed:tomcat-embed-core 9.0.98, 10.1.34, 11.0.2
  • bitnami tomcat 9.0.98, 10.1.34, 11.0.2
  • apache tomcat-catalina 9.0.98, 10.1.34, 11.0.2
  • apache tomcat 9.0.98, 10.1.34, 11.0.2
  • org.apache.tomcat tomcat-catalina 9.0.98, 10.1.34, 11.0.2
  • apache tomcat-embed-core 9.0.98, 10.1.34, 11.0.2
  • org.apache.tomcat.embed tomcat-embed-core 9.0.98, 10.1.34, 11.0.2
  • tomcat9 Debian 14, Debian 13, Debian 12 9.0.70-2
  • tomcat10 Debian 12 10.1.34-0+deb12u1
  • tomcat10 Debian 14, Debian 13 10.1.34-1

debian advisories DEBIAN-CVE-2024-50379

  • tomcat10 Ubuntu Pro 24.04 LTS 10.1.16-1ubuntu0.1~esm3

ubuntu advisories UBUNTU-CVE-2024-50379

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • tomcat9 RHEL 10.0 1:9.0.87-5.el10_0.1
  • tomcat9-lib RHEL 10.0 1:9.0.87-5.el10_0.1
  • tomcat9-webapps RHEL 10.0 1:9.0.87-5.el10_0.1
  • tomcat9-el-3.0-api RHEL 10.0 1:9.0.87-5.el10_0.1
  • tomcat9-docs-webapp RHEL 10.0 1:9.0.87-5.el10_0.1
  • tomcat9-jsp-2.3-api RHEL 10.0 1:9.0.87-5.el10_0.1
  • tomcat9-admin-webapps RHEL 10.0 1:9.0.87-5.el10_0.1
  • tomcat9-servlet-4.0-api RHEL 10.0 1:9.0.87-5.el10_0.1

red hat advisories RHSA-2025:11332RHSA-2025:3683RHSA-2025:3684RHSA-2025:3647RHSA-2025:3645RHSA-2025:3646

  • tomcat SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +12 more 9.0.98-150200.74.1
  • tomcat10 SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Module for Web and Scripting 15 SP6 +3 more 10.1.34-150200.5.31.1
  • tomcat SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 9.0.115-3.160.1
  • tomcat SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 9.0.36-3.136.1

suse advisories SUSE-SU-2026:1058-1SUSE-SU-2025:0394-1SUSE-SU-2025:0058-1SUSE-SU-2025:0033-1

  • tomcat openSUSE Tumbleweed 9.0.98-1.1
  • tomcat10 openSUSE Tumbleweed 10.1.34-1.1

opensuse advisories openSUSE-SU-2025:14622-1openSUSE-SU-2025:14623-1

  • tomcat9 AlmaLinux 10 1:9.0.87-5.el10_0.1
  • tomcat9-lib AlmaLinux 10 1:9.0.87-5.el10_0.1
  • tomcat9-webapps AlmaLinux 10 1:9.0.87-5.el10_0.1
  • tomcat9-el-3.0-api AlmaLinux 10 1:9.0.87-5.el10_0.1
  • tomcat9-docs-webapp AlmaLinux 10 1:9.0.87-5.el10_0.1
  • tomcat9-jsp-2.3-api AlmaLinux 10 1:9.0.87-5.el10_0.1
  • tomcat9-admin-webapps AlmaLinux 10 1:9.0.87-5.el10_0.1
  • tomcat9-servlet-4.0-api AlmaLinux 10 1:9.0.87-5.el10_0.1

almalinux advisories ALSA-2025:11332ALSA-2025:11333ALSA-2025:11335ALSA-2025:3683ALSA-2025:3645

  • tomcat Rocky Linux 9 1:9.0.87-2.el9_5.1
  • tomcat Rocky Linux 8 1:9.0.87-1.el8_10.3

rocky linux advisories RLSA-2025:3645RLSA-2025:3683

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-50379 updated cvss 8.1

tomcat: RCE due to TOCTOU issue in JSP compilation

  • Red Hat Enterprise Linux 8 pki-servlet-engine, pki-servlet-4.0-api
    affected: workaround, no fix planned “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.”
  • Red Hat Enterprise Linux 9 pki-servlet-engine, pki-servlet-4.0-api
    affected: workaround, no fix available “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.”
  • Red Hat Enterprise Linux AppStream (v. 8) tomcat 9.0.87-1.el8_10.3, tomcat-lib 9.0.87-1.el8_10.3, tomcat-webapps 9.0.87-1.el8_10.3, tomcat-el-3.0-api 9.0.87-1.el8_10.3, tomcat-docs-webapp 9.0.87-1.el8_10.3, tomcat-jsp-2.3-api 9.0.87-1.el8_10.3, +2 more
    fixed: vendor fix “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.” RHSA-2025:3683
  • Red Hat Enterprise Linux AppStream (v. 9) tomcat 9.0.87-2.el9_5.1, tomcat-lib 9.0.87-2.el9_5.1, tomcat-webapps 9.0.87-2.el9_5.1, tomcat-el-3.0-api 9.0.87-2.el9_5.1, tomcat-docs-webapp 9.0.87-2.el9_5.1, tomcat-jsp-2.3-api 9.0.87-2.el9_5.1, +2 more
    fixed: vendor fix “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.” RHSA-2025:3645
  • Red Hat Enterprise Linux AppStream (v. 10) tomcat9 9.0.87-5.el10_0.1, tomcat9-lib 9.0.87-5.el10_0.1, tomcat9-webapps 9.0.87-5.el10_0.1, tomcat9-el-3.0-api 9.0.87-5.el10_0.1, tomcat9-docs-webapp 9.0.87-5.el10_0.1, tomcat9-jsp-2.3-api 9.0.87-5.el10_0.1, +2 more
    fixed: vendor fix “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.” RHSA-2025:11332
  • Red Hat Enterprise Linux AppStream EUS (v.8.8) tomcat 9.0.87-1.el8_8.4, tomcat-lib 9.0.87-1.el8_8.4, tomcat-webapps 9.0.87-1.el8_8.4, tomcat-el-3.0-api 9.0.87-1.el8_8.4, tomcat-docs-webapp 9.0.87-1.el8_8.4, tomcat-jsp-2.3-api 9.0.87-1.el8_8.4, +2 more
    fixed: vendor fix “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.” RHSA-2025:3684
  • Red Hat Enterprise Linux AppStream EUS (v.9.2) tomcat 9.0.87-1.el9_2.3, tomcat-lib 9.0.87-1.el9_2.3, tomcat-webapps 9.0.87-1.el9_2.3, tomcat-el-3.0-api 9.0.87-1.el9_2.3, pki-servlet-engine 9.0.50-1.el9_2.2, tomcat-docs-webapp 9.0.87-1.el9_2.3, +4 more
    fixed: vendor fix “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.” RHSA-2025:1920
  • Red Hat Enterprise Linux AppStream EUS (v.9.4) tomcat 9.0.87-1.el9_4.3, tomcat-lib 9.0.87-1.el9_4.3, tomcat-webapps 9.0.87-1.el9_4.3, tomcat-el-3.0-api 9.0.87-1.el9_4.3, tomcat-docs-webapp 9.0.87-1.el9_4.3, tomcat-jsp-2.3-api 9.0.87-1.el9_4.3, +2 more
    fixed: vendor fix “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.” RHSA-2025:3647
show 5 more
  • Red Hat JBoss Web Server 5
    fixed: vendor fix “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.” RHSA-2025:0362
  • Red Hat JBoss Web Server 5.8 for RHEL 7 Server jws5-tomcat 9.0.87-6.redhat_00006.1.el7jws, jws5-tomcat-lib 9.0.87-6.redhat_00006.1.el7jws, jws5-tomcat-javadoc 9.0.87-6.redhat_00006.1.el7jws, jws5-tomcat-selinux 9.0.87-6.redhat_00006.1.el7jws, jws5-tomcat-webapps 9.0.87-6.redhat_00006.1.el7jws, jws5-tomcat-java-jdk8 9.0.87-6.redhat_00006.1.el7jws, +6 more Red Hat JBoss Web Server 5.8 for RHEL 8 jws5-tomcat 9.0.87-6.redhat_00006.1.el8jws, jws5-tomcat-lib 9.0.87-6.redhat_00006.1.el8jws, jws5-tomcat-javadoc 9.0.87-6.redhat_00006.1.el8jws, jws5-tomcat-selinux 9.0.87-6.redhat_00006.1.el8jws, jws5-tomcat-webapps 9.0.87-6.redhat_00006.1.el8jws, jws5-tomcat-el-3.0-api 9.0.87-6.redhat_00006.1.el8jws, +4 more Red Hat JBoss Web Server 5.8 for RHEL 9 jws5-tomcat 9.0.87-6.redhat_00006.1.el9jws, jws5-tomcat-lib 9.0.87-6.redhat_00006.1.el9jws, jws5-tomcat-javadoc 9.0.87-6.redhat_00006.1.el9jws, jws5-tomcat-selinux 9.0.87-6.redhat_00006.1.el9jws, jws5-tomcat-webapps 9.0.87-6.redhat_00006.1.el9jws, jws5-tomcat-el-3.0-api 9.0.87-6.redhat_00006.1.el9jws, +4 more
    fixed: vendor fix “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.” RHSA-2025:0361
  • Red Hat JBoss Web Server 6
    fixed: vendor fix “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.” RHSA-2025:0343
  • Red Hat JBoss Web Server 6.0 for RHEL 8 jws6-tomcat 10.1.8-15.redhat_00022.1.el8jws, jws6-tomcat-lib 10.1.8-15.redhat_00022.1.el8jws, jws6-tomcat-javadoc 10.1.8-15.redhat_00022.1.el8jws, jws6-tomcat-selinux 10.1.8-15.redhat_00022.1.el8jws, jws6-tomcat-webapps 10.1.8-15.redhat_00022.1.el8jws, jws6-tomcat-el-5.0-api 10.1.8-15.redhat_00022.1.el8jws, +4 more Red Hat JBoss Web Server 6.0 for RHEL 9 jws6-tomcat 10.1.8-15.redhat_00022.1.el9jws, jws6-tomcat-lib 10.1.8-15.redhat_00022.1.el9jws, jws6-tomcat-javadoc 10.1.8-15.redhat_00022.1.el9jws, jws6-tomcat-selinux 10.1.8-15.redhat_00022.1.el9jws, jws6-tomcat-webapps 10.1.8-15.redhat_00022.1.el9jws, jws6-tomcat-el-5.0-api 10.1.8-15.redhat_00022.1.el9jws, +4 more
    fixed: vendor fix “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.” RHSA-2025:0342
  • Red Hat Enterprise Linux 6 tomcat6, tomcat6-lib, tomcat6-log4j, tomcat6-javadoc, tomcat6-webapps, tomcat6-el-2.1-api, +4 more Red Hat Enterprise Linux 7 tomcat, tomcat-lib, tomcat-jsvc, tomcat-javadoc, tomcat-webapps, tomcat-el-2.2-api, +4 more Red Hat Enterprise Linux 10 tomcat
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
total
Assessed
19 mo ago

Exploit prediction

31.82% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
maven org.apache.tomcat:tomcat-catalina
>=11.0.0-M1, <11.0.2
>=10.1.0-M1, <10.1.34
>=9.0.0.M1, <9.0.98
>=8.5.0, <=8.5.100
11.0.2
10.1.34
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
>=8.5.0, <=8.5.100
11.0.2
10.1.34
9.0.98
bitnami tomcat
>=9.0.0, <9.0.98
>=10.0.0, <10.1.34
>=11.0.0, <11.0.2
9.0.98
10.1.34
11.0.2

Affected products

  • Apache Software Foundation Apache Tomcat

Classification

Weakness
  • CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.