CVE-2026-23879
py7zr: Arbitrary File Write Vulnerability
Also known as GHSA-q6rc-2cgv-63h7, PYSEC-2026-2974
Mitigation
- Upgrade py7zr to 1.1.3 or later.
Who should check
- Projects that depend on PyPI package py7zr (< 1.1.3)
- Anyone running miurahr py7zr < 1.1.3
Vulnerability facts
- Affected
- py7zr < 1.1.3
- Fixed in
- 1.1.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 8.0 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.57% chance of exploitation in 30 days (percentile 41, 2026-11-26)
- CWE
- CWE-59
- Modified
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-23879. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-23879.md Affected: py7zr < 1.1.3 Fixed in: 1.1.3 Steps: 1. Search this machine and project for py7zr (PyPI), miurahr py7zr: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2026-23879 being exploited?
There is no confirmed exploitation: CVE-2026-23879 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.57% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-23879?
High: CVSS 8.0 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-23879?
py7zr < 1.1.3.
Is there a fix for CVE-2026-23879?
Yes. Fixed in 1.1.3. Upgrade py7zr to 1.1.3 or later.
How do I check if I'm affected by CVE-2026-23879?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.