{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-50558","id":"CVE-2026-50558","title":"Penelope unsafe tar extraction allows arbitrary local file write via crafted session archive","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 overw","descriptionLong":"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.","published":"2026-07-29T15:34:05.042Z","updated":"2026-10-28T02:30:33.092773650Z","reserved":"2026-06-04T21:34:34.426Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L","rating":"medium","source":"github.com"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["brightio penelope"],"affectedProducts":[{"vendor":"brightio","product":"penelope","defaultStatus":null,"versions":[{"version":"< 0.20.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"penelope-shell-handler","purl":"pkg:pypi/penelope-shell-handler","ranges":["<0.20.0"],"fixed":["0.20.0"],"advisory":"GHSA-f42x-p2mx-hm8r"}],"cwes":["CWE-22"],"aliases":["GHSA-f42x-p2mx-hm8r","PYSEC-2026-3606"],"references":[{"url":"https://github.com/brightio/penelope/security/advisories/GHSA-f42x-p2mx-hm8r","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/brightio/penelope/commit/a040afb5db32c7e80b5e8a2f9b2164cf911cfa62","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/brightio/penelope/releases/tag/v0.20.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50558.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50558","tags":["advisory"]},{"url":"https://github.com/brightio/penelope","tags":["package"]},{"url":"https://pypi.org/project/penelope-shell-handler","tags":["package"]},{"url":"https://github.com/advisories/GHSA-f42x-p2mx-hm8r","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00367,"epssPercentile":0.31208,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-50558","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50558","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-50558","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-f42x-p2mx-hm8r","ok":true,"note":"GHSA-f42x-p2mx-hm8r"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-50558","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}