{"id":"CVE-2025-68431","published":"2025-12-29T19:09:54Z","modified":"2025-12-30T22:26:20Z","title":"libheif has Potential Heap Buffer Over-Read","vendor":"strukturag","product":"libheif","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00427,"percentile":0.37704,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"},{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/strukturag/libheif/security/advisories/GHSA-j87x-4gmq-cqfq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/strukturag/libheif/commit/b8c12a7b70f46c9516711a988483bed377b78d46","tags":["x_refsource_MISC"]},{"url":"https://github.com/strukturag/libheif/releases/tag/v1.21.0","tags":["x_refsource_MISC"]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":7.54},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"strukturag","affectedVersions":[{"vendor":"strukturag","product":"libheif","versions":["< 1.21.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-12-30T21:54:12.455580Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-205646","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-struktur-libheif-cve-2024-41311","parents":[{"from":"CVE-2024-41311","to":"CVE-2025-68431","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["libheif/pixelimage.cc"],"commits":["https://github.com/strukturag/libheif/commit/a3ed1b1eb178c5d651d6ac619c8da3d71ac2be36","https://github.com/strukturag/libheif/commit/b8c12a7b70f46c9516711a988483bed377b78d46"],"basis":"shared function","functions":["overlay"]}]}]}}