{"id":"CVE-2026-50558","summary":"Penelope unsafe tar extraction allows arbitrary local file write via crafted session archive","details":"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.","aliases":["GHSA-f42x-p2mx-hm8r"],"modified":"2026-07-30T04:03:18.455430760Z","published":"2026-07-29T15:34:05.042Z","database_specific":{"cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50558.json","cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50558.json"},{"type":"FIX","url":"https://github.com/brightio/penelope/commit/a040afb5db32c7e80b5e8a2f9b2164cf911cfa62"},{"type":"WEB","url":"https://github.com/brightio/penelope/releases/tag/v0.20.0"},{"type":"ADVISORY","url":"https://github.com/brightio/penelope/security/advisories/GHSA-f42x-p2mx-hm8r"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50558"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/brightio/penelope","events":[{"introduced":"0"},{"fixed":"918d312c8e790497b77eb6f2e7a086d00d70a357"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"0.20.0"}],"source":"AFFECTED_FIELD"}}],"versions":["v0.18.0","v0.15.0","v0.14.14","v0.14.8","v0.10.0","v0.9.2","v0.8.5","v0.8.4","v0.8.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-50558.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L"}]}