Critical Apache Tomcat RCE Patched in Default Servlet File Upload Handling
Vulnerability Disclosure · 2 sources · Updated 4mo ago · First seen Jan 24, 2026

Apache Tomcat maintainers disclosed and patched CVE-2024-50379, a critical remote code execution flaw tied to the default servlet when write access is enabled. The bug is a TOCTOU race condition during JSP compilation that can let an unauthenticated attacker upload specially crafted files and execute code on vulnerable servers under specific conditions. The issue affects Tomcat 11.0.x before 11.0.2, 10.1.x before 10.1.34, and 9.0.x before 9.0.98.
Advisories also addressed CVE-2024-54677, a separate denial-of-service issue in Tomcat sample web applications caused by unrestricted total upload size. Defenders were urged to upgrade immediately to 11.0.2, 10.1.34, or 9.0.98, and to review deployments that expose write-enabled default servlet functionality or retain sample applications in production.


