CVE-2026-130336Eval 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/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.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by rapid7, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Rapid7 Metasploit Framework: affected: before 6.5.10, 6.5.10 not affected; fixed in
6.5.10
Solution: Upgrade to Metasploit Framework 6.5.10 or later.
Workaround: Until upgraded, only connect msfconsole to hardware bridges that you control and trust.
Vendor advisories:
- https://github.com/rapid7/metasploit-framework/pull/22111 (patch)
- https://github.com/rapid7/metasploit-framework/releases/tag/6.5.10 (release-notes)
References
- https://github.com/rapid7/metasploit-framework/pull/22111
- https://github.com/rapid7/metasploit-framework/releases/tag/6.5.10
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.