Denial of Service Vulnerability in libcommons-compress-java: Infinite Loop in ZIP Archive Parsing

libcommons-compress-java Updated 02 Oct 2025

Summary

16/03/2018
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2018-1324: A specially crafted ZIP archive can be used to cause an infinite loop inside of Apache Commons Compress' extra field parser used by the ZipFile and ZipArchiveInputStream classes in versions 1.11 to 1.15. Affects libcommons-compress-java versions < 1.13-2. Fixed in 1.13-2. How to fix ↓

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

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

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

libcommons-compress-java is a Java library that provides support for reading and writing various archive formats, including ZIP files. It is widely used in applications that require file compression and decompression functionalities. The library's ability to handle ZIP files makes it a critical component for many Java applications, but it is susceptible to vulnerabilities that can be exploited to disrupt service.

Vulnerability Detail

A specially crafted ZIP archive can trigger an infinite loop in the Apache Commons Compress library's extra field parser, specifically within the ZipFile and ZipArchiveInputStream classes. This vulnerability affects versions 1.11 to 1.15 of the library and can be exploited to launch a denial of service (DoS) attack against services utilizing the zip package. The infinite loop can cause the application to become unresponsive, leading to service outages and potential data loss.

How To Fix

Minimum fixed version

1.13-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libcommons-compress-java

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid processing untrusted or specially crafted ZIP files until the library is updated. Implementing input validation to check the integrity of ZIP files before processing can also mitigate the risk.

Conclusion

The libcommons-compress-java library is vulnerable to a denial of service attack due to an infinite loop triggered by specially crafted ZIP files. It is crucial to update to the patched version 1.13-2 to mitigate this risk. Until an update can be applied, implement workarounds to safeguard your applications.

See every vulnerability recorded for libcommons-compress-java →

Share this vulnerability

FAQ

The vulnerability is an infinite loop caused by specially crafted ZIP archives, leading to potential denial of service.

Versions 1.11 to 1.15 of libcommons-compress-java are affected by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If an immediate update is not possible, avoid processing untrusted ZIP files and implement input validation as a temporary measure.

More information can be found in the CVE database and the official Debian security advisories.

Related vulnerabilities

Recent vulnerabilities recorded for libcommons-compress-java.

How To Fix

Minimum fixed version

1.13-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libcommons-compress-java

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