CVE-2026-87690 (GCVE-0-2026-87690)
Vulnerability from cvelistv5
Published
2026-10-12 04:50
Modified
2026-10-14 10:51
Severity ?
VLAI Severity ?
EPSS score ?
CWE
- CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Summary
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.
References
| URL | Tags | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||
Impacted products
| Vendor | Product | Version | ||
|---|---|---|---|---|
| Rapid7 | Metasploit Framework |
Version: 0 ≤ |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-87690",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-10-14T03:59:41.118219Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-10-14T10:51:07.965Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"modules": [
"post/apple_ios/gather/ios_image_gather"
],
"platforms": [
"Linux",
"Windows",
"macOS"
],
"product": "Metasploit Framework",
"repo": "https://github.com/rapid7/metasploit-framework",
"vendor": "Rapid7",
"versions": [
{
"lessThan": "6.5.5",
"status": "affected",
"version": "0",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.5.5",
"versionType": "semver"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "h00die"
}
],
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe 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 \u2014 data fully controlled by a hostile or tampered iOS device \u2014 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/\u0026lt;random\u0026gt; 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\u0027s 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.\u003c/p\u003e"
}
],
"value": "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 \u2014 data fully controlled by a hostile or tampered iOS device \u2014 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\u0027s 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."
}
],
"impacts": [
{
"descriptions": [
{
"lang": "en",
"value": "A device under attacker control serves a crafted Meterpreter directory listing that causes the ios_image_gather module to write files outside the intended loot directory, overwriting the operator\u0027s ~/.msf4/msfconsole.rc. On the next msfconsole launch the planted resource file and Ruby plugin execute as the operator (frequently root), yielding persistent code execution on the pentester\u0027s workstation and exposure of engagement credentials, keys, loot, and active sessions into the client environment."
}
]
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-22",
"description": "CWE-22 Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-10-12T04:50:56.020Z",
"orgId": "9974b330-7714-4307-a722-5648477acda7",
"shortName": "rapid7"
},
"references": [
{
"name": "Metasploit Framework 6.5.5 Release Notes",
"tags": [
"release-notes",
"patch"
],
"url": "https://github.com/rapid7/metasploit-framework/releases/tag/6.5.5"
},
{
"name": "Metasploit Framework PR #21880 (fix for ios_image_gather path traversal)",
"tags": [
"patch",
"issue-tracking"
],
"url": "https://github.com/rapid7/metasploit-framework/pull/21880"
},
{
"name": "Metasploit Wrap-Up: Belgian Waffles, Chocolates, and Modules Frites",
"tags": [
"vendor-advisory",
"technical-description"
],
"url": "https://www.rapid7.com/blog/post/pt-metasploit-wrap-up-belgian-waffles-chocolates-and-modules-frites/"
},
{
"name": "Metasploit Framework source repository",
"tags": [
"product"
],
"url": "https://github.com/rapid7/metasploit-framework"
}
],
"solutions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "https://github.com/rapid7/metasploit-framework/releases/tag/6.5.5"
}
],
"value": "https://github.com/rapid7/metasploit-framework/releases/tag/6.5.5"
}
],
"source": {
"discovery": "EXTERNAL"
},
"timeline": [
{
"lang": "en",
"time": "2026-08-27T10:45:00.000Z",
"value": "Vulnerability reported to Rapid7"
},
{
"lang": "en",
"time": "2026-09-02T00:54:00.000Z",
"value": "Rapid7 acknowledged receipt and forwarded to the Metasploit team"
},
{
"lang": "en",
"time": "2026-09-10T03:22:00.000Z",
"value": "Vulnerability confirmed legitimate; CVE-2026-87690 reserved"
},
{
"lang": "en",
"time": "2026-09-23T04:42:00.000Z",
"value": "Fix released in Metasploit Framework 6.5.5"
}
],
"title": "Metasploit Framework ios_image_gather Path Traversal Leading to Arbitrary File Write and Code Execution",
"x_generator": {
"engine": "Rapid7 Vulnerability Disclosure Program"
}
}
},
"cveMetadata": {
"assignerOrgId": "9974b330-7714-4307-a722-5648477acda7",
"assignerShortName": "rapid7",
"cveId": "CVE-2026-87690",
"datePublished": "2026-10-12T04:50:56.020Z",
"dateReserved": "2026-09-08T23:15:36.929Z",
"dateUpdated": "2026-10-14T10:51:07.965Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"vulnrichment": {
"containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2026-87690\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-10-14T03:59:41.118219Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2026-10-14T10:41:52.959Z\"}}], \"cna\": {\"title\": \"Metasploit Framework ios_image_gather Path Traversal Leading to Arbitrary File Write and Code Execution\", \"source\": {\"discovery\": \"EXTERNAL\"}, \"credits\": [{\"lang\": \"en\", \"type\": \"finder\", \"value\": \"h00die\"}], \"impacts\": [{\"descriptions\": [{\"lang\": \"en\", \"value\": \"A device under attacker control serves a crafted Meterpreter directory listing that causes the ios_image_gather module to write files outside the intended loot directory, overwriting the operator\u0027s ~/.msf4/msfconsole.rc. On the next msfconsole launch the planted resource file and Ruby plugin execute as the operator (frequently root), yielding persistent code execution on the pentester\u0027s workstation and exposure of engagement credentials, keys, loot, and active sessions into the client environment.\"}]}], \"metrics\": [{\"format\": \"CVSS\", \"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 8.8, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H\", \"integrityImpact\": \"HIGH\", \"userInteraction\": \"REQUIRED\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"NONE\", \"confidentialityImpact\": \"HIGH\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"GENERAL\"}]}], \"affected\": [{\"repo\": \"https://github.com/rapid7/metasploit-framework\", \"vendor\": \"Rapid7\", \"modules\": [\"post/apple_ios/gather/ios_image_gather\"], \"product\": \"Metasploit Framework\", \"versions\": [{\"status\": \"affected\", \"version\": \"0\", \"lessThan\": \"6.5.5\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.5.5\", \"versionType\": \"semver\"}], \"platforms\": [\"Linux\", \"Windows\", \"macOS\"], \"defaultStatus\": \"unaffected\"}], \"timeline\": [{\"lang\": \"en\", \"time\": \"2026-08-27T10:45:00.000Z\", \"value\": \"Vulnerability reported to Rapid7\"}, {\"lang\": \"en\", \"time\": \"2026-09-02T00:54:00.000Z\", \"value\": \"Rapid7 acknowledged receipt and forwarded to the Metasploit team\"}, {\"lang\": \"en\", \"time\": \"2026-09-10T03:22:00.000Z\", \"value\": \"Vulnerability confirmed legitimate; CVE-2026-87690 reserved\"}, {\"lang\": \"en\", \"time\": \"2026-09-23T04:42:00.000Z\", \"value\": \"Fix released in Metasploit Framework 6.5.5\"}], \"solutions\": [{\"lang\": \"en\", \"value\": \"https://github.com/rapid7/metasploit-framework/releases/tag/6.5.5\", \"supportingMedia\": [{\"type\": \"text/html\", \"value\": \"https://github.com/rapid7/metasploit-framework/releases/tag/6.5.5\", \"base64\": false}]}], \"references\": [{\"url\": \"https://github.com/rapid7/metasploit-framework/releases/tag/6.5.5\", \"name\": \"Metasploit Framework 6.5.5 Release Notes\", \"tags\": [\"release-notes\", \"patch\"]}, {\"url\": \"https://github.com/rapid7/metasploit-framework/pull/21880\", \"name\": \"Metasploit Framework PR #21880 (fix for ios_image_gather path traversal)\", \"tags\": [\"patch\", \"issue-tracking\"]}, {\"url\": \"https://www.rapid7.com/blog/post/pt-metasploit-wrap-up-belgian-waffles-chocolates-and-modules-frites/\", \"name\": \"Metasploit Wrap-Up: Belgian Waffles, Chocolates, and Modules Frites\", \"tags\": [\"vendor-advisory\", \"technical-description\"]}, {\"url\": \"https://github.com/rapid7/metasploit-framework\", \"name\": \"Metasploit Framework source repository\", \"tags\": [\"product\"]}], \"x_generator\": {\"engine\": \"Rapid7 Vulnerability Disclosure Program\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"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 \\u2014 data fully controlled by a hostile or tampered iOS device \\u2014 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\u0027s 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.\", \"supportingMedia\": [{\"type\": \"text/html\", \"value\": \"\u003cp\u003eThe 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 \\u2014 data fully controlled by a hostile or tampered iOS device \\u2014 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/\u0026lt;random\u0026gt; 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\u0027s 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.\u003c/p\u003e\", \"base64\": false}]}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-22\", \"description\": \"CWE-22 Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)\"}]}], \"providerMetadata\": {\"orgId\": \"9974b330-7714-4307-a722-5648477acda7\", \"shortName\": \"rapid7\", \"dateUpdated\": \"2026-10-12T04:50:56.020Z\"}}}",
"cveMetadata": "{\"cveId\": \"CVE-2026-87690\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-10-14T10:51:07.965Z\", \"dateReserved\": \"2026-09-08T23:15:36.929Z\", \"assignerOrgId\": \"9974b330-7714-4307-a722-5648477acda7\", \"datePublished\": \"2026-10-12T04:50:56.020Z\", \"assignerShortName\": \"rapid7\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…