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.
Published: 2026-07-29
Score: 5.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability stems from Penelope Shell Handler’s download function on Unix, which uses tar.extractall on archives received from remote sessions without validating member paths. This allows a crafted archive to contain entries that resolve to locations outside the designated download directory, enabling an attacker who has the ability to supply the archive to write or overwrite files such as ~/.penelope/peneloperc.

Affected Systems

The flaw affects the Brightio Penelope Shell Handler for authorized security testing. Any release older than 0.20.0 is affected. The issue was remedied starting with version 0.20.0, which incorporates validation of tar entry paths.

Risk and Exploitability

The CVSS score of 5.9 indicates moderate severity, and the EPSS score of less than 1% suggests that exploitation is currently very unlikely. The vulnerability is local and requires an attacker who can influence the content of a tar archive delivered by a remote session. Once exploited, it can overwrite configuration files or introduce arbitrary files, potentially enabling further privilege escalation or tampering with Penelope’s operation. The vulnerability is not listed in CISA’s KEV catalog.

Generated by OpenCVE AI on August 3, 2026 at 13:14 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Penelope to version 0.20.0 or later to receive the path‑validation fix.
  • If an immediate upgrade is not possible, configure the environment so the Penelope home directory (where ~/.penelope lives) is read‑only or otherwise inaccessible to the user executing the download, thereby preventing unauthorized file writes.
  • Modify the download() implementation to perform explicit path validation before calling tar.extractall, or replace it with a custom extraction routine that rejects any member whose canonicalized path is outside the intended download folder.

Generated by OpenCVE AI on August 3, 2026 at 13:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-f42x-p2mx-hm8r Penelope unsafe tar extraction allows arbitrary local file write via crafted session archive
History

Thu, 30 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
First Time appeared Brightio
Brightio penelope
Vendors & Products Brightio
Brightio penelope

Wed, 29 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 29 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
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.
Title Penelope unsafe tar extraction allows arbitrary local file write via crafted session archive
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L'}


Subscriptions

Brightio Penelope
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-29T17:59:48.113Z

Reserved: 2026-06-04T21:34:34.426Z

Link: CVE-2026-50558

cve-icon Vulnrichment

Updated: 2026-07-29T17:59:43.179Z

cve-icon NVD

Status : Received

Published: 2026-07-29T16:17:52.900

Modified: 2026-07-29T18:16:53.640

Link: CVE-2026-50558

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T13:15:05Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')