PYMETASPLOIT3 · CVE-2026-5463 · Package
NO FIX YET
pymetasploit3, a Python client for the Metasploit RPC console, does not stop newline characters in module options such as RHOSTS. An attacker who controls those values can add extra console commands, which can lead to arbitrary command execution and control of Metasploit sessions.
first public Apr 3, 2026 · 2 sources
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Teams that use pymetasploit3 to drive Metasploit from Python and pass module options that come from untrusted input are exposed. Code that only sets module options from fixed, trusted values is less exposed. unknown whether a fixed version exists.
Not affected if fixed-input-only
Who cares metasploit, pymetasploit3, python
pip show pymetasploit3; versions through 1.0.6 are affected.console.run_module_with_output() that pass values from user input or other untrusted sources.No fix yet, per the sources.
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.
This page as .md · .json · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
GitHub Advisory Database, CC-BY 4.0 · NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.