Out-of-Bounds Write Vulnerability in cabextract and libmspack Packages

cabextract Updated 02 Oct 2025

Summary

23/10/2018
N/A
Yes i
Medium
6.5

ALPINE-CVE-2018-18584: In mspack/cab.h in libmspack before 0.8alpha and cabextract before 1.8, the CAB block input buffer is one byte too small for the maximal Quantum block, leading to an out-of-bounds write. Affects cabextract versions < 1.8-r0. Fixed in 1.8-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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

cabextract is a utility for extracting files from Microsoft Cabinet (.cab) files, widely used for software distribution. libmspack is a library for handling Microsoft compressed files, including .cab files. Both packages are integral for managing compressed file formats, but they are vulnerable to a critical issue that can lead to security breaches.

Vulnerability Detail

In mspack/cab.h in libmspack before version 0.8alpha and cabextract before version 1.8, the CAB block input buffer is one byte too small for the maximal Quantum block. This flaw can lead to an out-of-bounds write, potentially allowing an attacker to execute arbitrary code or crash the application, thereby compromising system integrity and availability.

How To Fix

Minimum fixed version

1.8-r0

This is the first release that contains the fix.

sudo apk add --upgrade cabextract

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

Workaround

If you cannot update the packages immediately, consider disabling the use of cabextract and libmspack in your applications until a patch is applied. This can be done by removing the packages temporarily with:

apk del cabextract libmspack

Conclusion

The out-of-bounds write vulnerability in cabextract and libmspack poses significant risks to systems utilizing these packages. It is crucial to update to the patched versions to mitigate potential security threats. Regular monitoring and vulnerability management practices, such as using tools like Vulert, can help maintain software security.

See every vulnerability recorded for cabextract →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 6.5, indicating a medium severity level.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground at Vulert Scanner without any signup.

Exploitation of this vulnerability could lead to arbitrary code execution or application crashes, compromising system security and stability.

As of now, there are no publicly known exploits specifically targeting this vulnerability, but it is advisable to apply the patch as a precaution.

Using older versions of these packages is not safe due to the identified vulnerability. It is recommended to update to the latest patched versions.

Related vulnerabilities

Recent vulnerabilities recorded for cabextract.

How To Fix

Minimum fixed version

1.8-r0

This is the first release that contains the fix.

sudo apk add --upgrade cabextract

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