Denial of Service Vulnerability in libcommons-compress-java: Infinite Loop Risk

libcommons-compress-java Updated 02 Oct 2025

Summary

30/08/2019
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2019-12402: The file name encoding algorithm used internally in Apache Commons Compress 1.15 to 1.18 can get into an infinite loop when faced with specially crafted inputs. Affects libcommons-compress-java versions < 1.18-3. Fixed in 1.18-3. 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 working with various compression formats, including ZIP, TAR, and others. It is widely used in applications that require file compression and decompression functionalities. The library is integral for developers who need to handle compressed files efficiently. However, certain versions of this library are vulnerable to a specific issue that can lead to denial of service under certain conditions.

Vulnerability Detail

The vulnerability arises from the file name encoding algorithm used internally in Apache Commons Compress versions 1.15 to 1.18. When faced with specially crafted inputs, this algorithm can enter an infinite loop, causing the application to hang and become unresponsive. This situation can be exploited by an attacker who can control the file names within an archive created by the library, leading to a denial of service attack. The affected versions do not handle specific edge cases properly, which allows for this infinite loop to occur.

How To Fix

Minimum fixed version

1.18-3

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

If an immediate update is not possible, consider implementing input validation to sanitize file names before processing them with the library. This can help mitigate the risk of triggering the infinite loop.

Conclusion

The libcommons-compress-java library has a vulnerability that can lead to denial of service due to an infinite loop caused by specific file name inputs. It is crucial to update to version 1.18-3 or later to mitigate this risk. For those unable to update immediately, implementing input validation can serve as a temporary workaround.

See every vulnerability recorded for libcommons-compress-java →

Share this vulnerability

FAQ

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

The vulnerability can lead to a denial of service, causing applications to hang and become unresponsive when processing specially crafted file names.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

Yes, the patched version is 1.18-3. Updating to this version will resolve the vulnerability.

Implement input validation to sanitize file names before processing them with the library as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for libcommons-compress-java.

How To Fix

Minimum fixed version

1.18-3

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