libheif is a HEIF and AVIF file format decoder and encoder. Prior to version 1.22.0, two bugs in libheif chain to leak process heap memory as visible pixel values in decoded grid images. An attacker who uploads a crafted AVIF/HEIC file to any server-side image processor (WordPress, Sharp/libvips, ImageMagick, etc.) can recover heap data - including library function pointers sufficient to defeat ASLR, or any other secret - from the publicly-downloadable transcoded JPEG/PNG/WebP output. Local attack vectors are also possible. Version 1.22.0 fixes the issue.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/strukturag/libheif/security/advisories/GHSA-2vh6-whr3-cmq3 Exploit, Vendor Advisory, Mitigation
- https://github.com/strukturag/libheif/security/advisories/GHSA-2vh6-whr3-cmq3 Exploit, Vendor Advisory, Mitigation
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 7.5 · strukturNVD modified 2026-10-24 19:10
Affected (CPE criteria) 1
cpe:2.3:a:struktur:libheif:*:*:*:*:*:*:*:*
References 2
- https://github.com/strukturag/libheif/security/advisories/GHSA-2vh6-whr3-cmq3 Exploit, Vendor Advisory, Mitigation
- https://github.com/strukturag/libheif/security/advisories/GHSA-2vh6-whr3-cmq3 Exploit, Vendor Advisory, Mitigation