{"id":"CVE-2026-32740","published":"2026-05-19T19:22:07Z","modified":"2026-07-15T01:07:45Z","title":"libheif: Heap-Buffer-Overflow Write in Grid Tile Chroma Compositing","vendor":"strukturag","product":"libheif","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00684,"percentile":0.53504,"provenance":"source"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://github.com/strukturag/libheif/security/advisories/GHSA-frfr-f3vg-2g6j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/strukturag/libheif/releases/tag/v1.22.0","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-32740","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2479969","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32740.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":21.9,"factors":[{"name":"EPSS percentile","points":10.7},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.16}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-09-24","earliestUrl":"https://github.com/FORTBRIDGE-UK/libheif-grid-nextjs-rce","repos":[{"name":"FORTBRIDGE-UK/libheif-grid-nextjs-rce","url":"https://github.com/FORTBRIDGE-UK/libheif-grid-nextjs-rce","stars":1,"created":"2026-09-24"}]},"first":{"date":"2026-09-24","source":"PoC-in-GitHub","url":"https://github.com/FORTBRIDGE-UK/libheif-grid-nextjs-rce"},"provenance":"source"},"vendorSlug":"strukturag","affectedVersions":[{"vendor":"strukturag","product":"libheif","versions":["< 1.22.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-05-21T03:55:32.284407Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-30978","exploited":false,"provenance":"source"}}