Critical Integer Overflow Vulnerability in libarchive Package
Summary
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 ↓
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
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 →
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.
References
Related vulnerabilities
Recent vulnerabilities recorded for libarchive.