CVE-2026-63499

zt-zip: ZipUtil.unpack can change file permissions of output directory

Published Nov 3, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
zt-zip is a Java library that provides convenience methods for ZIP archive manipulation. Prior to 1.18.1, ZipUtil.unpack(...) can apply stored ZIP-entry permissions to the extraction output directory when an entry name such as / or ./ resolves to that directory itself. Because the path traversal checks permit self-referencing entries that do not escape the destination, the unpacker's permission-handling path can replace restrictive output-directory permissions with attacker-supplied permissions. This affects applications that unpack untrusted ZIP files, and POSIX systems demonstrate the issue directly, while ZTFilePermissionsUtil.fetchDefaultStrategy provides fallback permission handling on other supported systems. This issue is fixed in version 1.18.1.

Analysis

AI-generated

Technical impact

zt-zip is a Java library that unpacks ZIP archives. Prior to version 1.18.1, its ZipUtil.unpack method applies the permissions stored in a ZIP entry to the directory in which files are extracted. If an entry name such as "/" or "./" is present, the path traversal checks permit the entry to resolve to the output directory itself. Consequently, the library can replace restrictive directory permissions with arbitrary permissions supplied in the archive. This flaw is a directory‑based permission modification vulnerability (CWE‑23).

Affected Systems

The zeroturnaround zt-zip library is affected in all releases older than 1.18.1. Applications that depend on those versions and extract untrusted ZIP files are at risk. The issue is fixed in zt-zip 1.18.1 and newer releases.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. The EPSS score is not available, and the vulnerability is not listed in CISA's KEV catalog. The likely attack vector is an application that unpacks untrusted ZIP files on a POSIX system. The attacker can trigger the permission change by including a self‑referencing entry such as "/" in the archive. Based on the description, it is inferred that if extraction is performed with elevated privileges, the attacker could elevate privileges or bypass access controls by granting write or execute rights to the extraction directory, facilitating the execution of injected code.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade zt-zip to version 1.18.1 or later
  • Ensure that ZIP extraction runs under the least privilege required by the application
  • Validate and reject self‑referencing ZIP entry names such as "/" or "./" before extraction

Generated by OpenCVE AI on November 3, 2026 at 20:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-v2g6-7r9j-v6px zt-zip: ZipUtil.unpack can change file permissions of output directory
History
Type Values Removed Values Added
First Time appeared Zeroturnaround
Zeroturnaround zt-zip
Vendors & Products Zeroturnaround
Zeroturnaround zt-zip
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description zt-zip is a Java library that provides convenience methods for ZIP archive manipulation. Prior to 1.18.1, ZipUtil.unpack(...) can apply stored ZIP-entry permissions to the extraction output directory when an entry name such as / or ./ resolves to that directory itself. Because the path traversal checks permit self-referencing entries that do not escape the destination, the unpacker's permission-handling path can replace restrictive output-directory permissions with attacker-supplied permissions. This affects applications that unpack untrusted ZIP files, and POSIX systems demonstrate the issue directly, while ZTFilePermissionsUtil.fetchDefaultStrategy provides fallback permission handling on other supported systems. This issue is fixed in version 1.18.1.
Title zt-zip: ZipUtil.unpack can change file permissions of output directory
Weaknesses CWE-23
References
Metrics cvssV4_0

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

Weaknesses
  • CWE-23

    Relative Path Traversal

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 3, 2026, 7:38 PM
Reserved
Jul 16, 2026, 9:49 PM
Status
Awaiting Analysis
Published
Nov 3, 2026, 6:18 PM
Modified
Nov 12, 2026, 8:04 PM