# CVE-2026-130336: Eval injection in Metasploit Framework HWBridge custom method names

Status: published. Published: 2026-11-25. Updated: 2026-11-25.

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.

## Remediation

- fix: Upgrade to Metasploit Framework 6.5.10 or later. (source: CNA: rapid7)
- workaround: Until upgraded, only connect msfconsole to hardware bridges that you control and trust. (source: CNA: rapid7)
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: rapid7) — https://github.com/rapid7/metasploit-framework/pull/22111

## Affected products and versions

- Rapid7 / Metasploit Framework (metasploit-framework): ≥ 0; < 6.5.10 (affected, semver); 6.5.10 (unaffected, semver). Source: CNA: rapid7; platforms: All

## Severity and prioritization

- CVSS 3.1: 7.5 (high); CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H; source: CNA: rapid7

- CVSS 3.1: 7.5 (high); CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H; source: NVD: cve@rapid7.com

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-95

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/rapid7/metasploit-framework/pull/22111 (CNA: rapid7; patch)

- https://github.com/rapid7/metasploit-framework/releases/tag/6.5.10 (CNA: rapid7; release-notes)

- https://github.com/rapid7/metasploit-framework/pull/22111 (cve@rapid7.com)

- https://github.com/rapid7/metasploit-framework/releases/tag/6.5.10 (cve@rapid7.com)

## Provenance

- CNA: rapid7: https://www.cve.org/CVERecord?id=CVE-2026-130336; retrieved 2026-11-25; source updated 2026-11-25

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-130336; retrieved 2026-11-25; source updated 2026-11-25

Revision: ceb7fcce8002cbd342490612b10b83b6bb6bd26f3bf68ee2de32a18b9be4482f

Canonical: https://y2.dev/cve/CVE-2026-130336

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.