# CVE-2026-23879: py7zr: Arbitrary File Write Vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.0
- **CVSS:** 8.0 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.57% (percentile 41, 2026-11-26)
- **CWE:** CWE-59
- **Aliases:** GHSA-q6rc-2cgv-63h7, PYSEC-2026-2974
- **Published:** 2026-06-19T19:21:57.000Z
- **Modified:** 2026-10-25T22:10:00.150Z

## Who should check

- Projects that depend on PyPI package py7zr (\< 1.1.3)
- Anyone running miurahr py7zr \< 1.1.3

## 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

- PyPI `py7zr`: affected \< 1.1.3; fixed 1.1.3 (osv)
- miurahr py7zr: \< 1.1.3 (cvelist)

## Mitigation

- Upgrade py7zr to 1.1.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/miurahr/py7zr/security/advisories/GHSA-q6rc-2cgv-63h7>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-23879>
- vendor: <https://github.com/advisories/GHSA-q6rc-2cgv-63h7>
- other: <https://github.com/miurahr/py7zr/releases/tag/v1.1.3>
- other: <https://github.com/miurahr/py7zr>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/py7zr/PYSEC-2026-2974.yaml>
- other: <https://pypi.org/project/py7zr>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-23879>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-q6rc-2cgv-63h7> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-2974> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-23879> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-23879>
