Malicious Code Vulnerability in polyutil Package - Potential Remote Code Execution
Summary
MAL-2026-928: Malicious code in polyutil (PyPI). Affects polyutil versions 1.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 polyutil package, available on PyPI, is designed to provide utility functions for Python developers. However, it has been compromised to include malicious code that can download and execute harmful executables on the user's machine. This vulnerability poses a significant risk as it can lead to unauthorized access and control over the affected systems.
Vulnerability Detail
The vulnerability originates from a malicious actor who has embedded code within the polyutil package that is capable of downloading a hardcoded executable from a remote server. This executable is saved in a generic location on the user's system, making it difficult to detect. Although the code has mechanisms to execute the downloaded file and alter system settings, these functionalities were not triggered in the analyzed versions. The package also contains paths for execution on non-Windows systems, indicating a broader range of potential targets. The malicious behavior includes communication with remote servers to fetch additional payloads, which can lead to further exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall polyutil
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, avoid using the polyutil package until a secure version is released. Additionally, monitor your system for any unauthorized executables and remove them if found.
Conclusion
The polyutil package has been compromised with malicious code that poses a significant risk to users. It is crucial to uninstall the package and remain vigilant for updates or patches. Utilizing tools like Vulert can help monitor for vulnerabilities in your applications.
See every vulnerability recorded for polyutil →
FAQ
polyutil is a Python package that provides utility functions for developers. However, it has been compromised to include malicious code.
The vulnerability allows malicious code to download and execute harmful executables on your system, potentially leading to unauthorized access.
Uninstall the polyutil package immediately and check for any unauthorized executables on your system.
Currently, there is no patched version available. It is advised to monitor the package for updates.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.