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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47254.json",
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-125"
]
}[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"175107675317900759648359576881034358256",
"220432159010798240840908416937024023837",
"268268967745545109707798594937166387611",
"253707932335489477155115861206639265538",
"199679408075604976163979654915891773303",
"175107675317900759648359576881034358256",
"220432159010798240840908416937024023837",
"268268967745545109707798594937166387611",
"286778284410146987248233194002847271266",
"178248309108630471590778685235254536836"
]
},
"signature_version": "v1",
"source": "https://github.com/strukturag/libheif/commit/0c81a846b7401dbdb7118afd0761057f21e43511",
"signature_type": "Line",
"target": {
"file": "tests/uncompressed_box.cc"
},
"id": "CVE-2026-47254-91619f1d",
"deprecated": false
}
]
"2026-07-23T08:25:13Z"
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-47254.json"