Vulnerability · Published Apr 3, 2026 · Assigned by TuranSec

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

High 8.6

In plain English

A high-severity command injection in pymetasploit3 from Dan McInerney. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.2% (higher than 82% of all known vulnerabilities).

Severity (CVSS 3.1)8.6High
Exploit odds (30 days)2.2%top 17.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIpymetasploit3no fix listedGHSA-qpc3-8vqg-8g6w
PyPIpymetasploit3no fix listedPYSEC-2026-500

Affected products (as reported)

VendorProductVersions
Dan McInerney pymetasploit3 0 – through 1.0.6

Weakness: CWE-77 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L

References