py7zr: Arbitrary File Write Vulnerability
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| miurahr | py7zr | before 1.1.3 | 1.1.3 | Patch available | CNA |
| — | py7zr (PyPI) | before 1.1.3 | 1.1.3 | Patch available | GHSA-q6rc-2cgv-63h7 |
- py7zr Vendormiurahr Affected before 1.1.3 Fixed in 1.1.3 Patch available CNA
- py7zr (PyPI) Vendor— Affected before 1.1.3 Fixed in 1.1.3 Patch available GHSA-q6rc-2cgv-63h7
Remediation
- Fix · CNA py7zr (miurahr) Fixed in 1.1.3
- Fix · GHSA-q6rc-2cgv-63h7 py7zr (PyPI) Fixed in 1.1.3 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-23879
- 2026-10-03 Alias added: GHSA-q6rc-2cgv-63h7
References
Advisory 2
More miurahr vulnerabilities
- TI-2026-39886 py7zr: O(n^2) algorithmic complexity DoS in PackInfo._read() CVSS 4.0HIGH 8.7
- TI-2026-39875 py7zr: Decompression bomb (zip bomb) denial of service via unchecked extraction size CVSS 4.0HIGH 8.7
Sources
- CVE-2026-23879 · CVE Program
- CVE-2026-23879 · NVD
- FIRST EPSS
- GHSA-q6rc-2cgv-63h7 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-23879 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences