{"id":"CVE-2025-68431","sourceIdentifier":"security-advisories@github.com","published":"2025-12-29T19:15:56.933","lastModified":"2026-10-07T12:10:00.170","vulnStatus":"Analyzed","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"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'."}],"affected":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"strukturag","product":"libheif","versions":[{"version":"< 1.21.0","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","baseScore":6.5,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":2.8,"impactScore":3.6},{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":2.8,"impactScore":4.2}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2025-12-30T21:54:12.455580Z","id":"CVE-2025-68431","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-125"},{"lang":"en","value":"CWE-190"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:struktur:libheif:*:*:*:*:*:*:*:*","versionEndExcluding":"1.21.0","matchCriteriaId":"BBD4D6C6-A38E-4C2C-AB9D-F82441BE2D4F"}]}]}],"references":[{"url":"https://github.com/strukturag/libheif/commit/b8c12a7b70f46c9516711a988483bed377b78d46","source":"security-advisories@github.com","tags":["Patch"]},{"url":"https://github.com/strukturag/libheif/releases/tag/v1.21.0","source":"security-advisories@github.com","tags":["Product","Release Notes"]},{"url":"https://github.com/strukturag/libheif/security/advisories/GHSA-j87x-4gmq-cqfq","source":"security-advisories@github.com","tags":["Exploit","Patch","Vendor Advisory"]}]}