zt-zip: ZipUtil.unpack can change file permissions of output directory
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.1.
zt-zip is a Java library that provides convenience methods for ZIP archive manipulation. Prior to 1.18.1, ZipUtil.unpack(...) can apply stored ZIP-entry permissions to the extraction output directory when an entry name such as / or ./ resolves to that directory itself. Because the path traversal checks permit self-referencing entries that do not escape the destination, the unpacker's permission-handling path can replace restrictive output-directory permissions with attacker-supplied permissions. This affects applications that unpack untrusted ZIP files, and POSIX systems demonstrate the issue directly, while ZTFilePermissionsUtil.fetchDefaultStrategy provides fallback permission handling on other supported systems. This issue is fixed in version 1.18.1.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| zeroturnaround | <1.18.1 | ||
| maven: org.zeroturnaround:zt-zip | <=1.18.0 | 1.18.1 |
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