CVE-2024-50379

CRITICAL LAB

Apache Tomcat 9.0.0-9.0.97, 10.1.0-M1-10.1.33, 11.0.0-M1-11.0.1 - RCE via TOCTOU Race Condition in JSP Compilation

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 18 public exploits for CVE-2024-50379. PoCs published by SleepingBag945, ph0ebus, iSee857.

AI-analyzed exploit summary This repository contains a proof-of-concept exploit for CVE-2024-50379, which appears to be a vulnerability allowing arbitrary file uploads to a target server. The exploit uploads a JSP shell file to the server, enabling remote code execution.

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.

Exploits (18)

nomisec WORKING POC 85 stars
by SleepingBag945 · poc
https://github.com/SleepingBag945/CVE-2024-50379

This repository contains a proof-of-concept exploit for CVE-2024-50379, which appears to be a vulnerability allowing arbitrary file uploads to a target server. The exploit uploads a JSP shell file to the server, enabling remote code execution.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Unknown (likely a web server or application using fasthttp)
No auth needed
Prerequisites: Target server running vulnerable software · Network access to the target server
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 56 stars
by ph0ebus · poc
https://github.com/ph0ebus/Tomcat-CVE-2024-50379-Poc

This Go-based PoC exploits a race condition in Apache Tomcat (CVE-2024-50379) to achieve RCE by concurrently sending PUT and GET requests to create a malicious JSP file. The payload executes a command to write a demo file to the web root.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Racy
Target: Apache Tomcat (version not specified)
No auth needed
Prerequisites: Network access to vulnerable Tomcat instance · Tomcat with writeable web root directory
devstral-2 · analyzed Feb 16, 2026 Full analysis →
github WORKING POC 40 stars
by iSee857 · pythonpoc
https://github.com/iSee857/CVE-PoC/tree/main/ApacheTomcat(CVE-2024-50379).py

The repository contains functional exploit code for CVE-2024-50379, targeting Apache Tomcat with a command execution vulnerability. The PoC demonstrates session creation and command execution via crafted HTTP requests.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Apache Tomcat
No auth needed
Prerequisites: network access to target · Apache Tomcat instance
devstral-2 · analyzed Feb 27, 2026 Full analysis →
nomisec WORKING POC 19 stars
by iSee857 · poc
https://github.com/iSee857/CVE-2024-50379-PoC

This PoC exploits a race condition in Apache Tomcat (CVE-2024-50379) to achieve RCE by concurrently sending PUT requests with JSP payloads and GET requests to trigger execution. The script uses threading to maximize the chance of exploiting the race condition.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Racy
Target: Apache Tomcat (version not specified)
No auth needed
Prerequisites: Network access to the target Tomcat server · Tomcat server vulnerable to CVE-2024-50379
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 4 stars
by v3153 · poc
https://github.com/v3153/CVE-2024-50379-POC

This repository contains a Proof of Concept (POC) for CVE-2024-50379, a TOCTOU race condition vulnerability in Apache Tomcat that can lead to Remote Code Execution (RCE) on case-insensitive file systems like Windows.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Racy
Target: Apache Tomcat
No auth needed
Prerequisites: Apache Tomcat server with Default Servlet configured to allow write permissions · Case-insensitive file system (e.g., Windows)
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 4 stars
by dragonked2 · poc
https://github.com/dragonked2/CVE-2024-50379-POC

This repository contains a Python script designed to exploit CVE-2024-50379, a vulnerability that allows attackers to upload a JSP shell to a vulnerable server and execute arbitrary commands remotely. The exploit targets systems running Apache Tomcat or similar servers with misconfigured file upload functionality.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Apache Tomcat (specific version not specified)
No auth needed
Prerequisites: Python 3.6+ · requests library · Vulnerable server with misconfigured file upload functionality
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 2 stars
by pwnosec · poc
https://github.com/pwnosec/CVE-2024-50379

This repository contains a Python script that exploits CVE-2024-50379, a vulnerability allowing JSP shell uploads to execute arbitrary commands on vulnerable servers. The exploit automates the upload process and provides a terminal interface for command execution.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Apache Tomcat or similar servers with insecure file upload functionality
No auth needed
Prerequisites: Vulnerable server with exposed file upload functionality · Access to the /uploads directory or misconfiguration
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec SCANNER 2 stars
by JFOZ1010 · poc
https://github.com/JFOZ1010/Nuclei-Template-CVE-2024-50379

This is a Nuclei template designed to detect Apache Tomcat servers vulnerable to CVE-2024-50379, a TOCTOU race condition leading to RCE. The template requires manual adjustment of the upload endpoint and is intended for authorized testing.

Classification
Scanner 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Racy
Target: Apache Tomcat (versions not specified)
No auth needed
Prerequisites: Nuclei installed · Access to target system · Adjustment of upload endpoint in template
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 1 stars
by Lux-J · poc
https://github.com/Lux-J/CVE-2024-50379-exp

This repository contains a functional exploit for CVE-2024-50379, leveraging a race condition to write a malicious JSP file to a vulnerable server. The exploit uses concurrent PUT and GET requests to achieve remote code execution (RCE) via a custom JSP payload.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Racy
Target: Unknown (likely a Java-based web server or application)
No auth needed
Prerequisites: Network access to the target server · Vulnerable endpoint exposed
devstral-2 · analyzed Apr 19, 2026 Full analysis →
nomisec WORKING POC 1 stars
by gomtaengi · poc
https://github.com/gomtaengi/CVE-2024-50379-exp

