# CVE-2026-76845: adm-zip 0.5.9 through 0.6.0 Arbitrary File Overwrite via Symlink Following on Extraction

- Severity: Medium 6.8 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-08-24T13:12:01.802Z
- Modified: 2026-10-12T15:10:00.207Z
- Also known as: GHSA-vwc7-r8mq-g2x9
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- adm-zip: from 0.5.9 up to 0.6.0
- adm-zip (npm): from 0.5.9 up to 0.6.0

## Every score

- VulnCheck: CVSS:4.0 6.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/cthackers/adm-zip> (package, product)
- <https://github.com/cthackers/adm-zip/blob/v0.6.0/util/utils.js> (technical-description, web)
- <https://www.vulncheck.com/advisories/adm-zip-through-arbitrary-file-overwrite-via-symlink-following-on-extraction> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-76845> (advisory)
- <https://github.com/cthackers/adm-zip/issues/574> (web)
- <https://github.com/cthackers/adm-zip/pull/575> (web)

## Sources

- CVE List: [CVE-2026-76845](https://www.cve.org/CVERecord?id=CVE-2026-76845), CVE Terms of Use, modified 2026-08-24
- GitHub Advisory Database: [GHSA-vwc7-r8mq-g2x9](https://github.com/advisories/GHSA-vwc7-r8mq-g2x9), CC-BY-4.0, modified 2026-09-08
- NVD: [CVE-2026-76845](https://nvd.nist.gov/vuln/detail/CVE-2026-76845), Public domain, modified 2026-10-12

---

Page: https://cve.day/CVE-2026-76845 · Whole record: https://cve.day/CVE-2026-76845.json · Rebuilt by cve.day 2026-11-25T22:59:35.010Z
