Critical Memory Initialization Flaw in p7zip Package Leading to Potential Code Execution

p7zip Updated 02 Oct 2025

Summary

02/05/2018
N/A
Yes i
High
7.8

ALPINE-CVE-2018-10115: Incorrect initialization logic of RAR decoder objects in 7-Zip 18.03 and before can lead to usage of uninitialized memory, allowing remote attackers to cause a denial of service (segmentation fault) or execute arbitrary... Affects p7zip versions < 16.02-r3. Fixed in 16.02-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 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

p7zip is a command-line version of 7-Zip, a popular file archiver with a high compression ratio. It is widely used for compressing and decompressing files in various formats, including RAR. The package is known for its efficiency and versatility in handling large files. However, it has been found to have a critical vulnerability that affects its RAR decoding functionality, posing significant risks to users.

Vulnerability Detail

The vulnerability, identified as CVE-2018-10115, stems from incorrect initialization logic of RAR decoder objects in versions of 7-Zip up to 18.03. This flaw can lead to the usage of uninitialized memory, allowing remote attackers to exploit the vulnerability by crafting malicious RAR archives. The consequences include potential denial of service through segmentation faults or even arbitrary code execution, which can compromise the integrity and security of the affected systems.

How To Fix

Minimum fixed version

16.02-r3

This is the first release that contains the fix.

sudo apk add --upgrade p7zip

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

Workaround

If immediate updating is not feasible, consider avoiding the extraction of untrusted RAR files until the package is updated. Additionally, running the application in a controlled environment or sandbox may help mitigate risks.

Conclusion

The p7zip package has a critical vulnerability that can lead to severe security risks, including arbitrary code execution. It is essential for users to update to the patched version to safeguard their systems. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for p7zip →

Share this vulnerability

FAQ

CVE-2018-10115 is a vulnerability in the p7zip package that allows for potential code execution due to improper memory initialization in RAR decoding.

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

The risks include denial of service through segmentation faults and the potential for arbitrary code execution, which can lead to unauthorized access to the system.

You can update the p7zip package using the command 'apk add p7zip@16.02-r3' in Alpine Linux.

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

Related vulnerabilities

Recent vulnerabilities recorded for p7zip.

How To Fix

Minimum fixed version

16.02-r3

This is the first release that contains the fix.

sudo apk add --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