CVE-2026-5463: CWE-77 Improper neutralization of special elements leading to command injection in Dan McInerney pymetasploit3
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.
AI Analysis
Technical Summary
The vulnerability in pymetasploit3 (up to version 1.0.6) involves improper sanitization of input in the console.run_module_with_output() method. Attackers can inject newline characters into module options such as RHOSTS, disrupting the intended command flow and causing the Metasploit console to execute additional unintended commands. This can lead to arbitrary command execution and unauthorized manipulation of Metasploit sessions. The CVSS 4.0 base score is 9.3, indicating a critical severity with network attack vector, no required privileges or user interaction, and high impact on integrity and availability.
Potential Impact
Successful exploitation allows remote attackers to execute arbitrary commands within the Metasploit console environment without authentication or user interaction. This can compromise the integrity and availability of Metasploit sessions, potentially leading to unauthorized control or disruption of penetration testing activities.
Mitigation Recommendations
No official patch or fix is currently available for this vulnerability. Users should monitor the vendor's advisories for updates. Until a fix is released, avoid using untrusted input in module options such as RHOSTS when invoking console.run_module_with_output().
CVE-2026-5463: CWE-77 Improper neutralization of special elements leading to command injection in Dan McInerney pymetasploit3
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.
CVSS v4.0
Score 9.3critical
Affected software
Dan McInerney
pymetasploit3
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in pymetasploit3 (up to version 1.0.6) involves improper sanitization of input in the console.run_module_with_output() method. Attackers can inject newline characters into module options such as RHOSTS, disrupting the intended command flow and causing the Metasploit console to execute additional unintended commands. This can lead to arbitrary command execution and unauthorized manipulation of Metasploit sessions. The CVSS 4.0 base score is 9.3, indicating a critical severity with network attack vector, no required privileges or user interaction, and high impact on integrity and availability.
Potential Impact
Successful exploitation allows remote attackers to execute arbitrary commands within the Metasploit console environment without authentication or user interaction. This can compromise the integrity and availability of Metasploit sessions, potentially leading to unauthorized control or disruption of penetration testing activities.
Mitigation Recommendations
No official patch or fix is currently available for this vulnerability. Users should monitor the vendor's advisories for updates. Until a fix is released, avoid using untrusted input in module options such as RHOSTS when invoking console.run_module_with_output().
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-04-03T04:28:08.555Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 69cf4ec6e6bfc5ba1d767352
Added to database: 04/03/2026, 05:23:18 UTC
Last enriched: 08/13/2026, 16:40:27 UTC
Last updated: 09/12/2026, 22:01:35 UTC
Views: 225
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.