{"id":"CVE-2026-32738","aliases":["CVE-2026-32738"],"related":[],"kind":"vulnerability","state":"published","title":"libheif has a Heap OOB Read/SEGV Crash via Zero samples_per_chunk","summary":"libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and below, a crafted 792-byte HEIF sequence file with samples_per_chunk=0 in the stsc box causes an unsigned integer underflow in the Chunk constructor (m_last_sample = 0 + 0 - 1 = UINT32_MAX), mapping all samples to an empty chunk and resulting in a denial of service. When any sample is accessed, the library reads from index 0 of an empty std::vector, causing a guaranteed SEGV (null-page read). The file parses successfully without producing an error; the crash occurs on the first frame access. 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 below, a crafted 792-byte HEIF sequence file with samples_per_chunk=0 in the stsc box causes an unsigned integer underflow in the Chunk constructor (m_last_sample = 0 + 0 - 1 = UINT32_MAX), mapping all samples to an empty chunk and resulting in a denial of service. When any sample is accessed, the library reads from index 0 of an empty std::vector, causing a guaranteed SEGV (null-page read). The file parses successfully without producing an error; the crash occurs on the first frame access. 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 e inferiores, un archivo de secuencia HEIF de 792 bytes manipulado con samples_per_chunk=0 en la caja stsc causa un desbordamiento negativo de entero sin signo en el constructor de Chunk (m_last_sample = 0 + 0 - 1 = UINT32_MAX), mapeando todas las muestras a un fragmento vacío y resultando en una denegación de servicio. Cuando se accede a cualquier muestra, la biblioteca lee desde el índice 0 de un std::vector vacío, causando un SEGV garantizado (lectura de página nula). El archivo se analiza correctamente sin producir un error; el fallo ocurre en el primer acceso al fotograma. Este problema ha sido corregido en la versión 1.22.0.","source":"nvd"}],"published":"2026-05-19T19:03:48.553Z","modified":"2026-07-24T09:10:00.153Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-125","CWE-476"],"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-7f2h-cmpf-v9ww","tags":["exploit","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-05-19T19:35:48.534Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-32738","url":"https://www.cve.org/CVERecord?id=CVE-2026-32738","licence":"CVE Terms of Use","modified":"2026-05-19T19:38:59.260Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-32738","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32738","licence":"Public domain","modified":"2026-07-24T09:10:00.153Z"}],"updatedAt":"2026-11-25T22:59:21.992Z","epss":{"score":0.00301,"percentile":0.24646,"date":"2026-12-01T12:00:22.000Z"}}