CVE-2026-130336: Eval injection in Metasploit Framework HWBridge custom method names
Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in the HWBridge custom methods command dispatcher (lib/rex/post/hwbridge/ui/console/commanddispatcher/custommethods.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 methodname returned by the /custommethods endpoint. The injected code runs automatically when the operator connects to the bridge, without the operator invoking any custom command.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Metasploit Frameworkto a version that resolves this vulnerability.Fixed in 6.5.10
Event History
Frequently Asked Questions
Who is exposed to this issue?
Operators using Metasploit Framework versions earlier than 6.5.10 are exposed when they connect msfconsole to a malicious or compromised hardware bridge. The issue affects all platforms.
Does exploitation require the operator to run a custom hardware-bridge command?
No. The injected code runs automatically in the msfconsole process when the operator connects to the bridge; no custom command needs to be invoked.
What access does an attacker need to exploit this?
An attacker needs control of, or the ability to compromise, a hardware bridge so it can return a crafted method_name from the /custom_methods endpoint. Exploitation also requires an operator to connect to that bridge.
What version addresses the issue?
Upgrade Metasploit Framework to version 6.5.10 or later. Versions prior to 6.5.10 are affected.