Malicious Code Vulnerability in pyregions-snowflake Package
Summary
MAL-2026-2109: Malicious code in pyregions-snowflake (PyPI). Affects pyregions-snowflake versions 3.9.1 – 3.9.9. 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 pyregions-snowflake package is a Python library available on the PyPI repository, designed for specific functionalities related to region handling in applications. However, it has been identified as containing malicious code that poses significant security risks to users. The package's malicious behavior includes downloading and executing remote executables, which can lead to data exfiltration and unauthorized access to systems.
Vulnerability Detail
The vulnerability originates from an obfuscated code within the pyregions-snowflake package, which activates during installation. This code is designed to download and execute remote executables in certain environments. Additionally, older versions of the package attempt to exfiltrate basic information via DNS requests and cover their tracks by installing a similarly named package from a private repository. The campaign is categorized as malicious due to its intent to steal information and execute unauthorized actions.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall pyregions-snowflake
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 using the pyregions-snowflake package altogether until a secure version is confirmed. Additionally, consider using alternative packages that provide similar functionalities without the associated risks.
Conclusion
The pyregions-snowflake package has been identified as containing malicious code that poses serious security risks. Users are advised to uninstall affected versions and monitor their systems for any unauthorized actions. Utilizing tools like Vulert can help in identifying and mitigating such vulnerabilities in the future.
See every vulnerability recorded for pyregions-snowflake →
FAQ
The affected versions include 3.9.1, 3.9.2, 3.9.4, 3.9.5, 3.9.6, 3.9.7, 3.9.8, 3.9.9, and 3.9.10.
You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.
If you have installed the affected package, uninstall it immediately and check for any unauthorized changes or data breaches in your system.
To prevent similar vulnerabilities, regularly update your packages, use trusted sources, and monitor for vulnerabilities using tools like Vulert.
Using the compromised package can lead to unauthorized access to your system, data exfiltration, and potential installation of additional malicious software.