Skip to main content

Metasploit Framework CVE-2026-130336

| EUVDEUVD-2026-134989 HIGH
Eval Injection (CWE-95)
2026-11-25 rapid7 GHSA-36g6-7j9x-g92v
7.5
CVSS 3.1 · Vendor: rapid7
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Operator connects msfconsole to malicious hardware bridge
  2. Exploit
    Bridge returns crafted method_name via /custom_methods
  3. Execution
    Eval injection in load_methods dispatcher
  4. Impact
    Arbitrary Ruby runs in msfconsole process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Eval input sanitization
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the operator's msfconsole to connect to a malicious or compromised hardware bridge that exposes the custom_methods capability; the injected code runs automatically during the custom-methods load on connect, without the operator invoking any custom command. Concrete prerequisites: the attacker must control the /custom_methods endpoint the operator connects to and the HWBridge custom_methods feature must be in use. LIMITING factors: the operator must actively choose to connect to the attacker-controlled bridge (UI:R), the attacker must already hold or subvert that bridge rather than reach the target directly, and only Metasploit Framework versions prior to 6.5.10 are affected (fixed in 6.5.10).

Impact

This is a real but conditional priority, not a mass-exploitation threat. The source diff confirms the mechanism: load_methods built eval("alias cmd_#{cmd} cmd_generic_handler") from a cmd derived from the bridge-supplied method_name, so a hostile /custom_methods reply injects arbitrary Ruby into the msfconsole process - and the description confirms it fires automatically on connect, with no operator command invocation. The supplied CVSS vector (AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H, 7.5) and C:H/I:H/A:H match full code execution in the operator's context. The decisive limiting signal is the trust model: the attacker must already control or have compromised the hardware bridge the operator chooses to connect to (UI:R), which is why real-world exposure is far narrower than the network attack vector suggests. No EPSS score and no KEV entry are provided, and the only references are the fix PR and the 6.5.10 release - no exploit reference is present - so there is no evidence of active or widespread exploitation. The vendor rated AC:H; the diff shows the trigger is deterministic once the bridge is malicious, so the practical barrier is positioning as the trusted bridge rather than any probabilistic trigger condition. Net: patch within the vendor/priority window (Decision label: this_week), but this is not an internet-facing unauthenticated server bug.

Exploit ScenarioDerived

An attacker who controls or has compromised a hardware bridge advertises a crafted method_name through the /custom_methods REST endpoint; when the operator runs hwbridge connect and Metasploit loads the custom methods, the dispatcher evaluates eval("alias cmd_#{cmd} ...") with the attacker-controlled name, executing arbitrary Ruby in the msfconsole process automatically - before the operator runs any custom command. Attack vector is network (bridge REST API) but complexity is tempered by the need for the operator to connect to the rogue bridge (UI:R). No public working exploit is identified; only the fix PR is referenced.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 25, 2026

Code injection in Rapid7 Metasploit Framework before 6.5.10 allows a malicious or compromised hardware bridge to execute arbitrary Ruby code inside the operator's msfconsole process when the operator connects to that bridge. The HWBridge custom_methods dispatcher evaluates the method_name supplied by the bridge's /custom_methods endpoint, so the payload runs automatically during the custom-methods load without the operator invoking any custom command. Exploitation is conditional on the operator connecting to an attacker-controlled bridge that advertises custom_methods; the assessed vector is AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, no public exploit identified at time of analysis, and the vendor fix is 6.5.10.

RemediationAI

Upgrade to Metasploit Framework 6.5.10 or later; the vendor-released patch is PR 22111, and the fixed release is https://github.com/rapid7/metasploit-framework/releases/tag/6.5.10. If upgrading is not immediately possible, the actionable compensating controls are to avoid connecting msfconsole to hardware bridges outside your administrative control and, where custom hardware methods are not required, avoid loading the custom_methods capability; the trade-off is that those bridges or their custom commands become unavailable. These measures reduce exposure but do not remove the eval injection, so applying 6.5.10 is the complete remediation; no separate vendor workaround is documented in the provided references.

Affected VersionsENISA

Metasploit Framework 0 <6.5.10

Affected Packages

euvd metasploit_framework fix: 6.5.10

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The issue sits in Metasploit Framework's HWBridge client, which lets msfconsole interact with hardware bridges over REST-style endpoints. The custom_methods extension reads method definitions from the bridge's /custom_methods reply and registers console command aliases; the vulnerable dispatcher in lib/rex/post/hwbridge/ui/console/command_dispatcher/custom_methods.rb interpolated the trailing path from method_name into an eval("alias cmd_#{cmd} cmd_generic_handler") call. Because the bridge controls method_name, a crafted value can break out of the alias string and run Ruby in the msfconsole process, matching CWE-95 (Eval Injection). The assessed CVSS vector is AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, with UI:R reflecting the operator's action of connecting to the malicious bridge; the CPE cpe:2.3:a:rapid7:metasploit_framework:*:*:*:*:*:*:*:* identifies all Metasploit Framework builds before 6.5.10. PR 22111 hardens the path by allowing only ASCII path segments matching a restricted pattern, rejecting '.' and '..' segments, requiring the final command segment to start with a letter or underscore and contain only letters, digits, and underscores, adding URI encoding for arguments, validating reply shapes, and adding a convert_value helper.

Know when Metasploit Framework gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (rapid7) PRIMARY 7.5 HIGH
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

AV:N via the bridge REST channel and AC:L because the diff shows the eval trigger is deterministic once the bridge is hostile; UI:R captures the operator connecting; C/I/A:H for full code execution.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (rapid7).

CVSS VectorVendor: rapid7

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in the HWBridge custom methods command dispatcher (lib/rex/post/hwbridge/ui/console/command_dispatcher/custom_methods.rb) in Rapid7 Metasploit Framework versions prior to 6.5.10 on all platforms allows a malicious or compromised hardware bridge to execute arbitrary code in the msfconsole process via a crafted method_name returned by the /custom_methods endpoint. The injected code runs automatically when the operator connects to the bridge, without the operator invoking any custom command.

Executive ViewAI

Why It Matters

Rapid7 Metasploit Framework versions before 6.5.10 contain a code injection flaw that allows a compromised hardware bridge to execute arbitrary Ruby code inside the operator's msfconsole session. This puts security teams at risk of full workstation compromise and potential lateral movement within the environment, as exploitation requires only that an operator connect to a malicious bridge. Leadership should prioritize patching because Metasploit is a trusted tool and an attack could undermine incident response capabilities.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 65% exploitable
Prevalence
Medium
widely-used pentest framework, but HWBridge custom-methods feature rarely deployed
Social Media
3
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB Metasploit

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy