PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-87690 Rapid7 CVE debrief

The Metasploit Framework's ios_image_gather module is vulnerable to a path traversal attack, allowing an attacker to write arbitrary files and execute code on the pentester's workstation. This vulnerability exists due to a lack of proper sanitization of file names taken from a Meterpreter directory listing, which can lead to arbitrary file writes and code execution. The ios_image_gather module interpolates file names directly into the local destination path, allowing an attacker to escape the intended loot directory and overwrite sensitive files, such as the msfconsole.rc resource file. This can result in persistent code execution and an interactive shell as the operator on thepent

Vendor
Rapid7
Product
Metasploit Framework
CVSS
HIGH 8.8
CISA KEV
Not listed in stored evidence
Original CVE published
2026-10-12
Original CVE updated
2026-10-12
Advisory published
2026-10-12
Advisory updated
2026-10-12

Who should care

Pentesters and security professionals using the Metasploit Framework should assess their exposure and update to version 6.5.5 or later. They should review and restrict usage of the ios_image_gather module, monitor for suspicious activity on the pentester's workstation, and confirm whether affected product deployments exist in managed environments. Additionally, they should review the supplied official advisory or CVE record to validate affected scope, and

Why it matters

The vulnerability allows an attacker to write arbitrary files and execute code on the pentester's workstation, potentially leading to persistent code execution and an interactive shell.

  • Arbitrary file write and code execution on the pentester's workstation
  • Persistent code execution and interactive shell as the operator

Technical summary

The ios_image_gather module in the Metasploit Framework is vulnerable to a path traversal attack. An attacker can exploit this vulnerability to write arbitrary files and execute code on the pentester's workstation. The module interpolates file names taken from a Meterpreter directory listing directly into the local destination path passed to client.fs.file.download_file(), with no sanitization. This allows an attacker to escape the intended ~/.msf4/loot/<random> directory and overwrite sensitive files, such as ~/.msf4/msfconsole.rc, a resource file that every msfconsole invocation automatically executes at startup.

Defensive priority

High

Recommended defensive actions

  • Update Metasploit Framework to version 6.5.5 or later
  • Review and restrict usage of the ios_image_gather module
  • Monitor for suspicious activity on the pentester's workstation
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
  • Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review

Evidence notes

The vulnerability exists in the ios_image_gather module of the Metasploit Framework. The module fails to properly sanitize file names taken from a Meterpreter directory listing, allowing an attacker to write arbitrary files and execute code on the pentester's workstation. The ios_image_gather module interpolates file names directly into the local destination path, passing it to client.fs.file.download_file() without validation. This can lead to arbitrary file writes and code execution, potentially resulting in persistent code

Sources and references

Verified primary and authoritative sources

  • CVE-2026-87690 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-87690

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-87690 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-87690

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Metasploit Framework ios_image_gather Path Traversal Leading to Arbitrary File Write and Code Ex

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/87xxx/CVE-2026-87690.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/rapid7/metasploit-framework/releases/tag/6.5.5

    Supplemental source - release-notes, patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/rapid7/metasploit-framework/pull/21880

    Supplemental source - patch, issue-tracking

  • Source reference

    Unverified legacy reference

    URL: https://www.rapid7.com/blog/post/pt-metasploit-wrap-up-belgian-waffles-chocolates-and-modules-frites/

    Supplemental source - vendor-advisory, technical-description

  • Source reference

    Unverified legacy reference

    URL: https://github.com/rapid7/metasploit-framework

    Supplemental source - product

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.