Heap-based Buffer Overflow in p7zip

p7zip Updated 02 Oct 2025

Summary

02/02/2018
N/A
Yes i
Unrated
Not published

DLA-1268-1: p7zip - security update. Affects p7zip versions < 9.20.1~dfsg.1-4+deb7u3. Fixed in 9.20.1~dfsg.1-4+deb7u3. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

p7zip is an open-source file archiver program that supports various compression formats, including ZIP. It is widely used for compressing and decompressing files on Debian 7 Wheezy systems. However, a vulnerability has been discovered in the NCompress::NShrink::CDecoder::CodeReal method of the 7-Zip library, which is utilized by p7zip. This vulnerability allows remote attackers to exploit a heap-based buffer overflow by providing a specially crafted ZIP archive. The impact of this vulnerability can range from a denial of service (out-of-bounds write) to potential arbitrary code execution.

Vulnerability Detail

The heap-based buffer overflow in p7zip's NCompress::NShrink::CDecoder::CodeReal method allows remote attackers to exploit the vulnerability by providing a malicious ZIP archive. By carefully crafting the archive, an attacker can trigger an out-of-bounds write, potentially leading to a denial of service or arbitrary code execution. This vulnerability poses a significant risk to systems running p7zip on Debian 7 Wheezy.

How To Fix

Minimum fixed version

9.20.1~dfsg.1-4+deb7u3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade p7zip

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

Workaround

There is no known workaround for this vulnerability. It is essential to apply the security update to p7zip as soon as possible to mitigate the risk.

Conclusion

The heap-based buffer overflow vulnerability in p7zip's NCompress::NShrink::CDecoder::CodeReal method poses a significant risk to systems running p7zip on Debian 7 Wheezy. It is crucial to apply the recommended security update to mitigate the risk. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for p7zip →

Share this vulnerability

FAQ

p7zip is an open-source file archiver program that supports various compression formats, including ZIP. It is commonly used for compressing and decompressing files on Debian 7 Wheezy systems.

Remote attackers can exploit this vulnerability by providing a specially crafted ZIP archive to p7zip. By triggering the heap-based buffer overflow, they can potentially execute arbitrary code or cause a denial of service.

The impact of this vulnerability can range from a denial of service (out-of-bounds write) to potential arbitrary code execution. It poses a significant risk to systems running p7zip on Debian 7 Wheezy.

No, there is no known workaround for this vulnerability. It is crucial to apply the security update to p7zip to mitigate the risk.

You can update the p7zip package using the package manager of your Debian 7 Wheezy system. Ensure that you upgrade to version 9.20.1~dfsg.1-4+deb7u3 or later.

Related vulnerabilities

Recent vulnerabilities recorded for p7zip.

How To Fix

Minimum fixed version

9.20.1~dfsg.1-4+deb7u3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade p7zip

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