CVE-2026-76845 adm-zip 0.5.9 through 0.6.0 Arbitrary File Overwrite via Symlink Following on Extraction
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm adm-zip(npm) | >= 0.5.9, <= 0.6.0 | No fix listed |
| redhat/rhacm2/volsync-operator-bundle(Red Hat:acm:2) | All versions | No fix listed |
| redhat/rhacm2/volsync-rhel9(Red Hat:acm:2) | All versions | No fix listed |
| redhat/rh-podman-desktop.git(Red Hat:podman_desktop:1) | All versions | No fix listed |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-lightspeed(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-lightspeed-backend(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-orchestrator(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend-module-loki(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-form-widgets(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-scaffolder-backend-module-orchestrator(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/rhdh/rhdh-hub-rhel9(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/mozjs60(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/gjs(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/adm-zip(Red Hat:jboss_fuse:7) | All versions | No fix listed |
| redhat/rhoai/odh-core-bff-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-dashboard-operator-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-dashboard-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mlflow-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-agent-ops-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-automl-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-autorag-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-eval-hub-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-gen-ai-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-maas-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
Show 6 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/rhoai/odh-mod-arch-mlflow-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-model-registry-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/openshift4/ose-console(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-monitoring-plugin-rhel9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift5/ose-monitoring-plugin-rhel9(Red Hat:openshift:5) | All versions | No fix listed |
| redhat/ansible-automation-platform/automation-portal(Red Hat:ansible_portal:2) | All versions | No fix listed |
References
- github.com product
- github.com technical-description
- VulnCheck Advisory: adm-zip 0.5.9 through 0.6.0 Arbitrary File Overwrite via Symlink Following on Extraction third-party-advisory
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2521870 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory
- github.com
- github.com patch
- github.com