Technical impact
The vulnerability arises because the Zips.get(zip).unpack().destination(outputDir).process() fluent API constructs output files directly from ZIP entry names without performing the destination‑boundary validation that ZipUtil.unpack() uses. This omission allows a crafted entry containing parent‑directory traversal components to write files outside the intended output directory. As a result, an attacker can create or overwrite arbitrary files on the filesystem, potentially compromising data integrity or system stability. The weakness corresponds to CWE‑22.
Affected Systems
The flaw exists in the zeroturnaround zt‑zip library in all releases prior to v1.18.0. Any application that calls the vulnerable fluent API to extract untrusted ZIP archives is affected. Applications that use ZipUtil.unpack() directly are unaffected because that method performs proper destination checks.
Risk and Exploitability
The CVSS score is 6.1, indicating moderate severity. EPSS data is not available and the vulnerability is not listed in the CISA KEV catalog. The attack requires an attacker to supply a malicious ZIP file to an application using the vulnerable API; no additional privilege or complex exploitation steps are described. The impact is primarily integrity and confidentiality through unwanted file writes, with potential serious consequences if critical system files are overwritten.
Github GHSA