CVE-2025-61795: Apache Tomcat Vulnerable to Improper Resource Shutdown or Release
N/A
Basic Information
Technical Details
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.apache.tomcat:tomcat | maven | >= 11.0.0-M1, < 11.0.12 | 11.0.12 |
| org.apache.tomcat:tomcat | maven | >= 10.1.0-M1, < 10.1.47 | 10.1.47 |
| org.apache.tomcat:tomcat | maven | >= 9.0.0.40, < 9.0.110 | 9.0.110 |
| org.apache.tomcat:tomcat | maven | >= 8.5.60, <= 8.5.100 | |
| org.apache.tomcat:tomcat-catalina | maven | >= 11.0.0-M1, < 11.0.12 | 11.0.12 |
| org.apache.tomcat:tomcat-catalina | maven | >= 10.1.0-M1, < 10.1.47 | 10.1.47 |
| org.apache.tomcat:tomcat-catalina | maven | >= 9.0.0.40, < 9.0.110 | 9.0.110 |
| org.apache.tomcat:tomcat-catalina | maven | >= 8.5.60, <= 8.5.100 | |
| org.apache.tomcat.embed:tomcat-embed-core | maven | >= 11.0.0-M1, < 11.0.12 | 11.0.12 |
| org.apache.tomcat.embed:tomcat-embed-core | maven | >= 10.1.0-M1, < 10.1.47 | 10.1.47 |
| org.apache.tomcat.embed:tomcat-embed-core | maven | >= 9.0.0.40, < 9.0.110 | 9.0.110 |
| org.apache.tomcat.embed:tomcat-embed-core | maven | >= 8.5.60, <= 8.5.100 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability described is a failure to properly clean up resources (temporary files) after a failed multipart upload in Apache Tomcat. The provided commit patches directly address this issue. By analyzing the changes in the Request.java file across the supplied commits, it's clear that the parseParts method is the central point of the vulnerability. The original code lacked a mechanism to guarantee the cleanup of temporary files in case of an exception during the upload parsing process. The fix introduces a finally block to ensure that item.delete() is called on the temporary FileItem objects, regardless of whether the upload parsing was successful or not. Therefore, org.apache.catalina.connector.Request.parseParts is the specific function that contains the flawed logic and would be active during the exploitation of this Denial of Service vulnerability.
Vulnerable functions
org.apache.catalina.connector.Request.parsePartsjava/org/apache/catalina/connector/Request.java