zt-zip: ZipUtil.unpack can change file permissions of output directory
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| zeroturnaround | zt-zip | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Zeroturnaround | Zt-zip |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-v2g6-7r9j-v6px | zt-zip: ZipUtil.unpack can change file permissions of output directory |
No CVSS v3.1
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.280% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Zeroturnaround
Zeroturnaround zt-zip |
|
| Vendors & Products |
Zeroturnaround
Zeroturnaround zt-zip |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | zt-zip: ZipUtil.unpack can change file permissions of output directory | |
| Weaknesses | CWE-23 | |
| References |
| |
| Metrics |
cvssV4_0
|