CVE-2026-50558

MEDIUM

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

Title source: cna
STIX 2.1

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.

Scores

CVSS v3 5.9
EPSS 0.0025
EPSS Percentile 16.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-22
Status published
Products (2)
brightio/penelope < 0.20.0
pypi/penelope-shell-handler 0 - 0.20.0PyPI
Published Jul 29, 2026
Tracked Since Jul 29, 2026