Critical Integer Overflow Vulnerability in libarchive Package

libarchive Updated 02 Oct 2025

Summary

21/09/2016
N/A
Yes i
High
8.6

ALPINE-CVE-2016-6250: Integer overflow in the ISO9660 writer in libarchive before 3.2.1 allows remote attackers to cause a denial of service (application crash) or execute arbitrary code via vectors related to verifying filename lengths when... Affects libarchive versions < 3.2.1-r0. Fixed in 3.2.1-r0. 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

libarchive is a widely used library that provides a flexible interface for reading and writing various archive formats, including tar, zip, and ISO9660. It is designed to handle file archives efficiently and securely. However, a critical vulnerability has been identified in the ISO9660 writer component of libarchive, which can lead to severe security risks if not addressed promptly.

Vulnerability Detail

An integer overflow in the ISO9660 writer of libarchive prior to version 3.2.1 allows remote attackers to exploit the application by causing a denial of service (application crash) or executing arbitrary code. This vulnerability arises from improper handling of filename lengths when writing an ISO9660 archive, leading to a buffer overflow. The CVSS score for this vulnerability is 8.6, indicating a high severity level that necessitates immediate attention.

How To Fix

Minimum fixed version

3.2.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade libarchive

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 ISO9660 writer feature of libarchive until the package is updated. This may limit some functionalities but will help mitigate the risk of exploitation.

Conclusion

The integer overflow vulnerability in the libarchive package poses significant risks, including potential remote code execution and application crashes. It is crucial to update to the patched version 3.2.1-r0 to mitigate these risks. Users should also consider using workarounds until the update can be applied.

See every vulnerability recorded for libarchive →

Share this vulnerability

FAQ

The vulnerability is an integer overflow in the ISO9660 writer that can lead to a buffer overflow, potentially allowing remote code execution or application crashes.

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

The CVSS score of this vulnerability is 8.6, indicating a high severity level that requires immediate attention.

If an immediate update is not possible, avoid using the ISO9660 writer feature of libarchive as a temporary workaround to reduce the risk of exploitation.

For real-time monitoring and alerts on open-source vulnerabilities, you can visit Vulert at https://vulert.com, which uses manifest files to track vulnerabilities.

Related vulnerabilities

Recent vulnerabilities recorded for libarchive.

How To Fix

Minimum fixed version

3.2.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade libarchive

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