Advisory

GHSA-qpc3-8vqg-8g6w

Also known as: CVE-2026-5463, PYSEC-2026-500

Summary

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-04-03 06:31 UTC
Modified
2026-11-16 16:15 UTC

Affected packages and fixes

pymetasploit3

PyPI · All systems

Affected

  • introduced 0, last affected 1.0.6 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences