Critical Malicious Code Vulnerability in dns-execution-test Package
Summary
MAL-2026-910: Malicious code in dns-execution-test (PyPI). Affects dns-execution-test versions 1.1.2. 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 dns-execution-test package, available on PyPI, is designed for testing DNS execution functionalities in Python applications. However, it has been found to contain malicious code that poses a significant security risk to users. This vulnerability allows attackers to execute arbitrary commands on the victim's machine, compromising the integrity and confidentiality of the system.
Vulnerability Detail
The vulnerability originates from a malicious code snippet included in the dns-execution-test package, specifically in version 1.1.2. When the package is installed, it initiates a reverse shell connection to an attacker's server (IP: 195.177.94.161). This allows the attacker to execute any commands remotely, leading to potential data theft, system compromise, and unauthorized access to sensitive information.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall dns-execution-test
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 installing the dns-execution-test package until a patched version is released. If you must use it for testing, consider running it in a secure, isolated environment such as a virtual machine or a container to mitigate risks.
Conclusion
The dns-execution-test package contains a critical vulnerability that allows for remote command execution through a reverse shell. Users are strongly advised to uninstall the affected version and monitor their systems for any suspicious activity. Utilizing tools like Vulert can help in identifying and mitigating such vulnerabilities in the future.
See every vulnerability recorded for dns-execution-test →
FAQ
The dns-execution-test package is a Python library designed for testing DNS execution functionalities. However, it has been compromised with malicious code.
The vulnerability allows attackers to execute arbitrary commands on your machine, which can lead to data breaches and unauthorized access.
Immediately uninstall the dns-execution-test package and refrain from using it until a secure version is available.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software. You can check your application against known vulnerabilities using the Vulert playground.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.