CVE-2024-50379: CVE-2024-50379: Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability during JSP compilation in …
apache · tomcat · NVD published 2024-12-17 · posted 2024-12-18 · last modified 2026-06-17
What it is
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.
| Weakness | CWE-367 |
|---|---|
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (source: 134c704f-9b21-4f2e-91b3-4a467353bcc0) |
| ATT&CK tactics | n/a |
Exploitation evidence
First exploit evidence seen: 2024-12-18 (earliest date across the sources below).
Exploited in the wild
No source on this site lists in-the-wild exploitation yet (CISA KEV, VulnCheck KEV).
Public exploit code
GitHub proof-of-concept repositories
14 public repositories from 14 accounts, first seen 2024-12-18. Most starred: SleepingBag945/CVE-2024-50379 (84 stars), view repository.
Verify before running: public PoCs can be malicious. Read the code and only run it in an isolated lab. A PoC means exploit code is public, not that this CVE is exploited in the wild.
Sources: nomi-sec/PoC-in-GitHub.
How to fix it
Fixed versions
- apache tomcat: upgrade to 9.0.98 or later (affected from 9.0.0)
- apache tomcat: upgrade to 10.1.34 or later (affected from 10.1.0)
- apache tomcat: upgrade to 11.0.2 or later (affected from 11.0.0)
Derived from the NVD CPE configuration (versionEndExcluding / versionEndIncluding). Always confirm with the vendor advisory.
Vendor advisories and patches
- https://lists.apache.org/thread/y6lj6q1xnp822g6ro70tn19sgtjmr80r (Mailing List, Vendor Advisory)
Detection Generic guidance
Response checklist Generic guidance
- Inventory: find every instance of the affected product and version (include internet-facing and forgotten ones).
- Patch or mitigate per the vendor advisory; if you cannot patch, remove internet exposure or apply the vendor workaround.
- Assume compromise if the system was exposed before patching: hunt for the indicators in the advisory and review logs back to the disclosure date.
- Rotate credentials and secrets stored on or used by the affected system if compromise cannot be ruled out.
Sources
- NVD: CVE-2024-50379
- CVE.org record
- FIRST EPSS (2026-10-24)
- http://www.openwall.com/lists/oss-security/2024/12/17/4 (Mailing List)
- http://www.openwall.com/lists/oss-security/2024/12/18/2 (Mailing List)
- https://lists.debian.org/debian-lts-announce/2025/01/msg00009.html
- https://security.netapp.com/advisory/ntap-20250103-0003/ (Third Party Advisory)