Malicious Code Injection in memoryos Package - Critical Vulnerability Detected
Summary
MAL-2026-16475: Malicious code in memoryos (PyPI). Affects memoryos versions 2.0.34. 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 memoryos package, available on PyPI, is designed for memory management and optimization in Python applications. It is intended to enhance the performance of memory-intensive tasks. However, a severe vulnerability has been identified in version 2.0.34, which compromises the integrity of the package and exposes users to potential malicious attacks.
Vulnerability Detail
The vulnerability originates from a malicious executable embedded within the memoryos package. Upon importing the package, it triggers the execution of a prebuilt Go binary that communicates with attacker-controlled servers. This binary is capable of harvesting sensitive information from the user's home directory and posting it to the attackers' infrastructure. The package also includes a mechanism to steal publishing credentials from CI environments, making it a significant supply-chain threat.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall memoryos
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 measure, users can avoid importing the memoryos package until a patched version is confirmed. Additionally, users should monitor their systems for any unauthorized access or data breaches.
Conclusion
The memoryos package has been compromised, leading to a critical vulnerability that poses significant risks to users. Immediate action is required to update the package and mitigate potential threats. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in the future.
See every vulnerability recorded for memoryos →
FAQ
The vulnerability affects version 2.0.34 of the memoryos package.
You can use Vulert to monitor and alert for vulnerabilities in your application. Visit Vulert Scanner to check if your application is affected without requiring any signup.
If you have installed version 2.0.34, it is crucial to uninstall it and update to a patched version immediately.
The consequences include unauthorized access to sensitive information, potential data breaches, and the risk of malicious code execution on your system.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert, and ensure to keep your packages updated to the latest secure versions.
Related vulnerabilities
Recent vulnerabilities recorded for memoryos.