# CVE-2026-47254: libheif Has Heap Buffer Overflow in `Track::get_next_sample_raw_data()` -- OOB Chunk Vector Access

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-21T21:21:41.491Z
- Modified: 2026-10-24T19:10:00.127Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- strukturag libheif: < 1.22.0
- struktur libheif: before 1.22.0

## References

- <https://github.com/strukturag/libheif/security/advisories/GHSA-wqjg-4x9g-6cvg> (exploit, mitigation, vendor-advisory)

## Sources

- CVE List: [CVE-2026-47254](https://www.cve.org/CVERecord?id=CVE-2026-47254), CVE Terms of Use, modified 2026-07-22
- NVD: [CVE-2026-47254](https://nvd.nist.gov/vuln/detail/CVE-2026-47254), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-47254 · Whole record: https://cve.day/CVE-2026-47254.json · Rebuilt by cve.day 2026-11-25T22:59:29.459Z
