# CVE-2026-47254: libheif Has Heap Buffer Overflow in \`Track::get\_next\_sample\_raw\_data()\` -- OOB Chunk Vector Access

- Priority: **Routine**
- Reason: Not severe (CVSS 6.1, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-21 · Modified: 2026-07-22
- Aliases: UBUNTU-CVE-2026-47254, DEBIAN-CVE-2026-47254
- Record: https://cvemate.com/vulnerability/CVE-2026-47254 · JSON: https://cvemate.com/vulnerability/CVE-2026-47254/json

## Description

```text
libheif is a HEIF and AVIF file format decoder and encoder. Prior to version 1.22.0, `Track::init_sample_timing_table()` in `libheif/sequences/track.cc` stores an out-of-bounds chunk index (`m_chunks.size()`) into `m_presentation_timeline` when the number of chunks defined in the `stco` box is less than the number of samples in `stsz`. A subsequent call to `heif_track_get_next_raw_sequence_sample()` reads `m_chunks[chunk_idx]` with that OOB index, causing a heap-buffer-overflow. Version 1.22.0 fixes the issue.
```

## Signals

- CVSS: 6.1 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
- EPSS: 0.189%, percentile 8.851%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian libheif (Debian): All versions (No fix recorded) \| \< 1.23.1-1
- ubuntu libheif (Ubuntu): \< 1.21.2-3ubuntu0.3
- struktur libheif: \< 1.22.0
- strukturag libheif: \< 1.22.0

## References

- <https://github.com/strukturag/libheif/security/advisories/GHSA-wqjg-4x9g-6cvg>
- <https://ubuntu.com/security/CVE-2026-47254>
- <https://www.cve.org/CVERecord?id=CVE-2026-47254>
- <https://ubuntu.com/security/notices/USN-8526-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-47254>

---

Data as of 2026-12-05T09:39:43.421Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
