{"id":"CVE-2026-50558","aliases":["GHSA-f42x-p2mx-hm8r","PYSEC-2026-3606"],"url":"https://o3.security/vulnerability/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.","published":"2026-07-29T15:34:05.042Z","modified":"2026-09-12T03:30:55.628136136Z","cvss":{"score":5.9,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L"},"epss":{"score":0.00298,"percentile":0.22325,"asOf":"2026-09-12"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"penelope-shell-handler","fixedVersion":"0.20.0"}],"fix":{"url":"https://github.com/brightio/penelope/commit/a040afb5db32c7e80b5e8a2f9b2164cf911cfa62","label":"brightio/penelope@a040afb"},"references":[{"type":"WEB","url":"https://github.com/brightio/penelope/releases/tag/v0.20.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50558.json"},{"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"},{"type":"FIX","url":"https://github.com/brightio/penelope/commit/a040afb5db32c7e80b5e8a2f9b2164cf911cfa62"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-12T03:30:55.628136136Z"}}