# CVE-2026-50558: Penelope unsafe tar extraction allows arbitrary local file write via crafted session archive

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-29T15:34:05.042Z
- Modified: 2026-10-23T23:10:00.157Z
- Also known as: GHSA-f42x-p2mx-hm8r, PYSEC-2026-3606
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- brightio penelope: < 0.20.0
- penelope-shell-handler (PyPI): before 0.20.0

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L`
- PyPA Advisory Database: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L`

## References

- <https://github.com/brightio/penelope/security/advisories/GHSA-f42x-p2mx-hm8r> (exploit, web)
- <https://github.com/brightio/penelope/commit/a040afb5db32c7e80b5e8a2f9b2164cf911cfa62> (web)
- <https://github.com/brightio/penelope/releases/tag/v0.20.0> (web)
- <https://github.com/brightio/penelope> (package)
- <https://pypi.org/project/penelope-shell-handler> (package)
- <https://github.com/advisories/GHSA-f42x-p2mx-hm8r> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-50558> (advisory)

## Sources

- CVE List: [CVE-2026-50558](https://www.cve.org/CVERecord?id=CVE-2026-50558), CVE Terms of Use, modified 2026-07-29
- GitHub Advisory Database: [GHSA-f42x-p2mx-hm8r](https://github.com/advisories/GHSA-f42x-p2mx-hm8r), CC-BY-4.0, modified 2026-08-04
- NVD: [CVE-2026-50558](https://nvd.nist.gov/vuln/detail/CVE-2026-50558), Public domain, modified 2026-10-23
- PyPA Advisory Database: [PYSEC-2026-3606](https://osv.dev/vulnerability/PYSEC-2026-3606), CC-BY-4.0, modified 2026-08-04

---

Page: https://cve.day/CVE-2026-50558 · Whole record: https://cve.day/CVE-2026-50558.json · Rebuilt by cve.day 2026-11-25T22:59:30.448Z
