GHSA-52c6-99qm-3hqr: zt-zip: Path traversal in fluent API unpack

Published Nov 3, 2026
·
Updated

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.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade zt-zip to a version that resolves this vulnerability.

    Fixed in 1.18.0

Event History

Nov 3, 2026
CVE Published
via OSV·06:02 PM
Data Sourced
via OSV·06:02 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using zt-zip versions before 1.18.0 are exposed if they extract untrusted ZIP archives through the Zips.get(zip).unpack().destination(outputDir).process() fluent API. Applications that extract archives only through ZipUtil.unpack(...) are unaffected.

2

What must an attacker provide to exploit the vulnerability?

An attacker must cause the application to process a crafted ZIP archive containing an entry name with parent-directory traversal. User interaction is required according to the supplied severity vector.

3

Can the vulnerable API write files outside the configured extraction directory?

Yes. The fluent API constructs output paths from ZIP entry names without destination-boundary validation, allowing traversal entries to write outside outputDir in both the normal copy and ZipEntryTransformer branches.

4

What should be done if an immediate upgrade is not possible?

Do not use the affected fluent unpack API to extract untrusted archives. Use ZipUtil.unpack(...) instead, as it applies checkDestinationFileForTraversal validation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203