Malicious Code Exfiltration in p7zip-full Package
Summary
MAL-2026-790: Malicious code in p7zip-full (PyPI). Affects p7zip-full versions 0.1.0 – 2.0.0. No fix is published. 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
The p7zip-full package is a Python library that provides a command-line interface for the 7-Zip file archiver, allowing users to compress and decompress files. It is commonly used for file management and archiving tasks. However, this package has been found to contain malicious code that compromises user data.
Vulnerability Detail
The vulnerability originates from a malicious implementation in the p7zip-full package, specifically in versions 0.1.0, 0.2.0, 1.0.0, and 2.0.0. Upon installation or import, the package exfiltrates sensitive information such as the host's IP address and username. This is achieved by overriding the install command in setup.py to execute harmful code during the installation process. The risk is categorized as limited, but it poses a significant threat to user privacy.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall p7zip-full
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, users can avoid installing the p7zip-full package until a patched version is released. Additionally, consider using alternative packages for file compression and decompression that do not have known vulnerabilities.
Conclusion
The p7zip-full package has been identified as containing malicious code that compromises user data. Users are advised to uninstall the affected versions and monitor for updates to secure versions. Utilizing tools like Vulert can help in real-time monitoring of open-source vulnerabilities.
See every vulnerability recorded for p7zip-full →
FAQ
The vulnerability involves malicious code that exfiltrates sensitive information from the host system during installation.
The affected versions include 0.1.0, 0.2.0, 1.0.0, and 2.0.0.
You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.
Uninstall the affected versions of p7zip-full and update to a secure version using the provided commands.
While the risk is categorized as limited, it poses a threat to user privacy by exposing sensitive information.