CVE-2026-23879
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedpy7zr 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidencepy7zr versions 1.1.2 and below contain a symlink traversal vulnerability in extractall() that allows arbitrary file writes. The library validates the archive entry name but fails to properly resolve the combined symlink path, enabling malicious archives to create symlinks pointing outside the destination directory. Subsequent file extractions through these symlinks can write to arbitrary host locations.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify py7zr installation and versionRun 'pip show py7zr' or check your project dependencies (requirements.txt, pyproject.toml, setup.py) for the py7zr versionAffected if py7zr version is 1.1.2 or lower, or no version is specified (implying an unpatched version could be installed)
-
Confirm extractall() method is in useSearch your codebase for calls to py7zr.TarFile.extractall() or py7zr.SevenZipFile.extractall(), or inspect runtime calls to the library's extraction functionsAffected if Your code calls extractall() to unpack 7z archives from untrusted sources
-
Verify archive source trust levelReview whether the extracted archives originate from untrusted or user-supplied sources (downloads, uploads, network transfers, email attachments)Affected if You extract archives from untrusted or external sources without prior validation
-
Inspect for symlinks in extracted contentAfter extraction, run 'find <extracted_dir> -type l -ls' on Linux or 'Get-ChildItem -Recurse -LinkType | Select-Object FullName' on Windows to list created symbolic linksAffected if Any symbolic links in the extracted archive point to paths outside the intended extraction directory
You are affected if py7zr version 1.1.2 or lower is installed AND you use extractall() to unpack archives from untrusted or external sources, as the symlink traversal could allow writing files outside the destination directory.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade py7zr to version 1.1.3 or later to obtain the patch that properly validates resolved symlink targets before extraction.
1.1.3
- Verify the current installed version of py7zr by running: pip show py7zr
- Upgrade py7zr to version 1.1.3 or later by running: pip install --upgrade py7zr==1.1.3
- Verify the upgrade was successful by running: pip show py7zr and confirming the version number
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation2.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,072.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-23879 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-23879 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data