{"answers":{"affected":"3 open source packages ship an affected version, including py7zr.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-23879 exists.","fix":"Upgrade py7zr to 1.1.3 or later.","what":"CVE-2026-23879 is a high-severity path traversal vulnerability in miurahr py7zr, published on 24 Jun 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-23879 and fix it if it is affected.\n\nWhat it is: CVE-2026-23879 is a high-severity path traversal vulnerability in miurahr py7zr, published on 24 Jun 2026. Any signed-in user can exploit it over the network, 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-23879 exists.\n\nAffected packages and fixed versions:\n- py7zr (PyPI): affected all versions; fixed in 1.1.3\n- py7zr (PyPI): affected all versions; fixed in 1.1.3\n- py7zr (PyPI): affected all versions; fixed in 1.1.3\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-23879/ (Markdown: https://insights.sbomify.com/CVE-2026-23879/index.md)","id":"CVE-2026-23879","markdown":"https://insights.sbomify.com/CVE-2026-23879/index.md","name":"CVE-2026-23879","record":{"aliases":["DEBIAN-CVE-2026-23879","GHSA-q6rc-2cgv-63h7","PYSEC-2026-2974","UBUNTU-CVE-2026-23879"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Python 7zip library","requires_auth":"low_privilege","summary":"Attackers can write arbitrary files outside the extraction directory via malicious symbolic links, potentially leading to code execution or privilege escalation.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"description":"py7zr is a Python-based library and utility to support 7zip archive compression, decompression, encryption and decryption. Versions 1.1.2 and below contain an an arbitrary file write vulnerability, which allows symbolic links to be recreated outside the destination directory via crafted malicious symbolic link chains. When using extractall to extract an archive, the library restores these symbolic links, linking them to arbitrary directories on the host file system. During extraction, the program only checks the link arcname within the destination directory, but ignores the combined symlink path resolution. Attackers can exploit this vulnerability by constructing malicious archives, thereby bypassing the directory boundary restrictions implemented by the extractor. Subsequent extraction of regular files through these symbolic links can result in arbitrary file writes. This vulnerability may lead to remote code execution, privilege escalation, data corruption, or denial of service. This issue has been fixed in version 1.1.3.","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":"py7zr: Arbitrary File Write Vulnerability","id":"CVE-2026-23879","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"OnboardLite has stored Cross-site Scripting issue that may lead to admin Account Take Over","id":"CVE-2026-23880"},"packages":[{"ecosystem":"PyPI","fixed":["1.1.3"],"introduced":["0"],"last_affected":[],"package":"py7zr","purl":null,"source":"GHSA-q6rc-2cgv-63h7"},{"ecosystem":"PyPI","fixed":["1.1.3"],"introduced":["0"],"last_affected":[],"package":"py7zr","purl":"pkg:pypi/py7zr","source":"GHSA-q6rc-2cgv-63h7"},{"ecosystem":"PyPI","fixed":["1.1.3"],"introduced":["0"],"last_affected":[],"package":"py7zr","purl":"pkg:pypi/py7zr","source":"PYSEC-2026-2974"}],"prev":{"headline":"HotCRP vulnerable to exposure of submitted documents","id":"CVE-2026-23878"},"products":["py7zr"],"published":"2026-06-24","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":"total"},"state":"PUBLISHED","updated":"2026-06-25","vendors":["miurahr"]},"summary":"Attackers can write arbitrary files outside the extraction directory via malicious symbolic links, potentially leading to code execution or privilege escalation.","url":"https://insights.sbomify.com/CVE-2026-23879/"}