7.5high
libheif Vulnerable to Heap Information Disclosure via Grid Image Gap + Uninitialized Pixel Plane Allocation
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.48% (higher than 34% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| strukturag libheif | < 1.22.0 | CVE List |
| struktur libheif | before 1.22.0 | NVD |
Classification
What each source says
CVE List
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.
NVD (es)
libheif es un decodificador y codificador de formato de archivo HEIF y AVIF. Antes de la versión 1.22.0, dos errores en libheif se encadenan para filtrar memoria del heap del proceso como valores de píxel visibles en imágenes de cuadrícula decodificadas. Un atacante que sube un archivo AVIF/HEIC manipulado a cualquier procesador de imágenes del lado del servidor (WordPress, Sharp/libvips, ImageMagick, etc.) puede recuperar datos del heap - incluyendo punteros de función de biblioteca suficientes para derrotar ASLR, o cualquier otro secreto - del resultado JPEG/PNG/WebP transcodificado y descargable públicamente. Los vectores de ataque locales también son posibles. La versión 1.22.0 corrige el problema.
References
| https://github.com/strukturag/libheif/security/advisories/GHSA-2vh6-whr3-cmq3 | exploit, mitigation, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-47247 changed 2026-07-22 | CVE Terms of Use |
| NVD | CVE-2026-47247 changed 2026-10-24 | Public domain |