CVE-2026-23879 Details
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.
A high-severity arbitrary file write vulnerability has been identified in the py7zr library, specifically in versions through 1.1.2. This vulnerability allows symbolic links to be recreated outside the intended destination directory by using crafted malicious symbolic link chains. When the extractall function is used to extract an archive, py7zr restores these symbolic links, linking them to arbitrary directories on the host file system. The extraction process only verifies the link's arcname within the destination directory, neglecting the overall symlink path resolution. This oversight enables attackers to exploit the vulnerability by creating malicious archives that bypass directory boundary restrictions. Once extracted, regular files can be retrieved through these symbolic links, leading to unauthorized file writes. The vulnerability could potentially result in remote code execution, privilege escalation, data corruption, or a denial-of-service condition.
Users can upgrade to py7zr version 1.1.3 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 24, 2026CISA-ADP
Assessed Jun 25, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/miurahr/py7zr/security/advisories/GHSA-q6rc-2cgv-63h7 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/miurahr/py7zr/releases/tag/v1.1.3 | [email protected] | Release NotesVendor |
| https://github.com/miurahr/py7zr/security/advisories/GHSA-q6rc-2cgv-63h7 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-59 | Improper Link Resolution Before File Access ('Link Following') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| py7zr | <= 1.1.2 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jun 25, 2026 | CVE Modified | CISA-ADP |
| Jun 24, 2026 | New CVE Received | [email protected] |
Volerion