CVE-2012-2098: Uncontrolled Resource Consumption in Apache Commons Compress
Summary
CVE-2012-2098: Uncontrolled Resource Consumption in Apache Commons Compress. Affects org.apache.commons:commons-compress versions < 1.4.1. Fixed in 1.4.1. How to fix ↓
Also tracked for
- libcommons-compress-java · Debian:11
The same CVE-2012-2098 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 offers classes and methods for compressing and decompressing data in formats like ZIP, GZIP, BZIP2, and more. This vulnerability affects versions of Apache Commons Compress prior to 1.4.1.
Vulnerability Detail
The vulnerability, identified as CVE-2012-2098, is an algorithmic complexity issue in the sorting algorithms used by the bzip2 compressing stream (BZip2CompressorOutputStream) in Apache Commons Compress. It allows remote attackers to cause a denial of service (CPU consumption) by providing a file with many repeating inputs. This can result in excessive resource usage and impact the availability of the affected system.
How To Fix
Minimum fixed version
1.4.1
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. It is essential to apply the fix by upgrading to the patched version of Apache Commons Compress.
Conclusion
The vulnerability in Apache Commons Compress prior to version 1.4.1 can lead to a denial of service condition due to excessive CPU consumption. It is recommended to upgrade to the patched version to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please 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.
Versions of Apache Commons Compress prior to 1.4.1 are affected by this vulnerability.
This vulnerability can be exploited by remote attackers to cause a denial of service by consuming excessive CPU resources.
To fix this vulnerability, upgrade to Apache Commons Compress version 1.4.1 or later.
No, there is no known workaround for this vulnerability. It is crucial to apply the fix by upgrading the library.
References
Related vulnerabilities
Recent vulnerabilities recorded for org.apache.commons:commons-compress.