VDB
KO
HIGH 8.6

PYSEC-2026-500

pymetasploit3 vulnerable to command injection in console.run_module_with_output()

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI / pymetasploit3
Introduced in: 0

No fixed version published yet for pymetasploit3 (pip). Pin to a known-safe version or switch to an alternative.

References