Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-50558 EUVD-2026-50395GHSA-f42x-p2mx-hm8rPYSEC-2026-3606

Penelope unsafe tar extraction allows arbitrary local file write via crafted session archive

Published Jul 29, 2026 · Updated Jul 29, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
brightio penelope < 0.20.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI penelope-shell-handler < 0.20.0 0.20.0 GHSA-f42x-p2mx-hm8r

References