{"id":"CVE-2026-50558","published":"2026-07-29T15:34:05Z","modified":"2026-07-29T17:59:48Z","title":"Penelope unsafe tar extraction allows arbitrary local file write via crafted session archive","vendor":"brightio","product":"penelope","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00367,"percentile":0.31351,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/brightio/penelope/security/advisories/GHSA-f42x-p2mx-hm8r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/brightio/penelope/commit/a040afb5db32c7e80b5e8a2f9b2164cf911cfa62","tags":["x_refsource_MISC"]},{"url":"https://github.com/brightio/penelope/releases/tag/v0.20.0","tags":["x_refsource_MISC"]}],"priority":{"score":10.4,"factors":[{"name":"EPSS percentile","points":6.27},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"brightio","affectedVersions":[{"vendor":"brightio","product":"penelope","versions":["< 0.20.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-29T17:59:13.087639Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"penelope-shell-handler","vulnerableRanges":["<0.20.0"],"patched":["0.20.0"],"from":["GHSA-f42x-p2mx-hm8r","PYSEC-2026-3606"],"provenance":"source"}],"summary":{"text":"The flaw is an unsafe tar extraction in the Unix download() routine of penelope.py in the Penelope Shell Handler (brightio), where archives returned by remote sessions are extracted without validating member paths, enabling path traversal outside the intended download directory. An attacker controlling a malicious or compromised session can exploit this over the network, provided the victim initiates a download from that session, to write arbitrary files and potentially overwrite the ~/.penelope/peneloperc configuration file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:43Z"},"euvd":{"id":"EUVD-2026-50395","exploited":false,"provenance":"source"}}