CVE-2024-25710: Apache Commons Compress Denial of Service
Summary
CVE-2024-25710: Apache Commons Compress: Denial of service caused by an infinite loop for a corrupted DUMP file. Affects org.apache.commons:commons-compress versions >= 1.3, < 1.26.0. Fixed in 1.26.0. How to fix ↓
Also tracked for
- libcommons-compress-java · Debian:11
The same CVE-2024-25710 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Apache Commons Compress is a Java library that provides support for working with various compression and archive formats. It is commonly used in applications that require file compression and decompression functionality. This vulnerability affects versions 1.3 through 1.25.0 of Apache Commons Compress. The vulnerability allows an attacker to cause a denial of service (DoS) by exploiting an infinite loop in the handling of corrupted DUMP files.
Vulnerability Detail
The vulnerability in Apache Commons Compress arises from an infinite loop condition, also known as a 'Loop with Unreachable Exit Condition.' When processing a corrupted DUMP file, the library enters an infinite loop, causing the application to hang or crash. This can lead to a DoS situation where the affected application becomes unresponsive or unavailable. The vulnerability has a CVSS score of 8.1, indicating a high severity level.
How To Fix
Latest published version: 1.28.0 as of 23 Oct 2026
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
1.26.0
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. Upgrading to the fixed version is the recommended solution.
Conclusion
The Apache Commons Compress library is vulnerable to a denial of service attack caused by an infinite loop when processing corrupted DUMP files. Users are advised to upgrade to version 1.26.0 to mitigate this vulnerability. For further support on vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for org.apache.commons:commons-compress →
FAQ
Apache Commons Compress is a Java library for working with compression and archive formats.
The vulnerability allows an attacker to cause a denial of service by exploiting an infinite loop in the handling of corrupted DUMP files.
The CVSS score of this vulnerability is 8.1, indicating a high severity level.
To fix this vulnerability, upgrade to version 1.26.0 of Apache Commons Compress.
No, there is no known workaround. Upgrading to the fixed version is recommended.
Related vulnerabilities
Recent vulnerabilities recorded for org.apache.commons:commons-compress.