Description
extract-zip does not validate symlink targets when extracting zip archives. When processing a malicious zip file containing a symlink with a relative path like '../../../../etc/passwd', extract-zip will extract the symlink without validation, allowing it to point outside the extraction directory. Depending on how extract-zip is used, an attacker could read or write to arbitrary files.
Published: 2026-06-26
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A malicious zip archive can contain a symbolic link whose target points to a location outside the intended extraction directory. The extract‑zip library does not targets, allowing the link to be created exactly as specified. This results in a directory traversal and symlink abuse vulnerability (CWE‑22 and CWE‑61). When an attacker supplies such an archive, they can gain read or write access to arbitrary files on the host, potentially exposing sensitive data or overwriting configuration files, which could lead to broader compromise if the application runs with elevated privileges.

Affected Systems

The vulnerability affects the max‑mapper:extract‑zip library. No specific version information is provided in the CNA data, so all versions that incorporate the unvalidated symlink handling are potentially impacted.

Risk and Exploitability

The CVSS score of 8.6 indicates high severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, the likely attack vector is the delivery of a crafted zip file to any application that processes unzip. If such processing occurs, the attacker can readily trim a symlink to point to a protected location, read or write arbitrary files, and thereby cause serious confidentiality or integrity impacts.

Generated by OpenCVE AI on June 26, 2026 at 19:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a vendor patch that validates symlink targets before extraction
  • If a patch is not yet available, explicitly reject or sanitize all symbolic links that resolve outside the intended extraction directory in the application code
  • Implement generic input validation that normalizes paths and enforces extraction limits to mitigate directory traversal

Generated by OpenCVE AI on June 26, 2026 at 19:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 26 Jun 2026 17:30:00 +0000

Type Values Removed Values Added
Description extract-zip does not validate symlink targets when extracting zip archives. When processing a malicious zip file containing a symlink with a relative path like '../../../../etc/passwd', extract-zip will extract the symlink without validation, allowing it to point outside the extraction directory. Depending on how extract-zip is used, an attacker could read or write to arbitrary files.
Title extract-zip unvalidated symlink path traversal
Weaknesses CWE-22
CWE-61
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: cisa-cg

Published:

Updated: 2026-06-26T16:44:29.768Z

Reserved: 2026-06-23T15:30:16.784Z

Link: CVE-2026-56876

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-26T19:30:04Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-61

    UNIX Symbolic Link (Symlink) Following