{"id":"CVE-2026-50558","state":"PUBLISHED","title":"Penelope unsafe tar extraction allows arbitrary local file write via crafted session archive","description":"Penelope Shell Handler is a post-exploitation shell handler for authorized security testing. Prior to 0.20.0, the Unix download() implementation in penelope.py used tar.extractall(local_download_folder) on tar archives returned by remote sessions without validating member paths, allowing a malicious or compromised session to write files outside the intended download directory and potentially overwrite ~/.penelope/peneloperc. This issue is fixed in version 0.20.0.","publishedAt":"2026-07-29T15:34:05.042Z","updatedAt":"2026-07-29T17:59:48.113Z","severity":{"score":5.9,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["brightio penelope"],"affected":[{"vendor":"brightio","product":"penelope","versions":[{"version":"< 0.20.0","status":"affected"}]}],"references":["https://github.com/brightio/penelope/security/advisories/GHSA-f42x-p2mx-hm8r","https://github.com/brightio/penelope/commit/a040afb5db32c7e80b5e8a2f9b2164cf911cfa62","https://github.com/brightio/penelope/releases/tag/v0.20.0"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/50xxx/CVE-2026-50558.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-50558","state":"PUBLISHED","datePublished":"2026-07-29T15:34:05.042Z","dateUpdated":"2026-07-29T17:59:48.113Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-04T21:34:34.426Z"},"containers":{"cna":{"title":"Penelope unsafe tar extraction allows arbitrary local file write via crafted session archive","descriptions":[{"lang":"en","value":"Penelope Shell Handler is a post-exploitation shell handler for authorized security testing. Prior to 0.20.0, the Unix download() implementation in penelope.py used tar.extractall(local_download_folder) on tar archives returned by remote sessions without validating member paths, allowing a malicious or compromised session to write files outside the intended download directory and potentially overwrite ~/.penelope/peneloperc. This issue is fixed in version 0.20.0."}],"affected":[{"vendor":"brightio","product":"penelope","versions":[{"version":"< 0.20.0","status":"affected"}]}],"references":[{"url":"https://github.com/brightio/penelope/security/advisories/GHSA-f42x-p2mx-hm8r","name":"https://github.com/brightio/penelope/security/advisories/GHSA-f42x-p2mx-hm8r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/brightio/penelope/commit/a040afb5db32c7e80b5e8a2f9b2164cf911cfa62","name":"https://github.com/brightio/penelope/commit/a040afb5db32c7e80b5e8a2f9b2164cf911cfa62","tags":["x_refsource_MISC"]},{"url":"https://github.com/brightio/penelope/releases/tag/v0.20.0","name":"https://github.com/brightio/penelope/releases/tag/v0.20.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":5.9,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-29T15:34:05.042Z"},"source":{"advisory":"GHSA-f42x-p2mx-hm8r","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/brightio/penelope/security/advisories/GHSA-f42x-p2mx-hm8r","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-29T17:59:13.087639Z","id":"CVE-2026-50558","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-29T17:59:48.113Z"}}]}}}