LOW 5.3

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)

ArtifactAffected versionsFixed 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

3affected artifacts
918affected versions
27,611dependent artifacts (est.)
1,514,503dependent versions

71% of the dependent artifacts (19,823) still pull an affected version in their latest release.

DepthDependent 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

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.