CVE-2018-1324: Infinite loop in org.apache.commons:commons-compress
Summary
CVE-2018-1324: Apache Commons Compress vulnerable to denial of service due to infinite loop. Affects org.apache.commons:commons-compress versions >= 1.11, < 1.16. Fixed in 1.16. How to fix ↓
Also tracked for
- libcommons-compress-java · Debian:11
The same CVE-2018-1324 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
The org.apache.commons:commons-compress package is a Java library that provides functionality for working with various compression and archive formats, including ZIP. It is commonly used in applications that need to create, read, or manipulate ZIP archives. This vulnerability affects versions 1.11 to 1.15 of the package.
Vulnerability Detail
A specially crafted ZIP archive can trigger an infinite loop in the extra field parser of Apache Commons Compress, which is used by the ZipFile and ZipArchiveInputStream classes. This vulnerability allows an attacker to mount a denial of service (DoS) attack against services that utilize the Compress' zip package. By sending a malicious ZIP archive, an attacker can cause the affected application to consume excessive CPU resources, leading to a significant degradation in performance or even a complete system freeze.
How To Fix
Minimum fixed version
1.16
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 the org.apache.commons:commons-compress package.
Conclusion
The org.apache.commons:commons-compress package versions 1.11 to 1.15 are vulnerable to an infinite loop issue in the extra field parser. This vulnerability can be exploited by sending a specially crafted ZIP archive, leading to a denial of service attack. To mitigate this vulnerability, it is crucial to upgrade to version 1.16 or later of the package. For further assistance and support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for org.apache.commons:commons-compress →
FAQ
This vulnerability allows an attacker to mount a denial of service attack by causing the affected application to consume excessive CPU resources, leading to performance degradation or system freeze.
Versions 1.11 to 1.15 of the org.apache.commons:commons-compress package are affected.
No, there is no known workaround. It is necessary to upgrade to a patched version of the org.apache.commons:commons-compress package.
There are no publicly known exploits for this vulnerability at the time of this report.
For more information about this vulnerability, you can refer to the CVE-2018-1324 entry or the GitHub Security Advisory GHSA-h436-432x-8fvx.
References
Related vulnerabilities
Recent vulnerabilities recorded for org.apache.commons:commons-compress.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.