{"id":"CVE-2026-5463","kind":"vulnerability","aliases":["CVE-2026-5463","GHSA-qpc3-8vqg-8g6w"],"related":[],"title":"pymetasploit3 vulnerable to command injection in console.run_module_with_output()","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.","summary":"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.","severity":"critical","cvss":9.8,"epss":0.02152,"exploited":false,"exploited_at":null,"products":[{"name":"pymetasploit3","fixed":[],"affected":"<= 1.0.6","ecosystem":"pypi"},{"name":"danmcinerney pymetasploit3","fixed":[],"affected":"<= 1.0.6","ecosystem":"vendor"}],"ecosystems":["pypi","vendor"],"tags":["cwe-77","metasploit","package","pymetasploit3","python"],"not_affected_if":["fixed-input-only"],"how_to_check":"- Check the installed version with `pip show pymetasploit3`; versions through `1.0.6` are affected.\n- Search your code for calls to `console.run_module_with_output()` that pass values from user input or other untrusted sources.","fix":null,"status":"open","published_at":"2026-04-03T05:16:24+00:00","first_seen_at":"2026-11-16T16:03:22+00:00","triaged_at":"2026-11-16T16:04:49+00:00","updated_at":"2026-11-16T16:08:50+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-11-16T16:04:49Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"unknown","title":"pymetasploit3: newline injection in module options runs extra Metasploit commands","impact":"high","summary":"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.","audience":"developers","category":"package","nicknames":[],"who_cares":["python","pymetasploit3","metasploit"],"confidence":0.6,"fix_status":"unknown","needs_auth":"unknown","worst_case":"attacker runs arbitrary commands through the Metasploit console","analyst_note":"Confirm the fixed version and whether the advisory GHSA-qpc3-8vqg-8g6w names one; sources list no fixed version.","how_to_check":"- Check the installed version with `pip show pymetasploit3`; versions through `1.0.6` are affected.\n- Search your code for calls to `console.run_module_with_output()` that pass values from user input or other untrusted sources.","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["fixed-input-only"],"who_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.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"critical"},"cost_usd":0.000741,"input_tokens":4627,"output_tokens":557,"severity_before":"critical"},"analyst_status":"queued","analyst_note":"Confirm the fixed version and whether the advisory GHSA-qpc3-8vqg-8g6w names one; sources list no fixed version.","search":"'-2026':12A,20A '-5463':13A,21A '-77':26B '1.0.6':86C '8g6w':18A '8vqg':17A 'add':58B 'addit':112C 'allow':87C 'arbitrari':66B,118C 'attack':52B,88C 'break':100C 'caus':106C 'charact':44B,92C 'client':34B 'command':4A,61B,67B,74C,103C,114C,119C 'consol':39B,60B,109C 'console.run':7A,78C 'control':54B,70B 'cve':11A,19A 'cwe':25B 'danmcinerney':23A 'execut':68B,111C,120C 'extra':59B 'ghsa':15A 'ghsa-qpc3-8vqg-8g6w':14A 'inject':5A,75C,90C 'intend':102C 'lead':64B,116C 'manipul':122C 'metasploit':27B,37B,72B,108C,124C 'modul':8A,46B,79C,94C 'newlin':43B,91C 'option':47B,95C 'output':10A,81C 'packag':28B 'potenti':115C 'pymetasploit3':1A,22A,24A,29B,31B,83C 'python':30B,33B 'qpc3':16A 'rhost':50B,98C 'rpc':38B 'session':73B,125C 'stop':42B 'structur':104C 'unintend':113C 'valu':56B 'version':85C 'vulner':2A,76C","nicknames":[],"mitigations":[],"who_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.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"none","audience":"developers","plain_action":null,"pkeys":["danmcinerneypymetasploit3","pymetasploit3"],"ptokens":["danmcinerney","pymetasploit3"],"labels":["critical","cwe77","metasploit","package","pymetasploit3","pypi","python","vendor"],"campaign_type":null,"search_a":"'-2026':12A,20A '-5463':13A,21A '8g6w':18A '8vqg':17A 'command':4A 'console.run':7A 'cve':11A,19A 'danmcinerney':23A 'ghsa':15A 'ghsa-qpc3-8vqg-8g6w':14A 'inject':5A 'modul':8A 'output':10A 'pymetasploit3':1A,22A,24A 'qpc3':16A 'vulner':2A","search_b":"'-77':26B 'add':58B 'arbitrari':66B 'attack':52B 'charact':44B 'client':34B 'command':61B,67B 'consol':39B,60B 'control':54B,70B 'cwe':25B 'execut':68B 'extra':59B 'lead':64B 'metasploit':27B,37B,72B 'modul':46B 'newlin':43B 'option':47B 'packag':28B 'pymetasploit3':29B,31B 'python':30B,33B 'rhost':50B 'rpc':38B 'session':73B 'stop':42B 'valu':56B","search_c":"'1.0.6':86C 'addit':112C 'allow':87C 'arbitrari':118C 'attack':88C 'break':100C 'caus':106C 'charact':92C 'command':74C,103C,114C,119C 'consol':109C 'console.run':78C 'execut':111C,120C 'inject':75C,90C 'intend':102C 'lead':116C 'manipul':122C 'metasploit':108C,124C 'modul':79C,94C 'newlin':91C 'option':95C 'output':81C 'potenti':115C 'pymetasploit3':83C 'rhost':98C 'session':125C 'structur':104C 'unintend':113C 'version':85C 'vulner':76C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-04-03T05:16:24+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-qpc3-8vqg-8g6w","url":"https://github.com/advisories/GHSA-qpc3-8vqg-8g6w","severity":"critical","published_at":"2026-04-03T06:31:33+00:00","modified_at":"2026-11-16T16:01:50+00:00","first_seen_at":"2026-11-16T16:03:22+00:00","fetched_at":"2026-11-16T16:07:02+00:00","note":null},{"source":"nvd","external_id":"CVE-2026-5463","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5463","severity":null,"published_at":"2026-04-03T05:16:24+00:00","modified_at":"2026-07-24T20:10:00+00:00","first_seen_at":"2026-11-16T16:08:50+00:00","fetched_at":"2026-11-16T16:08:50+00:00","note":null}],"documents":[],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.02152,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-5463"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}