Technical impact
zt-zip is a Java library that unpacks ZIP archives. Prior to version 1.18.1, its ZipUtil.unpack method applies the permissions stored in a ZIP entry to the directory in which files are extracted. If an entry name such as "/" or "./" is present, the path traversal checks permit the entry to resolve to the output directory itself. Consequently, the library can replace restrictive directory permissions with arbitrary permissions supplied in the archive. This flaw is a directory‑based permission modification vulnerability (CWE‑23).
Affected Systems
The zeroturnaround zt-zip library is affected in all releases older than 1.18.1. Applications that depend on those versions and extract untrusted ZIP files are at risk. The issue is fixed in zt-zip 1.18.1 and newer releases.
Risk and Exploitability
The CVSS score of 6.9 indicates moderate severity. The EPSS score is not available, and the vulnerability is not listed in CISA's KEV catalog. The likely attack vector is an application that unpacks untrusted ZIP files on a POSIX system. The attacker can trigger the permission change by including a self‑referencing entry such as "/" in the archive. Based on the description, it is inferred that if extraction is performed with elevated privileges, the attacker could elevate privileges or bypass access controls by granting write or execute rights to the extraction directory, facilitating the execution of injected code.
Github GHSA