HexBrain

Internet Bug Bounty · Report #2905013

[SECURITY] CVE-2024-50379 Apache Tomcat - RCE via write-enabled default servlet

Validstatus
highseverity
24upvotes
27 May 2025disclosed

Summary

If the default servlet is write enabled (readonly initialisation parameter set to the non-default value of false) for a case insensitive file system, concurrent read and upload under load of the same file can bypass Tomcat's case sensitivity checks and cause an uploaded file to be treated as a JSP leading to remote code execution.

https://lists.apache.org/thread/y6lj6q1xnp822g6ro70tn19sgtjmr80r

How it was found

Code injection triggered by a race condition on a Windows machine.

Impact

Code injection

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original