CVE-2026-63436

zt-zip: Path traversal in fluent API unpack

Published Nov 3, 2026 CVSS 3.1 · 6.1 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.0, the Zips.get(zip).unpack().destination(outputDir).process() fluent API in src/main/java/org/zeroturnaround/zip/Zips.java constructs output files directly from ZIP entry names without applying the destination-boundary validation used by ZipUtil.unpack(...). A crafted entry containing parent-directory traversal can therefore write outside outputDir through both the normal copy branch and the ZipEntryTransformer branch. Applications that extract untrusted archives only through ZipUtil.unpack(...) are unaffected because that API already calls checkDestinationFileForTraversal. This issue is fixed in version 1.18.0.

Analysis

AI-generated

Technical impact

The vulnerability arises because the Zips.get(zip).unpack().destination(outputDir).process() fluent API constructs output files directly from ZIP entry names without performing the destination‑boundary validation that ZipUtil.unpack() uses. This omission allows a crafted entry containing parent‑directory traversal components to write files outside the intended output directory. As a result, an attacker can create or overwrite arbitrary files on the filesystem, potentially compromising data integrity or system stability. The weakness corresponds to CWE‑22.

Affected Systems

The flaw exists in the zeroturnaround zt‑zip library in all releases prior to v1.18.0. Any application that calls the vulnerable fluent API to extract untrusted ZIP archives is affected. Applications that use ZipUtil.unpack() directly are unaffected because that method performs proper destination checks.

Risk and Exploitability

The CVSS score is 6.1, indicating moderate severity. EPSS data is not available and the vulnerability is not listed in the CISA KEV catalog. The attack requires an attacker to supply a malicious ZIP file to an application using the vulnerable API; no additional privilege or complex exploitation steps are described. The impact is primarily integrity and confidentiality through unwanted file writes, with potential serious consequences if critical system files are overwritten.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade zt-zip to version 1.18.0 or later, which includes the missing destination-boundary check.
  • Avoid using the vulnerable Zips.get(...).unpack() fluent API; instead, employ ZipUtil.unpack(), which performs validation before extracting files.
  • Audit and modify any existing code that processes untrusted archives to ensure that it either uses the safe API or applies its own path validation to prevent files from being written outside the intended directory.

Generated by OpenCVE AI on November 3, 2026 at 19:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-52c6-99qm-3hqr zt-zip: Path traversal in fluent API unpack
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Zeroturnaround
Zeroturnaround zt-zip
Vendors & Products Zeroturnaround
Zeroturnaround zt-zip
Type Values Removed Values Added
Description zt-zip is a Java library that provides convenience methods for ZIP archive manipulation. Prior to 1.18.0, the Zips.get(zip).unpack().destination(outputDir).process() fluent API in src/main/java/org/zeroturnaround/zip/Zips.java constructs output files directly from ZIP entry names without applying the destination-boundary validation used by ZipUtil.unpack(...). A crafted entry containing parent-directory traversal can therefore write outside outputDir through both the normal copy branch and the ZipEntryTransformer branch. Applications that extract untrusted archives only through ZipUtil.unpack(...) are unaffected because that API already calls checkDestinationFileForTraversal. This issue is fixed in version 1.18.0.
Title zt-zip: Path traversal in fluent API unpack
Weaknesses CWE-22
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-22

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

Sources

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