zt-zip: Path traversal in fluent API unpack
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in org.zeroturnaround:zt-zip 1.18.0.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| zeroturnaround | <1.18.0 | ||
| maven: org.zeroturnaround:zt-zip | <1.18.0 | 1.18.0 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in org.zeroturnaround:zt-zip (Maven), strongest first
Embed
A live severity badge for an advisory, README or ticket