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.
Published: 2026-07-21
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

libheif, a library for decoding and encoding HEIF and AVIF images, has two bugs that allow a malicious AVIF/HEIC file to cause the decoder to copy uninitialized pixel planes during grid image decoding, exposing process heap memory as pixel values. An attacker who uploads such a file to any server‑side image processor that relies on libheif—such as WordPress, Sharp/libvips, or ImageMagick—can recover heap data, including function pointers sufficient to defeat ASLR or other secret information, from the publicly‑downloadable transcoded JPEG/PNG/WebP output. Local execution attacks are also possible, and the issue is fixed in libheif version 1.22.0.

Affected Systems

The flaw exists in libheif versions earlier than 1.22.0. Any system that decodes HEIF or AVIF images using libheif—such as WordPress image handlers, Sharp/libvips, and ImageMagick—may be affected. Systems that accept uploaded HEIF/AVIF content and subsequently produce standard image outputs (JPEG, PNG, WebP) are at risk.

Risk and Exploitability

With a CVSS score of 7.5, the vulnerability carries high severity. The EPSS score of less than 1% indicates a low current exploitation probability, and it is not listed in the CISA KEV catalog. Exploitation requires an attacker to supply a crafted HEIF/AVIF file to a server‑side processor that performs a grid image decode and returns a transcoded image to the user, but local execution attacks are also possible. The result is a private‑data leak that could be leveraged to bypass ASLR and enable subsequent code execution techniques.

Generated by OpenCVE AI on August 3, 2026 at 00:18 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the libheif 1.22.0 update, which fixes the heap information disclosure (CWE-200) and the uninitialized memory handling (CWE-226, CWE-682).
  • Ensure that all libraries depending on libheif (Sharp, libvips, ImageMagick, WordPress plugins) link against the patched version and that they do not reintroduce related weaknesses (CWE-908).
  • If a patch cannot be applied immediately, restrict or drop HEIF/AVIF uploads until the vulnerability is mitigated to avoid leaking heap data.

Generated by OpenCVE AI on August 3, 2026 at 00:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6417-1 libheif security update
History

Mon, 27 Jul 2026 23:30:00 +0000

Type Values Removed Values Added
First Time appeared Struktur
Struktur libheif
Vendors & Products Struktur
Struktur libheif

Wed, 22 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 21 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
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.
Title libheif Vulnerable to Heap Information Disclosure via Grid Image Gap + Uninitialized Pixel Plane Allocation
Weaknesses CWE-200
CWE-226
CWE-682
CWE-908
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}


Subscriptions

Struktur Libheif
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-22T14:29:24.487Z

Reserved: 2026-05-18T22:54:18.272Z

Link: CVE-2026-47247

cve-icon Vulnrichment

Updated: 2026-07-22T14:29:20.524Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T00:30:16Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-226

    Sensitive Information in Resource Not Removed Before Reuse

  • CWE-682

    Incorrect Calculation

  • CWE-908

    Use of Uninitialized Resource