HIGH 8.6 PyPI

pymetasploit3 vulnerable to command injection in console.run_module_with_output()

GHSA-qpc3-8vqg-8g6w · CVE-2026-5463 · PYSEC-2026-500

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes