{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-87690 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-87690 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-87690 is a high-severity path traversal vulnerability in Rapid7 Metasploit Framework, published on 12 Oct 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-87690 and fix it if it is affected.\n\nWhat it is: CVE-2026-87690 is a high-severity path traversal vulnerability in Rapid7 Metasploit Framework, published on 12 Oct 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-87690 in the wild and no public exploit code.\n\nAffected product: Rapid7 Metasploit Framework. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-87690/ (Markdown: https://insights.sbomify.com/CVE-2026-87690/index.md)","id":"CVE-2026-87690","markdown":"https://insights.sbomify.com/CVE-2026-87690/index.md","name":"CVE-2026-87690","record":{"aliases":["GHSA-663p-9fgr-v7m7"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Metasploit Framework","requires_auth":"none","summary":"A path traversal in the Metasploit iOS gather module allows a malicious device to overwrite operator files, leading to arbitrary code execution on the pentester's workstation.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"rapid7","cpe":[],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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/\u003crandom\u003e 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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-10-20","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-10-20T20:00:09Z","kind":"github_poc","ref":"https://github.com/h00die/CVE-2026-87690-POC-Metasploit-Dir-Traverse-to-RCE","stars":0,"title":"Exploit and writeup for CVE-2026-87690"}],"tier":"poc_unverified"},"has_fix":null,"headline":"Metasploit Framework ios_image_gather Path Traversal Leading to Arbitrary File Write and Code Execution","id":"CVE-2026-87690","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":0,"n_references":4,"next":{"headline":"Windows Management Services Elevation of Privilege Vulnerability","id":"CVE-2026-87691"},"packages":[],"prev":{"headline":"Metasploit Framework Web Service REST API Missing Authentication on Credential Endpoints","id":"CVE-2026-87689"},"products":["Metasploit Framework"],"published":"2026-10-12","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-14","vendors":["Rapid7"]},"summary":"A path traversal in the Metasploit iOS gather module allows a malicious device to overwrite operator files, leading to arbitrary code execution on the pentester's workstation.","url":"https://insights.sbomify.com/CVE-2026-87690/"}