CVE-2026-5463

pymetasploit3 - Command Injection via Newline Injection in console.run_module_with_output()

Published Apr 3, 2026 CVSS 4.0 · 9.3 Critical EPSS 2.2% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-qpc3-8vqg-8g6w pymetasploit3 vulnerable to command injection in console.run_module_with_output()
History
Type Values Removed Values Added
Title pymetasploit3 Command Injection via Newline Injection in console.run_module_with_output() pymetasploit3 - Command Injection via Newline Injection in console.run_module_with_output()
Type Values Removed Values Added
Title Newline Injection in pymetasploit3 Allows Arbitrary Command Execution pymetasploit3 Command Injection via Newline Injection in console.run_module_with_output()
Type Values Removed Values Added
Title Newline Injection in pymetasploit3 Allows Arbitrary Command Execution
Type Values Removed Values Added
Title Command Injection in pymetasploit3’s console.run_module_with_output() Allows Arbitrary System Command Execution
Type Values Removed Values Added
Title Command Injection in pymetasploit3’s console.run_module_with_output() Allows Arbitrary System Command Execution
Type Values Removed Values Added
Title Command Injection in pymetasploit3 Enables Arbitrary Command Execution
Type Values Removed Values Added
First Time appeared Danmcinerney
Danmcinerney pymetasploit3
CPEs cpe:2.3:a:danmcinerney:pymetasploit3:*:*:*:*:*:*:*:*
Vendors & Products Danmcinerney
Danmcinerney pymetasploit3
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Command Injection in pymetasploit3 Enables Arbitrary Command Execution
First Time appeared Dan Mcinerney
Dan Mcinerney pymetasploit3
Vendors & Products Dan Mcinerney
Dan Mcinerney pymetasploit3
Type Values Removed Values Added
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.
Weaknesses CWE-77
References
Metrics cvssV2_0

{'score': 7.5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:P'}

cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L'}

cvssV4_0

{'score': 9.3, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
TuranSec
Published
Updated
Aug 10, 2026, 11:30 AM
Reserved
Apr 3, 2026, 4:28 AM
Status
Analyzed
Published
Apr 3, 2026, 5:16 AM
Modified
Jul 24, 2026, 8:10 PM