{"answers":{"affected":"3 open source packages ship an affected version, including penelope-shell-handler.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-50558 exists.","fix":"Upgrade penelope-shell-handler to 0.20.0 or later.","what":"CVE-2026-50558 is a medium-severity path traversal vulnerability in brightio penelope, published on 29 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-50558 and fix it if it is affected.\n\nWhat it is: CVE-2026-50558 is a medium-severity path traversal vulnerability in brightio penelope, published on 29 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-50558 exists.\n\nAffected packages and fixed versions:\n- penelope-shell-handler (PyPI): affected all versions; fixed in 0.20.0\n- penelope-shell-handler (PyPI): affected all versions; fixed in 0.20.0\n- penelope-shell-handler (PyPI): affected all versions; fixed in 0.20.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-50558/ (Markdown: https://insights.sbomify.com/CVE-2026-50558/index.md)","id":"CVE-2026-50558","markdown":"https://insights.sbomify.com/CVE-2026-50558/index.md","name":"CVE-2026-50558","record":{"aliases":["GHSA-f42x-p2mx-hm8r","PYSEC-2026-3606"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_modify","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Penelope Shell Handler","requires_auth":"none","summary":"A malicious session can write files outside the download directory, potentially overwriting configuration files to escalate privileges or modify data.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Penelope unsafe tar extraction allows arbitrary local file write via crafted session archive","id":"CVE-2026-50558","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"Authentication/Authorization Bypass via Advanced Path Normalization Vulnerabilities","id":"CVE-2026-50559"},"packages":[{"ecosystem":"PyPI","fixed":["0.20.0"],"introduced":["0"],"last_affected":[],"package":"penelope-shell-handler","purl":null,"source":"GHSA-f42x-p2mx-hm8r"},{"ecosystem":"PyPI","fixed":["0.20.0"],"introduced":["0"],"last_affected":[],"package":"penelope-shell-handler","purl":"pkg:pypi/penelope-shell-handler","source":"GHSA-f42x-p2mx-hm8r"},{"ecosystem":"PyPI","fixed":["0.20.0"],"introduced":["0"],"last_affected":[],"package":"penelope-shell-handler","purl":"pkg:pypi/penelope-shell-handler","source":"PYSEC-2026-3606"}],"prev":{"headline":"Angular: Template and Attribute Namespace Sanitization Bypass (XSS)","id":"CVE-2026-50557"},"products":["penelope"],"published":"2026-07-29","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-29","vendors":["brightio"]},"summary":"A malicious session can write files outside the download directory, potentially overwriting configuration files to escalate privileges or modify data.","url":"https://insights.sbomify.com/CVE-2026-50558/"}