zt-zip: ZipUtil.unpack can change file permissions of output directory
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| zeroturnaroundzt-zip | — | 記載なし |
| mavenorg.zeroturnaround:zt-zip |
1.18.1 未満→ 1.18.1 |
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.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com