{"id":"CVE-2025-68431","aliases":["CVE-2025-68431"],"related":[],"kind":"vulnerability","state":"published","title":"libheif has Potential Heap Buffer Over-Read","summary":"libheif is an HEIF and AVIF file format decoder and encoder. Prior to version 1.21.0, a crafted HEIF that exercises the overlay image item path triggers a heap buffer over-read in `HeifPixelImage::overlay()`. The function computes a negative row length (likely from an unclipped overlay rectangle or invalid offsets), which then underflows when converted to `size_t` and is passed to `memcpy`, causing a very large read past the end of the source plane and a crash. Version 1.21.0 contains a patch. As a workaround, avoid decoding images using `iovl` overlay boxes.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"libheif is an HEIF and AVIF file format decoder and encoder. Prior to version 1.21.0, a crafted HEIF that exercises the overlay image item path triggers a heap buffer over-read in `HeifPixelImage::overlay()`. The function computes a negative row length (likely from an unclipped overlay rectangle or invalid offsets), which then underflows when converted to `size_t` and is passed to `memcpy`, causing a very large read past the end of the source plane and a crash. Version 1.21.0 contains a patch. As a workaround, avoid decoding images using `iovl` overlay boxes.","source":"cvelist"},{"lang":"es","text":"libheif es un decodificador y codificador de formato de archivo HEIF y AVIF. Antes de la versión 1.21.0, un HEIF manipulado que ejerce la ruta del elemento de imagen de superposición desencadena una lectura excesiva del búfer de pila en 'HeifPixelImage::overlay()'. La función calcula una longitud de fila negativa (probablemente de un rectángulo de superposición no recortado o de desplazamientos no válidos), lo que luego provoca un desbordamiento negativo cuando se convierte a 'size_t' y se pasa a 'memcpy', causando una lectura muy grande más allá del final del plano de origen y un fallo. La versión 1.21.0 contiene un parche. Como solución alternativa, evite decodificar imágenes usando cajas de superposición 'iovl'.","source":"nvd"}],"published":"2025-12-29T19:09:54.628Z","modified":"2026-10-07T12:10:00.170Z","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:L/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125","CWE-190"],"affected":[{"ranges":[{"version":"< 1.21.0","status":"affected"}],"vendor":"strukturag","product":"libheif","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.21.0"}],"vendor":"struktur","product":"libheif","cpe":"cpe:2.3:a:struktur:libheif:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/strukturag/libheif/security/advisories/GHSA-j87x-4gmq-cqfq","tags":["exploit","patch","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/strukturag/libheif/commit/b8c12a7b70f46c9516711a988483bed377b78d46","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/strukturag/libheif/releases/tag/v1.21.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":"2025-12-30T21:54:12.455Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68431","url":"https://www.cve.org/CVERecord?id=CVE-2025-68431","licence":"CVE Terms of Use","modified":"2025-12-30T22:26:20.374Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68431","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68431","licence":"Public domain","modified":"2026-10-07T12:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:10.011Z","epss":{"score":0.00751,"percentile":0.51214,"date":"2026-11-30T12:00:22.000Z"}}