Description
zziplib through 0.13.80 contains an out-of-bounds read vulnerability in __zzip_parse_root_directory() in zzip/zip.c that allows attackers to read past the mapped central directory in mmap builds due to an ineffective bounds check. Attackers can supply a crafted ZIP whose entry name ends at the central directory end, triggering 28-byte ZIP64 extra field over-reads via zzip_dir_open() that crash the process.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| gdraheim | zziplib | ≤ 0.13.80 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | zziplib | No fix yet | — |
| Debian 13 | zziplib | No fix yet | — |
| Debian 12 | zziplib | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | zziplib | No fix yet | — |
| Ubuntu 26.04 LTS | zziplib | No fix yet | — |
| Ubuntu 24.04 LTS | zziplib | No fix yet | — |
| Ubuntu 22.04 LTS | zziplib | No fix yet | — |
| Ubuntu 20.04 LTS | zziplib | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | zziplib | No fix yet | — |
| Ubuntu Pro 16.04 LTS | zziplib | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | zziplib | No fix yet | — |
References
- https://hackmd.io/@haind-pwn/zziplib-zip-central-directory-oob-read technical-description
- https://github.com/gdraheim/zziplib/blob/f58313c1f65f46bf73f3526d1afd4d6bb46cc4ae/zzip/zip.c#L530-L558 technical-description
- https://github.com/gdraheim/zziplib product
- VulnCheck Advisory: zziplib through 0.13.80 Out-of-Bounds Read via __zzip_parse_root_directory ZIP64 Parsing third-party-advisory