CVE-2026-47247 Details
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.
A heap information disclosure vulnerability has been identified in libheif, a library for decoding and encoding HEIF and AVIF file formats. This issue affects versions through 1.21.2. The vulnerability arises from two bugs that, when combined, allow an attacker to leak process heap memory as visible pixel values in decoded grid images. This leaked data can include sensitive information such as library function pointers, which could be used to bypass Address Space Layout Randomization (ASLR), or other secrets. The vulnerability can be exploited by uploading a crafted AVIF or HEIC file to a server-side image processor that uses libheif, such as WordPress, Sharp/libvips, or ImageMagick. The leaked heap data can then be extracted from the publicly downloadable transcoded JPEG, PNG, or WebP output. Local exploitation is also possible.
Users are advised to update to libheif version 1.22.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/strukturag/libheif/security/advisories/GHSA-2vh6-whr3-cmq3 | CISA-ADP | ExploitVendor AdvisoryMitigation |
| https://github.com/strukturag/libheif/security/advisories/GHSA-2vh6-whr3-cmq3 | [email protected] | ExploitVendor AdvisoryMitigation |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-200 | Exposure of Sensitive Information to an Unauthorized Actor | [email protected] |
| CWE-226 | Sensitive Information in Resource Not Removed Before Reuse | [email protected] |
| CWE-682 | Incorrect Calculation | [email protected] |
| CWE-908 | Use of Uninitialized Resource | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| struktur libheif | < 1.22.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 27, 2026 | Initial Analysis | [email protected] |
| Jul 22, 2026 | CVE Modified | CISA-ADP |
| Jul 21, 2026 | New CVE Received | [email protected] |