CVE-2025-61795
Apache Tomcat Vulnerable to Improper Resource Shutdown or Release
Description
If an error occurred (including exceeding limits) during the processing of a multipart upload, temporary copies of the uploaded parts written to disc were not cleaned up immediately but left for the garbage collection process to delete. Depending on JVM settings, application memory usage and application load, it was possible that space for the temporary copies of uploaded parts would be filled faster than GC cleared it, leading to a DoS.
This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.11, from 10.1.0-M1 through 10.1.46, from 9.0.0.M1 through 9.0.109.
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.12 or later, 10.1.47 or later or 9.0.110 or later which fixes the issue.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.tomcat » tomcat | >= 8.5.0, <= 8.5.100>= 9.0.0.M1, < 9.0.110>= 10.1.0-M1, < 10.1.47>= 11.0.0-M1, < 11.0.12 | 9.0.110, 10.1.47, 11.0.12 |
| org.apache.tomcat » tomcat-catalina | >= 8.5.0, <= 8.5.100>= 9.0.0.M1, < 9.0.110>= 10.1.0-M1, < 10.1.47>= 11.0.0-M1, < 11.0.12 | 9.0.110, 10.1.47, 11.0.12 |
| org.apache.tomcat.embed » tomcat-embed-core | >= 8.5.0, <= 8.5.100>= 9.0.0.M1, < 9.0.110>= 10.1.0-M1, < 10.1.47>= 11.0.0-M1, < 11.0.12 | 9.0.110, 10.1.47, 11.0.12 |
Blast radius
71% of the dependent artifacts (19,823) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 25,742 |
| 2 hops | 25,495 |
| 3 hops | 583,380 |
| 4 hops | 549,796 |
| 5 hops | 281,938 |
| 6 hops | 48,152 |
Most used dependents
- org.springframework.boot » spring-boot-starter-web19,081 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.hadoop » hadoop-client1,796 usages
- org.apache.tomcat.embed » tomcat-embed-core1,702 usages
- org.wso2.carbon » org.wso2.carbon.core1,598 usages
- org.apache.kafka » kafka1,450 usages
- org.apache.thrift » libthrift1,388 usages
- org.apache.hadoop » hadoop-mapreduce-client-core1,366 usages
- org.springframework.boot » spring-boot-starter-websocket1,319 usages
- org.springframework.boot » spring-boot-starter-thymeleaf1,158 usages
- org.apache.flink » flink-streaming-java982 usages
- org.apache.hbase » hbase-client960 usages
- org.springframework.boot » spring-boot-starter-tomcat901 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-61795
- Webhttps://github.com/apache/tomcat/commit/1cdf5f730ede75a0759492f179ac21ca4ff68e06
- Webhttps://github.com/apache/tomcat/commit/af6e9181620304c0d818121c29c074e1330610d0
- Webhttps://github.com/apache/tomcat/commit/afa422bd7ca1eef0f507259c682fd876494d9c3b
- Webhttps://cert-portal.siemens.com/productcert/html/ssa-032379.html
- Packagehttps://github.com/apache/tomcat
- Webhttps://lists.apache.org/thread/wm9mx8brmx9g4zpywm06ryrtvd3160pp
- Webhttps://tomcat.apache.org/security-10.html#Fixed_in_Apache_Tomcat_10.1.47
- Webhttps://tomcat.apache.org/security-11.html#Fixed_in_Apache_Tomcat_11.0.12
- Webhttps://tomcat.apache.org/security-9.html#Fixed_in_Apache_Tomcat_9.0.110
- Webhttp://www.openwall.com/lists/oss-security/2025/10/27/6
