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

Read the record on cve.org

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

CVSSScoreVectorSource
4.09.3 CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:L/SC:L/SI:H/SA:LTuranSec
3.18.6 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:LTuranSec
2.07.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:PTuranSec

Weaknesses

  • CWE-77 Improper neutralization of special elements leading to command injection

Affected Products

ProductVersions
pymetasploit3Dan McInerney
  • 1.0.6 and earlierAffected

References

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.