CVE-2026-47178
libheif has Heap Out Of Bounds Write in unci subsystem
Reported by github_m · Published July 21, 2026
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.19.0 through 1.21.2, a crafted HEIF file (uncompressed `unci` codec, tiled, component-interleaved, 4:2:0) triggers a heap out-of-bounds write in libheif's uncompressed tile decoder. The write overwrites the C++ vtable pointer of an adjacent `unc_decoder_component_interleave` object; the next virtual call dispatches to an attacker-chosen address. Version 1.22.0 patches the issue.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libheif | Amazon Linux | 1.19.8-1.amzn2023.0.6 |
| heif-pixbuf-loader | Amazon Linux | 1.19.8-1.amzn2023.0.6 |
| libheif-tools | Amazon Linux | 1.19.8-1.amzn2023.0.6 |
| libheif | struktur | 1.22.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| strukturag | libheif | >= 1.19.0, < 1.22.0 |
| amazon:2023 | libheif | 0 |
| amazon:2023 | heif-pixbuf-loader | 0 |
| amazon:2023 | libheif-tools | 0 |
| strukturag | libheif | 1.19.0 |
| amazon:2023 | libheif-devel | 0 |
Timeline
- May 28, 2026 CVE Published
- Jul 22, 2026 Coalition ESS Score
- Jul 22, 2026 CVE Updated
- Aug 7, 2026 EPSS Score (15 in total, the first dated here)
- Sep 20, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-47178
vulnetix vdb fixes CVE-2026-47178
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-47178/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/strukturag/libheif/security/advisories/GHSA-5x55-x5pf-9c6g x_refsource_CONFIRM