# CVE-2026-5463: pymetasploit3 - Command Injection via Newline Injection in console.run_module_with_output()

- Severity: Critical 9.3 (CVSS:4.0, scored by TuranSec) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:L/SC:L/SI:H/SA:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.40%, higher than 84% of CVEs (2026-12-01)
- Published: 2026-04-03T04:32:23.872Z
- Modified: 2026-11-16T16:15:07.543Z
- Also known as: GHSA-qpc3-8vqg-8g6w, PYSEC-2026-500
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: TuranSec

## 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.

(As written by CVE List.)

## Affected

- pymetasploit3: up to 1.0.6
- pymetasploit3 (PyPI): up to 1.0.6
- danmcinerney pymetasploit3: up to 1.0.6

## Every score

- TuranSec: CVSS:4.0 9.3 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:L/SC:L/SI:H/SA:L`
- TuranSec: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L`
- TuranSec: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`
- GitHub: CVSS:3.1 8.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:L/SC:L/SI:H/SA:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:L/SC:L/SI:H/SA:L`

## References

- <https://github.com/DanMcInerney/pymetasploit3> (package, product, third-party-advisory)
- <https://pypi.org/project/pymetasploit3/> (product, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-5463> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pymetasploit3/PYSEC-2026-500.yaml> (web)
- <https://pypi.org/project/pymetasploit3> (web)
- <https://github.com/advisories/GHSA-qpc3-8vqg-8g6w> (advisory)

## Sources

- CVE List: [CVE-2026-5463](https://www.cve.org/CVERecord?id=CVE-2026-5463), CVE Terms of Use, modified 2026-08-10
- GitHub Advisory Database: [GHSA-qpc3-8vqg-8g6w](https://github.com/advisories/GHSA-qpc3-8vqg-8g6w), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2026-5463](https://nvd.nist.gov/vuln/detail/CVE-2026-5463), Public domain, modified 2026-07-24
- PyPA Advisory Database: [PYSEC-2026-500](https://osv.dev/vulnerability/PYSEC-2026-500), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2026-5463 · Whole record: https://cve.day/CVE-2026-5463.json · Rebuilt by cve.day 2026-11-25T22:59:17.858Z
