Pymetasploit3Application · Danmcinerney

CVE-2026-5463

CRITICAL · 9.8 CVSS v3.1 Published 2026-04-03
Fix available
A fix is available. Upgrade to after 1.0.6 or later.
See remediation →
100/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Command injection vulnerability in pymetasploit3 library's console.run_module_with_output() function allows attackers to inject newline characters into module options such as RHOSTS. These newlines break the intended command structure, causing the Metasploit console to execute additional unintended commands beyond the original module execution, potentially leading to arbitrary command execution and session manipulation.

MitigationImplement input validation to filter or escape newline characters (\n, \r) from user-supplied module options before passing them to the Metasploit console, or upgrade to a patched version of pymetasploit3 after v1.0.6.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Pymetasploit3Application
Affected:<= 1.0.6

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check if pymetasploit3 is installed
    Run 'pip show pymetasploit3' or check your Python environment's installed packages for 'pymetasploit3'
    Affected if pymetasploit3 is installed and its version is 1.0.6 or lower
  2. Verify the installed version
    Compare the installed pymetasploit3 version against the affected range: <= 1.0.6
    Affected if The installed version is 1.0.6 or any lower version number
  3. Identify use of console.run_module_with_output()
    Search your codebase for calls to pymetasploit3's console.run_module_with_output() method, particularly in automation scripts or APIs that process user input
    Affected if Your code uses this method to run Metasploit modules
  4. Inspect module option handling for RHOSTS or similar parameters
    Review how module options like RHOSTS, LHOST, or other options are passed to run_module_with_output(); examine whether external input flows directly into these options without validation
    Affected if Module options accept raw user input or untrusted data without filtering newlines or control characters
  5. Check for input sanitization on module options
    Review the code that builds or passes options to run_module_with_output(); look for absence of filtering or escaping of newline characters before passing options to the Metasploit console
    Affected if Newline and control character filtering is not implemented on module option inputs
  6. Audit usage patterns for multi-command injection risk
    Examine logs or runtime behavior when module options contain newline characters; verify whether the Metasploit console interprets newlines as command separators
    Affected if Newlines in module options are not rejected and are passed through to the Metasploit console

You are affected if pymetasploit3 version 1.0.6 or lower is installed AND your code passes untrusted input to module options (like RHOSTS) via console.run_module_with_output() without filtering newline characters.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to a release after 1.0.6
Interim mitigation

Implement input validation to filter or escape newline characters (\n, \r) from user-supplied module options before passing them to the Metasploit console, or upgrade to a patched version of pymetasploit3 after v1.0.6.

Recommended fix Moderate confidence

pymetasploit3 version greater than 1.0.6 (check GitHub releases or PyPI for the specific fixed release)

  1. Check the current installed version of pymetasploit3 using: pip show pymetasploit3
  2. Verify the vulnerability exists by examining the console.run_module_with_output() method in the library
  3. Consult the official pymetasploit3 repository on GitHub (github.com) and PyPI (pymeta.org) to identify the latest stable release that addresses this command injection vulnerability
  4. Upgrade to the fixed version using: pip install --upgrade pymetasploit3
  5. After upgrading, validate that the new version properly sanitizes newline characters in module options like RHOSTS
  6. Test that module execution still functions correctly with valid inputs
Caveat Review release notes for any breaking changes between 1.0.6 and the fixed version before upgrading

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Pymetasploit3 Scoped from the published advisory
  • Consultation3.0 h
  • Implementation4.0 h
  • Testing5.0 h
  • Review / QA2.0 h
14.0 hours of engineering $2,430
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,888.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-5463 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-5463 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data