libheif is a HEIF and AVIF file format decoder and encoder. Versions 1.21.2 and prior contain a heap-buffer-overflow (write) vulnerability in the grid tile compositing, allowing an attacker to write 64 bytes of fully attacker-controlled data past the end of a chroma plane heap allocation by crafting a HEIF/AVIF file with a 1×4 grid of odd-height tiles. The overflow is triggered during normal image decoding with default build configuration. The written bytes are chroma (Cb/Cr) pixel values from the attacking tile, giving the attacker full control over the overflow content. This issue has been fixed in version 1.22.0.
{
"sources": [
{
"published": "2026-05-19T20:16:18.917Z",
"imported": "2026-06-05T14:52:24.541Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-32740",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-32740",
"id": "CVE-2026-32740",
"modified": "2026-05-21T14:16:45Z",
"database_specific": {
"status": "Modified"
}
},
{
"published": "2026-05-19T19:22:07Z",
"imported": "2026-06-05T14:52:25.868Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-30978",
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-30978",
"modified": "2026-05-21T13:06:55Z",
"id": "EUVD-2026-30978"
}
],
"license": "CC-BY-4.0"
}