Critical Memory Initialization Flaw in p7zip Package Leading to Potential Code Execution
Summary
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 ↓
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
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 →
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.
References
Related vulnerabilities
Recent vulnerabilities recorded for p7zip.