Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-87690— Metasploit Framework ios_image_gather Path Traversal Leading to Arbitrary File Write and Code Execution

Quick assessment

Affected
Rapid7 Metasploit Framework
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Metasploit Framework 的后置模块 存在相对路径遍历漏洞(CWE-22)。该模块将来自 Meterpreter 目录列表的文件名——这些数据完全由恶意或已被篡改的 iOS 设备控制——未经任何 sanitization(净化/过滤)直接插入到传递给 的本地目标路径中。底层的 stdapi 组件(位于 )会将文件写入所提供路径的任意位置。因此,如果目录列表条目中包含如 这样的内容,就能跳出预期的 目录,覆盖 文件。而 是一个资源文件,每次启动 msfconsole 时都会自动执行(参见 )。 攻击者

CVSS 8.8 · High EPSS 0.41% · P33

Affected Version Matrix 2

VendorProduct Version RangeStatus
Rapid7 Metasploit Framework < 6.5.5 affected
6.5.5 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-87690

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Metasploit Framework ios_image_gather Path Traversal Leading to Arbitrary File Write and Code Execution
Source: CVE Program / CVE List V5
Vulnerability Description
The Metasploit Framework post module post/apple_ios/gather/ios_image_gather is affected by a relative path traversal vulnerability (CWE-22). The module interpolates file names taken from a Meterpreter directory listing — data fully controlled by a hostile or tampered iOS device — directly into the local destination path passed to client.fs.file.download_file(), with no sanitization. The underlying stdapi sink (lib/rex/post/meterpreter/extensions/stdapi/fs/file.rb) writes to whatever path is supplied, so a listing entry such as ../../msfconsole.rc escapes the intended ~/.msf4/loot/<random> directory and overwrites ~/.msf4/msfconsole.rc, a resource file that every msfconsole invocation automatically executes at startup (lib/msf/ui/console/driver.rb:196). An attacker-controlled device that lures an operator into running this gather module achieves an arbitrary file write as the operator; because the written msfconsole.rc can load a second written file (a Ruby plugin whose top-level code runs on require), this converts into persistent code execution and an interactive shell as the operator (frequently root) on the pentester's workstation at the next console launch. The same traversal was previously fixed upstream in the recursive downloader (stdapi/fs/dir.rb scrubs separators); this module omitted the equivalent scrub. The fix applies the same separator scrub (or File.basename) to listing entries before building the local path.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
Rapid7 Metasploit Framework 0 ~ 6.5.5 -

II. Public POCs for CVE-2026-87690

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-87690

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-87690 (1)

Proof of Concept for CVE-2026-87690 (2)

Other References for CVE-2026-87690 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-87690

No comments yet


Leave a comment