Malicious Code Injection in bignum Package - PyPI Vulnerability
Summary
MAL-2025-192391: Malicious code in bignum (PyPI). Affects bignum versions 0.1.0 – 0.1.1. 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 bignum package, available on PyPI, is designed for handling large numerical computations in Python. It is often used in mathematical applications and data processing tasks. However, this package has been compromised, leading to a significant security vulnerability that allows for the execution of remote malicious code, posing a threat to users and their systems.
Vulnerability Detail
The vulnerability originates from a malicious version of the bignum package, specifically versions 0.1.0 and 0.1.1, which were altered to execute remote scripts without user consent. This malicious behavior includes obfuscation techniques to hide its true intent, making it difficult for users to detect. The implications of this vulnerability are severe, as it can lead to unauthorized access to sensitive data, system compromise, and further exploitation of the affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall bignum
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 bignum package until a patched version is confirmed. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The bignum package has been compromised, leading to a serious vulnerability that allows for the execution of malicious code. Users are urged to update their installations immediately and consider alternative packages to mitigate risks. Utilizing tools like Vulert can help in monitoring and managing such vulnerabilities effectively.
See every vulnerability recorded for bignum →
FAQ
The bignum package is a Python library used for performing calculations with large numbers, commonly utilized in mathematical and data processing applications.
If you have installed versions 0.1.0 or 0.1.1 of the bignum package, your installation is affected. You can check your installed version using 'pip show bignum'.
You should immediately update the bignum package to a safe version using 'pip install --upgrade bignum' and monitor your system for any unusual activity.
Yes, consider using other libraries such as 'decimal' or 'numpy' for handling large numerical computations without the associated risks of the bignum package.
Vulert provides real-time monitoring and alerts for open-source vulnerabilities in your software using the Pipfile.lock. You can check if your application is affected by this vulnerability through the Vulert playground without any signup.
References
Related vulnerabilities
Recent vulnerabilities recorded for bignum.