CVE-2019-12402: Denial of Service in Apache Commons Compress

Summary

11/10/2019
Yes i
High
7.5

CVE-2019-12402: Denial of Service in Apache Commons Compress. Affects org.apache.commons:commons-compress versions >= 1.15, < 1.19. Fixed in 1.19. How to fix ↓

Also tracked for

The same CVE-2019-12402 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apache Commons Compress is a Java library that provides functionality for working with various archive formats, such as ZIP, TAR, and GZIP. It is widely used in many applications for compressing and decompressing files. The vulnerability identified as CVE-2019-12402 affects versions 1.15 to 1.18 of Apache Commons Compress. This vulnerability arises from a flaw in the file name encoding algorithm used internally by the library. When presented with specially crafted inputs, the algorithm can enter an infinite loop, resulting in a denial of service (DoS) attack. An attacker with the ability to control the file names within an archive created by Compress can exploit this vulnerability to cause the application using the library to become unresponsive or crash.

Vulnerability Detail

The vulnerability in Apache Commons Compress arises from an issue in the file name encoding algorithm used by the library. When encountering certain inputs, the algorithm can get stuck in an infinite loop, leading to a DoS attack. This vulnerability can be exploited by an attacker who can control the file names within an archive created by Compress. By crafting specially designed file names, the attacker can cause the application using the library to consume excessive resources or crash, resulting in a denial of service. The severity of this vulnerability is rated as HIGH with a CVSS score of 7.5.

How To Fix

Minimum fixed version

1.19

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 necessary to apply the fix by upgrading to a patched version of Apache Commons Compress.

Conclusion

The vulnerability identified as CVE-2019-12402 in Apache Commons Compress can lead to a denial of service (DoS) attack when an attacker can control the file names within an archive created by the library. Upgrading to version 1.19 or later of Apache Commons Compress is necessary to fix this vulnerability. For further assistance or support 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 that provides functionality for working with various archive formats, such as ZIP, TAR, and GZIP.

Versions 1.15 to 1.18 of Apache Commons Compress are affected by this vulnerability.

This vulnerability can be exploited by an attacker to cause a denial of service (DoS) attack, resulting in the application becoming unresponsive or crashing.

To fix this vulnerability, it is recommended to upgrade to version 1.19 or later of Apache Commons Compress.

No, there is no known workaround for this vulnerability. It is necessary to apply the fix by upgrading to a patched version of Apache Commons Compress.

Related vulnerabilities

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

How To Fix

Minimum fixed version

1.19

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