CVE-2025-61795
Apache Tomcat Vulnerable to Improper Resource Shutdown or Release
Description
Improper Resource Shutdown or Release vulnerability in Apache Tomcat. 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.
How to fix CVE-2025-61795
To remediate CVE-2025-61795, upgrade the affected package to a fixed version below.
- —upgrade to 9.0.110 or later
- —upgrade to 10.1.52-1~deb12u1 or later
- —upgrade to 11.0.15-1~deb13u1 or later
- —upgrade to 9.0.107-0+deb11u2 or later
- —upgrade to 11.0.12 or later
- —upgrade to 11.0.12 or later
- —upgrade to 11.0.12 or later
Is CVE-2025-61795 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (7)
- from 0, < 9.0.110, >= 10.0.0, < 10.1.47, >= 11.0.0, < 11.0.12
- from 0, < 10.1.52-1~deb12u1
- from 0, < 11.0.15-1~deb13u1
- from 0, < 9.0.107-0+deb11u2
- >= 11.0.0-M1, < 11.0.12
- >= 11.0.0-M1, < 11.0.12
- >= 11.0.0-M1, < 11.0.12
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U |
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |