pymetasploit3 - Command Injection via Newline Injection in console.run_module_with_output()
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Low · High · Low
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-77.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Dan McInerney | pymetasploit3 | up to 1.0.6 | — | No fix listed | CNA |
| — | pymetasploit3 (PyPI) | up to 1.0.6 | — | No fix listed | GHSA-qpc3-8vqg-8g6w |
- pymetasploit3 VendorDan McInerney Affected up to 1.0.6 Fixed in — No fix listed CNA
- pymetasploit3 (PyPI) Vendor— Affected up to 1.0.6 Fixed in — No fix listed GHSA-qpc3-8vqg-8g6w
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:danmcinerney:pymetasploit3:*:*:*:*:*:*:*:* | up to 1.0.6 | Vulnerable | Dan McInerney |
- cpe:2.3:a:danmcinerney:pymetasploit3:*:*:*:*:*:*:*:* Versions up to 1.0.6 Vulnerable ·Dan McInerney
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-5463
- 2026-10-03 Alias added: GHSA-qpc3-8vqg-8g6w
References
Sources
- CVE-2026-5463 · CVE Program
- CVE-2026-5463 · NVD
- FIRST EPSS
- GHSA-qpc3-8vqg-8g6w · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences