{"id":"CVE-2026-87690","revision":null,"records":[{"revision":"3ed6ae952adf4b7a955c819b84da6aa9","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-87690","aliases":[],"title":"Metasploit Framework ios_image_gather Path Traversal Leading to Arbitrary File Write and Code Execution","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.","state":0,"publishedAt":"2026-10-12T04:50:56.02+00:00","modifiedAt":"2026-10-14T10:51:07.965+00:00","affected":[{"ecosystem":"Vendor product","name":"Metasploit Framework","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Rapid7\",\n                    \"product\": \"Metasploit Framework\",\n                    \"platforms\": [\n                        \"Linux\",\n                        \"Windows\",\n                        \"macOS\"\n                    ],\n                    \"repo\": \"https://github.com/rapid7/metasploit-framework\",\n                    \"modules\": [\n                        \"post/apple_ios/gather/ios_image_gather\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.5.5\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"status\": \"unaffected\",\n                            \"version\": \"6.5.5\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"severity":"HIGH"}],"references":["https://github.com/rapid7/metasploit-framework/releases/tag/6.5.5","https://github.com/rapid7/metasploit-framework/pull/21880","https://www.rapid7.com/blog/post/pt-metasploit-wrap-up-belgian-waffles-chocolates-and-modules-frites/","https://github.com/rapid7/metasploit-framework"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-87690","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-87690","identifiers":["CVE-2026-87690"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-10T04:04:18.1997683+00:00","complete":true,"records":1773,"lastAttemptAt":"2026-11-10T04:04:18.1997683+00:00","lastSuccessAt":"2026-11-10T04:04:18.3995607+00:00","error":null,"lastVerifiedAt":"2026-11-10T04:04:18.3995615+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-8859cf40d4337e24bd2f258cc7778fbad01bb24c79d057aaf34cf1dfc6f8917d-81377d708f64394c8eb9b62eea2364ac8dfdeb35ef3610cd5a031d185fc8d86c","complete":true,"records":421867,"lastAttemptAt":"2026-11-10T04:02:14.3050104+00:00","lastSuccessAt":"2026-11-10T04:02:14.2925615+00:00","error":null,"lastVerifiedAt":"2026-11-10T04:02:14.3050104+00:00","snapshotPublishedAt":"2026-11-10T03:29:16+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-a6dc967b5ceb4c488191e8f172ded5d6","complete":true,"records":13689,"lastAttemptAt":"2026-11-10T04:04:46.1001793+00:00","lastSuccessAt":"2026-11-10T03:04:49.903+00:00","error":null,"lastVerifiedAt":"2026-11-10T03:04:49.903+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13742,"expectedIdentifiers":13742,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-10T04:04:18.1997683+00:00","complete":true,"records":1096,"lastAttemptAt":"2026-11-10T04:04:18.1997683+00:00","lastSuccessAt":"2026-11-10T04:04:18.4004514+00:00","error":null,"lastVerifiedAt":"2026-11-10T04:04:18.4004518+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-f1b5e07abe344673a8a286f3a893260c","complete":true,"records":13695,"lastAttemptAt":"2026-11-10T04:04:45.5033554+00:00","lastSuccessAt":"2026-11-10T04:04:45.5+00:00","error":null,"lastVerifiedAt":"2026-11-10T04:04:45.5+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13742,"expectedIdentifiers":13742,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-cdffb4589856378aa42e8d1bd4a6c74e27a180d8160bf764c44715ef760f0a62","complete":true,"records":9932,"lastAttemptAt":"2026-11-10T04:04:18.0453993+00:00","lastSuccessAt":"2026-11-10T00:04:19.8260565+00:00","error":null,"lastVerifiedAt":"2026-11-10T04:04:18.0453993+00:00","snapshotPublishedAt":"2026-11-09T23:48:01+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-26503967ae4379db8f374089589d6e03fb15bd31f820c9e992aaf93840c2236c","complete":true,"records":1971,"lastAttemptAt":"2026-11-10T04:02:14.457245+00:00","lastSuccessAt":"2026-11-09T21:02:20.472473+00:00","error":null,"lastVerifiedAt":"2026-11-10T04:02:14.457245+00:00","snapshotPublishedAt":"2026-11-09T20:18:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-761ecc9061239b0da572dc9254c6f384c1d19339eb08408c436647a2f26129e9","complete":true,"records":3064,"lastAttemptAt":"2026-11-10T04:04:18.158124+00:00","lastSuccessAt":"2026-11-09T17:05:03.4044794+00:00","error":null,"lastVerifiedAt":"2026-11-10T04:04:18.158124+00:00","snapshotPublishedAt":"2026-11-09T16:33:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-b6d0179d32e97744f004c83c309b7506438ee50743f2ae97e00ea061ef80ca4a","complete":true,"records":231582,"lastAttemptAt":"2026-11-10T04:04:16.4553373+00:00","lastSuccessAt":"2026-11-10T04:04:14.8073774+00:00","error":null,"lastVerifiedAt":"2026-11-10T04:04:16.4553373+00:00","snapshotPublishedAt":"2026-11-10T03:33:17+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}