Malicious Code Exfiltration in f5-logger Package
Summary
MAL-2025-192608: Malicious code in f5-logger (PyPI). Affects f5-logger versions 99.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 f5-logger package, available on PyPI, is designed for logging purposes within Python applications. However, it has been identified as containing malicious code that compromises user data. This vulnerability allows the package to exfiltrate sensitive information such as the host's IP address and username, posing a significant risk to users who install it.
Vulnerability Detail
The vulnerability originates from the package's code, which overrides the install command in setup.py to execute malicious actions during installation. This results in the exfiltration of basic system data without the user's consent. The malicious code is specifically crafted to gather information that could be exploited for further attacks, making it a potential threat to system security.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall f5-logger
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 f5-logger package altogether until a secure version is available. Additionally, consider using alternative logging packages that do not have known vulnerabilities.
Conclusion
The f5-logger package has been identified as containing malicious code that exfiltrates sensitive information from users' systems. It is crucial for users to uninstall the package and monitor for updates. Utilizing tools like Vulert can help in identifying vulnerabilities in your applications.
See every vulnerability recorded for f5-logger →
FAQ
f5-logger is a Python package designed for logging purposes, but it has been compromised with malicious code.
The vulnerability allows the package to exfiltrate sensitive information from your system, such as your IP address and username.
Uninstall the f5-logger package immediately and check for any updates or patches that may address the vulnerability.
Yes, consider using other logging packages that are known to be secure and do not have reported vulnerabilities.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.
References
Related vulnerabilities
Recent vulnerabilities recorded for f5-logger.