Critical Buffer Overflow Vulnerability in UnZip Package

unzip Updated 02 Oct 2025

Summary

31/01/2020
N/A
Yes i
High
7.8

ALPINE-CVE-2014-8139: Heap-based buffer overflow in the CRC32 verification in Info-ZIP UnZip 6.0 and earlier allows remote attackers to execute arbitrary code via a crafted zip file in the -t command argument to the unzip command. Affects unzip versions < 6.0-r3. Fixed in 6.0-r3. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The UnZip package is a widely used utility for extracting files from ZIP archives. It is part of the Info-ZIP project and is known for its efficiency and compatibility with various ZIP formats. However, certain versions of UnZip are vulnerable to a heap-based buffer overflow, which can be exploited by attackers to execute arbitrary code.

Vulnerability Detail

The vulnerability, identified as CVE-2014-8139, arises from a heap-based buffer overflow in the CRC32 verification process of UnZip 6.0 and earlier versions. Attackers can exploit this vulnerability by crafting a malicious ZIP file and using the -t command argument with the unzip command. If successful, this could lead to remote code execution, allowing attackers to gain unauthorized access and control over the affected system.

How To Fix

Minimum fixed version

6.0-r3

This is the first release that contains the fix.

sudo apk add --upgrade unzip

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

Workaround

As a temporary workaround, users can avoid using the -t command with potentially untrusted ZIP files until the package is updated. This reduces the risk of exploitation through this specific command.

Conclusion

The UnZip package has a critical vulnerability that can lead to remote code execution if not addressed. Users are strongly advised to update to the patched version to mitigate risks. Temporary workarounds can be employed until the update is completed.

See every vulnerability recorded for unzip →

Share this vulnerability

FAQ

CVE-2014-8139 is a vulnerability in the UnZip package that allows remote attackers to execute arbitrary code via a crafted ZIP file.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

The CVSS score of this vulnerability is 7.8, indicating a high level of severity.

If an immediate update is not possible, refrain from using the -t command with untrusted ZIP files as a temporary measure.

For more information on open-source vulnerabilities, you can visit Vulert, which monitors and alerts for vulnerabilities using a manifest file.

Related vulnerabilities

Recent vulnerabilities recorded for unzip.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

6.0-r3

This is the first release that contains the fix.

sudo apk add --upgrade unzip

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