CVE-2026-23879py7zr: Arbitrary File Write Vulnerability
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.
What to do
Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | py7zr | Fix pending | UBUNTU-CVE-2026-23879 | |
| Ubuntu 26.04 | py7zr | Under investigation | UBUNTU-CVE-2026-23879 | |
| Ubuntu 25.10 | py7zr | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-23879 | |
| Ubuntu 24.04 | py7zr | Under investigation | UBUNTU-CVE-2026-23879 | |
| Ubuntu 22.04 | py7zr | Under investigation | UBUNTU-CVE-2026-23879 | |
| Debian 14 | py7zr | Fixed | 1.1.2+dfsg-1 | DEBIAN-CVE-2026-23879 |
| Debian 13 | py7zr | Fix pending | DEBIAN-CVE-2026-23879 | |
| Debian 12 | py7zr | Fix pending | DEBIAN-CVE-2026-23879 | |
| PyPI library | py7zr | Fixed | 1.1.3 | PYSEC-2026-2974 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- miurahr py7zr: affected: < 1.1.3
References
- https://github.com/miurahr/py7zr/security/advisories/GHSA-q6rc-2cgv-63h7
- https://github.com/miurahr/py7zr/releases/tag/v1.1.3
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.