Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessOperator connects msfconsole to malicious hardware bridge
-
ExploitBridge returns crafted method_name via /custom_methods
-
ExecutionEval injection in load_methods dispatcher
-
ImpactArbitrary 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 |
| Impact | This is a real but conditional priority, not a mass-exploitation threat. The source diff confirms the mechanism: |
| Exploit ScenarioDerived | An attacker who controls or has compromised a hardware bridge advertises a crafted |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (rapid7).
CVSS VectorVendor: rapid7
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
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.
More in Metasploit Framework
View allUnauthenticated read, modification, and permanent deletion of stored credential records in Rapid7 Metasploit Framework t
Missing authentication in the Rapid7 Metasploit Framework msf-ws REST API lets an unauthenticated caller create a user -
Quadratic CPU consumption in the Rex HTTP request normalizer of Rapid7 Metasploit Framework allows remote unauthenticate
Unauthenticated local access to Metasploit Framework's JSON-RPC dispatcher is possible via a fail-open logic flaw (CWE-3
EUVD-2026-134989
GHSA-36g6-7j9x-g92v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB