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.
{
"sources": [
{
"imported": "2026-04-20T18:31:44.643Z",
"database_specific": {
"status": "Analyzed"
},
"modified": "2026-02-25T14:53:34.747Z",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2025-68431",
"id": "CVE-2025-68431",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2025-68431",
"published": "2025-12-29T19:15:56.933Z"
},
{
"imported": "2026-04-20T18:31:46.459Z",
"id": "EUVD-2025-205646",
"modified": "2025-12-30T22:26:20Z",
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-205646",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2025-205646",
"published": "2025-12-29T19:09:54Z"
}
],
"license": "CC-BY-4.0"
}