CVE-2012-2098: Uncontrolled Resource Consumption in Apache Commons Compress

Summary

13/05/2022
Yes i
Moderate
Not published

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

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.

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.commons:commons-compress.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback