Exploit database

Vulnerability

CVE-2024-50379

Apache Tomcat: RCE due to TOCTOU issue in JSP compilation

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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.

CVE Program

Exploit source choices

10 sources
sleepingbag945/cve-2024-50379
GH-2273885b56fab40802d4b38f9498e80aGitHubUnofficial GitHub sourcePreferred

tomcat CVE-2024-50379/CVE-2024-56337 条件竞争文件上传exp

2024-12-23168 files · 83 stars
ph0ebus/tomcat-cve-2024-50379-poc
GH-c9483caa271564602649050c6a0e9885GitHubUnofficial GitHub source

RCE through a race condition in Apache Tomcat

2024-12-217 files · 56 stars
isee857/cve-2024-50379-poc
GH-e7ec57680553510a26050e295bdb08b3GitHubUnofficial GitHub source

Apache Tomcat(CVE-2024-50379)条件竞争致远程代码执行漏洞批量检测脚本

2024-12-202 files · 23 stars
dragonked2/cve-2024-50379-poc
GH-516c9914f34bffbc6c2454152aa9cc73GitHubUnofficial GitHub source

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. This exploit is particularly useful when the /uploads directory is either unprotected or not present on the target server.

2024-12-253 files · 4 stars
pwnosec/cve-2024-50379
GH-c810f58c9d8e875a9b76a3a0f8ebff44GitHubUnofficial GitHub source

ExploitDB CVE-2024-50379 a vulnerability that enables attackers to upload a JSP shell to a vulnerable server and execute commands remotely. The exploit is especially effective when the /uploads directory is either unprotected or missing on the target server.

2025-01-234 files · 2 stars
12442rf/poc
GH-3a840c3a743e0417793b49231edf2d51GitHubUnofficial GitHub source

12442rf/poc source repository

2025-05-0612 files · 1 stars
alchemist3dot14/cve-2024-50379
GH-afeb72cac50a9ce6328544d2433495beGitHubUnofficial GitHub source

CVE-2024-50379 is a critical vulnerability affecting multiple versions of Apache Tomcat, an open source web server and servlet container widely used for deploying Java-based web applications. The vulnerability arises from a Time-of-Use (TOCTOU) race condition that occurs when compiling JavaServer Pages (JSPs).

2024-12-203 files · 1 stars
artofthepossible/foundry-of-trust
GH-05779f5d705b9b418b69127151431027GitHubUnofficial GitHub source

artofthepossible/foundry-of-trust source repository

2025-10-08100 files · 1 stars
dear-cell/cve-2024-50379
GH-7324f6f64002837ff7a14955be751a5aGitHubUnofficial GitHub source

CVE-2024-50379利用

2024-12-233 files · 1 stars
lux-j/cve-2024-50379-exp
GH-6432cad52c46a4e6656e32d90988cdcfGitHubUnofficial GitHub source

CVE-2024-50379-exp

2024-12-282 files · 1 stars