{"id":"CVE-2026-41071","aliases":["CVE-2026-41071"],"related":[],"kind":"vulnerability","state":"published","title":"libheif: Heap buffer over-read in SampleAuxInfoReader via crafted HEIF sequence file with mismatched saiz sample count","summary":"libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, a crafted HEIF sequence file where the saiz box declares more samples than actually exist in the track's chunk table causes a heap-buffer-overflow (out-of-bounds read) in the SampleAuxInfoReader constructor. The SampleAuxInfoReader constructor iterates over saiz->get_num_samples() samples but doesn't validate that this count is consistent with the number of chunks in the chunks vector. When saiz declares more samples than the chunks cover, the loop increments current_chunk past chunks.size(), causing an out-of-bounds read on the chunks vector. The vulnerability is triggered during file parsing (heif_context_read_from_file) without any additional user interaction. Any application using libheif to open untrusted HEIF files is affected. This issue has been fixed in version 1.22.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, a crafted HEIF sequence file where the saiz box declares more samples than actually exist in the track's chunk table causes a heap-buffer-overflow (out-of-bounds read) in the SampleAuxInfoReader constructor. The SampleAuxInfoReader constructor iterates over saiz->get_num_samples() samples but doesn't validate that this count is consistent with the number of chunks in the chunks vector. When saiz declares more samples than the chunks cover, the loop increments current_chunk past chunks.size(), causing an out-of-bounds read on the chunks vector. The vulnerability is triggered during file parsing (heif_context_read_from_file) without any additional user interaction. Any application using libheif to open untrusted HEIF files is affected. This issue has been fixed in version 1.22.0.","source":"cvelist"},{"lang":"es","text":"libheif es un decodificador y codificador de formato de archivo HEIF y AVIF. En las versiones 1.21.2 y anteriores, un archivo de secuencia HEIF manipulado donde la caja 'saiz' declara más muestras de las que realmente existen en la tabla de fragmentos (chunk table) de la pista causa un desbordamiento de búfer de montón (heap-buffer-overflow) (lectura fuera de límites) en el constructor 'SampleAuxInfoReader'. El constructor 'SampleAuxInfoReader' itera sobre 'saiz->get_num_samples()' muestras pero no valida que este recuento sea consistente con el número de fragmentos en el vector de fragmentos (chunks vector). Cuando 'saiz' declara más muestras de las que cubren los fragmentos, el bucle incrementa 'current_chunk' más allá de 'chunks.size()', causando una lectura fuera de límites en el vector de fragmentos (chunks vector). La vulnerabilidad se activa durante el análisis del archivo ('heif_context_read_from_file') sin ninguna interacción adicional del usuario. Cualquier aplicación que utilice 'libheif' para abrir archivos HEIF no confiables se ve afectada. Este problema ha sido solucionado en la versión 1.22.0.","source":"nvd"}],"published":"2026-05-22T20:59:09.822Z","modified":"2026-07-23T11:10:00.120Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N","score":5.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"version":"< 1.22.0","status":"affected"}],"vendor":"strukturag","product":"libheif","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.22.0"}],"vendor":"struktur","product":"libheif","cpe":"cpe:2.3:a:struktur:libheif:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/strukturag/libheif/security/advisories/GHSA-xj92-xjff-h8w3","tags":["exploit","mitigation","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/strukturag/libheif/releases/tag/v1.22.0","tags":["product","release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-27T13:24:56.491Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41071","url":"https://www.cve.org/CVERecord?id=CVE-2026-41071","licence":"CVE Terms of Use","modified":"2026-05-27T13:25:06.805Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41071","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41071","licence":"Public domain","modified":"2026-07-23T11:10:00.120Z"}],"updatedAt":"2026-11-25T22:59:22.209Z","epss":{"score":0.00302,"percentile":0.24652,"date":"2026-12-01T12:00:22.000Z"}}