CVE-2025-24813:
Apache Tomcat: Potential RCE and/or information disclosure and/or information corruption with partial PUT
9.8
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
3/10/2025
Updated
3/19/2025
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.tomcat:tomcat-catalina | maven | >= 11.0.0-M1, < 11.0.3 | 11.0.3 |
org.apache.tomcat:tomcat-catalina | maven | >= 10.1.0-M1, < 10.1.35 | 10.1.35 |
org.apache.tomcat:tomcat-catalina | maven | >= 9.0.0.M1, < 9.0.99 | 9.0.99 |
org.apache.tomcat.embed:tomcat-embed-core | maven | >= 11.0.0-M1, < 11.0.3 | 11.0.3 |
org.apache.tomcat.embed:tomcat-embed-core | maven | >= 10.1.0-M1, < 10.1.35 | 10.1.35 |
org.apache.tomcat.embed:tomcat-embed-core | maven | >= 9.0.0.M1, < 9.0.99 | 9.0.99 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key functions in DefaultServlet.java: 1) doPut() managed partial uploads but delayed temp file cleanup (via deleteOnExit()), and 2) executePartialPut() used path-based filenames with slash-to-dot conversion. Together, these allowed path traversal via 'internal dot' equivalence and file retention long enough for attackers to exploit session persistence or deserialization. The patch replaced manual filename construction with secure temp files and immediate deletion, confirming these functions' roles.
Vulnerable functions
org.apache.catalina.servlets.DefaultServlet.doPut
java/org/apache/catalina/servlets/DefaultServlet.java
Handles partial PUT requests with insecure temporary file creation using path-based names (CWE-44). The original implementation converted '/' to '.' in paths, enabling path equivalence attacks. Temporary files were only marked for deletion on JVM exit, leaving a window for exploitation.
org.apache.catalina.servlets.DefaultServlet.executePartialPut
java/org/apache/catalina/servlets/DefaultServlet.java
Created temporary files using user-controlled path data with unsafe name conversion (path.replace('/', '.')). This allowed attackers to write files to unexpected locations via internal dot manipulation, enabling session file corruption or RCE through deserialization (CWE-502).