This PoC exploits a race condition vulnerability (CVE-2024-50379) to achieve remote code execution by writing a malicious JSP file to the target server. It uses concurrent PUT and GET requests to trigger the vulnerability and includes a customizable JSP payload for execution.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Racy
Target: Unknown (likely a web server or application server vulnerable to JSP file upload via race condition)
No auth needed
Prerequisites: Target server must be vulnerable to the race condition · Network access to the target server
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 1 stars
by dear-cell · poc
https://github.com/dear-cell/CVE-2024-50379

This PoC exploits CVE-2024-50379, a race condition vulnerability in Apache Tomcat, to achieve remote code execution (RCE) by writing arbitrary JSP files. It uses concurrent requests to bypass restrictions and create malicious JSP files (e.g., 2.jsp) that can execute arbitrary code.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Racy
Target: Apache Tomcat (version not specified)
No auth needed
Prerequisites: Network access to the target Tomcat server · Ability to send HTTP requests to the server
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WRITEUP 1 stars
by yiliufeng168 · poc
https://github.com/yiliufeng168/CVE-2024-50379-POC

This repository provides a detailed writeup and conceptual proof-of-concept for CVE-2024-50379, a TOCTOU race condition vulnerability in Apache Tomcat that can lead to RCE on case-insensitive file systems. It describes the exploitation steps but does not include actual exploit code.

Classification
Writeup 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Theoretical
Target: Apache Tomcat (version not specified)
No auth needed
Prerequisites: Windows or case-insensitive file system · Misconfigured Default Servlet with write permissions
devstral-2 · analyzed Feb 16, 2026 Full analysis →
github WORKING POC
by manus-use · postscriptpoc
https://github.com/manus-use/cve-pocs/tree/main/Tomcat-CVE-2024-50379

This repository contains functional exploit code for CVE-2024-50379, targeting Apache Tomcat. The PoC includes a Dockerized vulnerable environment and an exploit script that demonstrates remote code execution via file upload.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Apache Tomcat
No auth needed
Prerequisites: Docker · Apache Tomcat vulnerable to CVE-2024-50379
devstral-2 · analyzed Feb 27, 2026 Full analysis →
nomisec WORKING POC
by Yuri08loveElaina · poc
https://github.com/Yuri08loveElaina/CVE-2024-50379

This exploit targets CVE-2024-50379, a race condition vulnerability in Apache Tomcat, allowing arbitrary file upload and remote code execution (RCE) via JSP file manipulation. The PoC uses concurrent requests to exploit the condition and achieve RCE.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Racy
Target: Apache Tomcat (version not specified)
No auth needed
Prerequisites: Network access to the target · Apache Tomcat with vulnerable configuration
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by Yuri08loveElaina · poc
https://github.com/Yuri08loveElaina/CVE-2024-50379-POC

This PoC exploits CVE-2024-50379 by uploading a malicious JSP payload to a vulnerable endpoint via HTTP PUT, then triggering it to execute arbitrary commands (e.g., 'whoami'). The script supports single or bulk target scanning with threading.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: Unknown (JSP-based application with vulnerable PUT endpoint)
No auth needed
Prerequisites: Network access to target · Vulnerable JSP endpoint allowing PUT requests
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by thunww · poc
https://github.com/thunww/CVE-2024-50379

This PoC exploits a TOCTOU (Time-of-Check Time-of-Use) race condition in Apache Tomcat to achieve RCE by uploading a malicious JSP file containing a reverse shell payload. The exploit uses concurrent requests to bypass file extension checks.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Racy
Target: Apache Tomcat
No auth needed
Prerequisites: Network access to the target Tomcat server · Attacker-controlled IP and port for reverse shell
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by dkstar11q · poc
https://github.com/dkstar11q/CVE-2024-50379-nuclei

This PoC exploits CVE-2024-50379 in Apache Tomcat by leveraging PUT method to upload a JSP webshell, enabling remote command execution. It includes a multi-threaded approach to bypass potential mitigations and validate successful exploitation.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Apache Tomcat (version not specified)
No auth needed
Prerequisites: Target must allow PUT requests · Target must be vulnerable to arbitrary file upload
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by Alchemist3dot14 · poc
https://github.com/Alchemist3dot14/CVE-2024-50379

This PoC exploits CVE-2024-50379, a TOCTOU race condition in Apache Tomcat, by uploading a malicious JSP shell to a writable directory and executing arbitrary commands. The script demonstrates RCE via a crafted JSP file.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Racy
Target: Apache Tomcat (e.g., 10.1.33)
No auth needed
Prerequisites: Vulnerable Apache Tomcat version · Writable directory (e.g., /uploads) · Upload handler JSP file (upload.jsp)
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Scores

CVSS v3 9.8
EPSS 0.8459
EPSS Percentile 99.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

Details

CWE
CWE-367
Status published
Products (4)
apache/tomcat 9.0.0 - 9.0.98
netapp/bootstrap_os
org.apache.tomcat/tomcat-catalina 11.0.0-M1 - 11.0.2Maven
org.apache.tomcat.embed/tomcat-embed-core 11.0.0-M1 - 11.0.2Maven
Published Dec 17, 2024
Tracked Since Feb 18, 2026