CVEfocus › CVE database › CVE-2026-23879

CVE-2026-23879py7zr: Arbitrary File Write Vulnerability

CVSS 8.0 HighEPSS 0.6% (higher than 41% of CVEs)Published 2026-06-24Updated 2026-06-25Assigner: GitHub_M

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.

CWE-59

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

2Fixed
3Fix pending
3Under investigation
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10py7zrFix pendingUBUNTU-CVE-2026-23879
Ubuntu 26.04py7zrUnder investigationUBUNTU-CVE-2026-23879
Ubuntu 25.10py7zrWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-23879
Ubuntu 24.04py7zrUnder investigationUBUNTU-CVE-2026-23879
Ubuntu 22.04py7zrUnder investigationUBUNTU-CVE-2026-23879
Debian 14py7zrFixed1.1.2+dfsg-1DEBIAN-CVE-2026-23879
Debian 13py7zrFix pendingDEBIAN-CVE-2026-23879
Debian 12py7zrFix pendingDEBIAN-CVE-2026-23879
PyPI librarypy7zrFixed1.1.3PYSEC-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.

References

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.