Skip to main content
Vulnerability Database/CVE-2026-109682

CVE-2026-109682: Metasploit Framework SSRF Vulnerability

CVE-2026-109682 is a server-side request forgery flaw in Metasploit Framework before version 6.5.7 that enables attackers to exploit redirect handling and access internal network services. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-109682 Overview

CVE-2026-109682 is a Server-Side Request Forgery (SSRF) vulnerability [CWE-918] in the Metasploit Framework. Versions before 6.5.7 allow HTTP requests made through the send_request_cgi! method to follow redirects to arbitrary hosts without destination validation. A malicious HTTP server can redirect the operator's Metasploit instance toward internal services reachable from the operator's network. This exposes internal assets that attackers cannot otherwise access directly.

Critical Impact

An attacker-controlled HTTP endpoint can pivot requests from a Metasploit operator's host to internal infrastructure, enabling reconnaissance or interaction with services not exposed to the public internet.

Affected Products

  • Rapid7 Metasploit Framework versions prior to 6.5.7

Discovery Timeline

  • 2026-10-21 - CVE-2026-109682 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-109682

Vulnerability Analysis

The flaw resides in the HTTP client logic exposed by send_request_cgi!, a helper used throughout Metasploit modules for issuing HTTP requests. When the destination server returns an HTTP redirect response (3xx), the helper follows the Location header without validating that the new target matches the originally requested host. An operator pointing a module at an untrusted URL therefore cedes control over the request destination to the remote server. The redirect can traverse into private IP ranges, loopback interfaces, or cloud metadata endpoints reachable from the Metasploit host.

Root Cause

The root cause is missing destination-host enforcement during redirect handling in the send_request_cgi! code path. The HTTP client treated redirects as transparent follow operations rather than security-sensitive transitions requiring policy checks. No allowlist, origin comparison, or protocol restriction was applied before issuing the follow-up request.

Attack Vector

Exploitation requires an operator to interact with an attacker-controlled HTTP service through a Metasploit module. The remote server responds with a redirect (for example, HTTP 302) whose Location header targets an internal resource such as http://127.0.0.1:8080/admin or a cloud metadata endpoint like http://169.254.169.254/. Metasploit then issues the follow-up request from the operator's network context, returning response data or side effects to the attacker. See the Metasploit Framework Pull Request #21979 for the technical fix.

Detection Methods for CVE-2026-109682

Indicators of Compromise

  • Outbound HTTP responses containing Location headers that reference private IPv4 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) or link-local addresses such as 169.254.169.254.
  • Unexpected HTTP traffic from Metasploit operator hosts targeting internal management interfaces or cloud metadata services shortly after module execution.

Detection Strategies

  • Inspect proxy and firewall logs for cross-host redirect chains originating from systems running Metasploit Framework versions earlier than 6.5.7.
  • Correlate module execution timestamps with subsequent connections to internal subnets that are not expected destinations for red-team tooling.

Monitoring Recommendations

  • Monitor egress traffic from penetration testing workstations and segment them from production management networks.
  • Alert on any outbound HTTP flow followed by a request to RFC1918 space or cloud instance metadata endpoints within the same session.

How to Mitigate CVE-2026-109682

Immediate Actions Required

  • Upgrade Metasploit Framework to version 6.5.7 or later on all operator systems.
  • Audit recent engagements that used modules relying on send_request_cgi! against untrusted targets to assess potential internal exposure.

Patch Information

Rapid7 addressed the issue in Metasploit Framework 6.5.7 by restricting redirect targets in the send_request_cgi! HTTP client path. Review the upstream fix in Metasploit Pull Request #21979.

Workarounds

  • Run Metasploit from network segments that cannot reach sensitive internal services or cloud metadata endpoints.
  • Route Metasploit outbound traffic through an egress proxy that denies requests to RFC1918, loopback, and link-local destinations.
bash
# Upgrade Metasploit Framework to a fixed version
cd /opt/metasploit-framework
git fetch --tags
git checkout 6.5.7
bundle install
./msfconsole -v

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.