CVE-2026-76845: Improper Link Resolution Before File Access ('Link Following') in cthackers adm-zip
adm-zip versions 0.5.9 through 0.6.0 contain a vulnerability where symbolic links at the extraction destination are followed improperly. This allows an attacker who can place a symbolic link inside a shared or predictable extraction directory to cause files outside the extraction root to be overwritten during archive extraction if overwrite is enabled. The vulnerability arises because the sanitization only compares string paths and the file write operation resolves symbolic links without safeguards.
AI Analysis
Technical Summary
The vulnerability in adm-zip 0.5.9 through 0.6.0 involves improper link resolution before file access during archive extraction. The utility function Utils.sanitize enforces containment by comparing only the string form of archive entry names against the extraction root path, which does not prevent symbolic links from pointing outside the root. The write operation uses fs.openSync without the O_NOFOLLOW flag and without a pre-write lstat check, allowing symbolic links to be followed. If a symbolic link exists at the destination path pointing outside the extraction root, extractAllTo and related functions will write attacker-controlled content to files outside the intended directory. This requires overwrite to be enabled, as the existence check also resolves the link and otherwise prevents writing. An attacker able to create symbolic links in shared or predictable extraction directories can exploit this to overwrite arbitrary files writable by the extracting process.
Potential Impact
An attacker with the ability to create symbolic links in a shared, reused, or predictable extraction directory can cause arbitrary files outside the extraction root to be overwritten during archive extraction. This can lead to unauthorized modification of files that the extracting process has write permissions for, potentially compromising system integrity or application behavior. The vulnerability requires local access to create symbolic links and overwrite enabled during extraction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid extracting archives with overwrite enabled in shared or predictable directories where an attacker could place symbolic links. Restrict permissions to prevent unauthorized creation of symbolic links in extraction directories. Monitor vendor communications for official patches or updates addressing this issue.
CVE-2026-76845: Improper Link Resolution Before File Access ('Link Following') in cthackers adm-zip
Description
adm-zip versions 0.5.9 through 0.6.0 contain a vulnerability where symbolic links at the extraction destination are followed improperly. This allows an attacker who can place a symbolic link inside a shared or predictable extraction directory to cause files outside the extraction root to be overwritten during archive extraction if overwrite is enabled. The vulnerability arises because the sanitization only compares string paths and the file write operation resolves symbolic links without safeguards.
CVSS v4.0
Score 6.8medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in adm-zip 0.5.9 through 0.6.0 involves improper link resolution before file access during archive extraction. The utility function Utils.sanitize enforces containment by comparing only the string form of archive entry names against the extraction root path, which does not prevent symbolic links from pointing outside the root. The write operation uses fs.openSync without the O_NOFOLLOW flag and without a pre-write lstat check, allowing symbolic links to be followed. If a symbolic link exists at the destination path pointing outside the extraction root, extractAllTo and related functions will write attacker-controlled content to files outside the intended directory. This requires overwrite to be enabled, as the existence check also resolves the link and otherwise prevents writing. An attacker able to create symbolic links in shared or predictable extraction directories can exploit this to overwrite arbitrary files writable by the extracting process.
Potential Impact
An attacker with the ability to create symbolic links in a shared, reused, or predictable extraction directory can cause arbitrary files outside the extraction root to be overwritten during archive extraction. This can lead to unauthorized modification of files that the extracting process has write permissions for, potentially compromising system integrity or application behavior. The vulnerability requires local access to create symbolic links and overwrite enabled during extraction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid extracting archives with overwrite enabled in shared or predictable directories where an attacker could place symbolic links. Restrict permissions to prevent unauthorized creation of symbolic links in extraction directories. Monitor vendor communications for official patches or updates addressing this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-19T20:34:19.724Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a8c45b3acd9273b4994634b
Added to database: 08/24/2026, 13:22:59 UTC
Last enriched: 08/24/2026, 13:38:26 UTC
Last updated: 08/24/2026, 13:38:27 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.