Vulnerability · Published Apr 3, 2026 · Assigned by TuranSec
CVE-2026-5463pymetasploit3 - Command Injection via Newline Injection in console.run_module_with_output()
High 8.6
In plain English
A high-severity command injection in pymetasploit3 from Dan McInerney. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.2% (higher than 82% of all known vulnerabilities).
Official description
Command injection vulnerability in console.run_module_with_output() in pymetasploit3 through version 1.0.6 allows attackers to inject newline characters into module options such as RHOSTS. This breaks the intended command structure and causes the Metasploit console to execute additional unintended commands, potentially leading to arbitrary command execution and manipulation of Metasploit sessions.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | pymetasploit3 | no fix listed | GHSA-qpc3-8vqg-8g6w |
| PyPI | pymetasploit3 | no fix listed | PYSEC-2026-500 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Dan McInerney | pymetasploit3 | 0 – through 1.0.6 |
Weakness: CWE-77 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
References
- https://github.com/DanMcInerney/pymetasploit3 third-party-advisory
- https://pypi.org/project/pymetasploit3/ third-party-advisory