CVE-2026-50558 Penelope unsafe tar extraction allows arbitrary local file write via crafted session archive
MediumCVSS 5.9
EPSS 0.37%
- Published
- Updated
- Exploit status
- No public exploit known
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
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi penelope-shell-handler(PyPI) | < 0.20.0 | 0.20.0 |
| pypi penelope-shell-handler(PyPI) | = 0.15.0 | No fix listed |
| pypi penelope-shell-handler(PyPI) | = 0.18.0 | No fix listed |
| pypi penelope-shell-handler(PyPI) | = 0.19.1 | No fix listed |
| brightio penelope | = < 0.20.0 | No fix listed |
References
- https://github.com/brightio/penelope/security/advisories/GHSA-f42x-p2mx-hm8r exploit vendor-advisory
- https://github.com/brightio/penelope/commit/a040afb5db32c7e80b5e8a2f9b2164cf911cfa62 patch
- github.com product
- https://github.com/brightio/penelope/releases/tag/v0.20.0
- pypi.org product
- github.com vendor-advisory
- nvd.nist.gov vendor-advisory