CVE-2026-76845: adm-zip - Path Traversal
- Cve: CVE-2026-76845
- Name: adm-zip - Path Traversal
- Description: adm-zip 0.5.9 through 0.6.0 follows symbolic links at the extraction destination. Utils.sanitize in util/utils.js enforces containment by comparing only the string form of an archive entry name against the resolved extraction root, and Utils.writeFileTo opens the computed destination with fs.openSync(path, "w", 0o666), which resolves symbolic links and carries neither O_NOFOLLOW nor a pre-write fs.lstatSync check. When a path component at the destination already exists as a symbolic link pointing outside the extraction root, extractAllTo, extractAllToAsync and extractEntryTo write the entry contents through that link and then chmod its target, placing attacker-controlled content in a file outside the root without any traversal sequence appearing in the archive. Reaching the write requires overwrite to be enabled, because the preceding fs.existsSync check also resolves the link and otherwise declines. An attacker able to create a symbolic link inside a shared, reused or predictable extraction directory, such as a temporary directory or a continuous integration workspace, can overwrite any file the extracting process is permitted to write.
- Impact: Attackers can overwrite arbitrary files writable by the extracting process, potentially leading to code execution or system compromise.
- Remediation: Update to the latest version that properly handles symbolic links during extraction.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_write
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
- Epss score: 0.00171
- Epss percentile: 0.06477
- Assignee: [email protected]
- Published at: 2026-08-24T14:17:02Z
- Age in days: 92
- Modified at: 2026-10-12T15:10:00Z
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-76845
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-59 | Improper Link Resolution Before File Access |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| adm-zip_project:adm-zip | >= 0.5.9, <= 0.6.0 | no | cna | /v1/products/adm-zip_project/adm-zip |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| cthackers/adm-zip | issues, package, pull | yes | /v1/repositories/cthackers/adm-zip |
Index
- Repositories: 274
- Repositories high signal: 206
- Packages: 1
Exploitation
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts