Critical Reverse Shell Vulnerability in evil-rce Package
Summary
MAL-2025-192351: Malicious code in evil-rce (PyPI). Affects evil-rce 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 evil-rce package, available on PyPI, is designed for remote code execution tasks. However, it has been found to contain malicious code that creates a reverse shell, allowing attackers to execute arbitrary commands on the victim's machine. This vulnerability poses a significant risk to users who inadvertently install this package, as it can lead to unauthorized access and control over their systems.
Vulnerability Detail
The vulnerability originates from malicious code embedded in the evil-rce package, specifically designed to initiate a reverse shell upon execution. This allows an attacker to gain control over the victim's machine, executing any commands remotely. The implications of this vulnerability are severe, as it can lead to data theft, system compromise, and further exploitation of the affected system. The malicious code was identified in version 1.0.0 of the package, and it is crucial for users to be aware of this risk to protect their systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall evil-rce
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 workaround, users should refrain from using the evil-rce package and consider alternative packages that provide similar functionality without the associated risks. Additionally, monitoring tools like Vulert can be employed to keep track of vulnerabilities in your dependencies. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The evil-rce package contains a critical vulnerability that allows for remote code execution through a reverse shell. Users are strongly advised to uninstall this package and monitor their systems for any unauthorized access. Utilizing tools like Vulert can help in identifying and managing vulnerabilities in open-source software.
See every vulnerability recorded for evil-rce →
FAQ
The evil-rce package is a Python package available on PyPI that is intended for remote code execution tasks.
The reverse shell vulnerability allows an attacker to execute arbitrary commands on the victim's machine, leading to potential system compromise.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
No, there is currently no patched version of the evil-rce package available. It is recommended to uninstall it immediately.
If you have installed evil-rce, you should uninstall it using the command: pip uninstall evil-rce.