CVE-2026-5463
pymetasploit3 - Command Injection via Newline Injection in console.run_module_with_output()
- State
- Published
- Severity
- 9.3 Critical
- Published
- Apr 3, 2026
- Updated
- Aug 10, 2026
- Reserved
- Apr 3, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 9.3 Critical | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:L/SC:L/SI:H/SA:L | TuranSec |
| 3.1 | 8.6 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L | TuranSec |
| 2.0 | 7.5 High | AV:N/AC:L/Au:N/C:P/I:P/A:P | TuranSec |
Weaknesses
- CWE-77 Improper neutralization of special elements leading to command injection
Affected Products
| Product | Versions |
|---|---|
pymetasploit3Dan McInerney |
|
References
- https://github.com/DanMcInerney/pymetasploit3third-party-advisory
- https://pypi.org/project/pymetasploit3/third-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.