Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft HEIF/AVIF with 1×4 odd-height grid
-
DeliveryDeliver via email, chat, or web
-
ExploitVictim previews or opens file
-
Executionlibheif grid compositor writes 64 controlled bytes past chroma plane
-
PersistCorrupt heap metadata or object pointers
-
ImpactAchieve code execution in decoder process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires the victim's libheif build to handle a HEIF or AVIF file containing a grid-derived image with a 1×4 tile layout where the tiles have odd pixel height - the description states the overflow is triggered 'during normal image decoding with default build configuration', so no non-default compile flags or runtime options are needed. The only limiting factor is CVSS UI:R: the file must be opened, previewed, or auto-thumbnailed by an application linking libheif ≤ 1.21.2; no authentication, network listener, or special privileges are needed on the target. Platform is anywhere libheif runs (Linux, macOS, Windows, Android, iOS via downstream ports). |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H scores 8.8: network-reachable (any file delivery channel), low complexity, no privileges, but user interaction required to open/preview the file. SSVC-style read: technical impact is total (heap write with full content control), automatable is plausible since the trigger is just a malformed file served via web/email/messenger, but exploitation status is currently 'none' - no KEV listing and no public exploit identified at time of analysis. EPSS data was not provided in the input. The real-world risk is meaningfully elevated above a typical heap overflow because libheif is silently invoked by OS thumbnailers and chat clients, turning 'UI:R' into little more than a file arriving in a folder; treat as a high-priority patch even without confirmed in-the-wild use. |
| Exploit ScenarioDerived | An attacker emails or messages a victim a HEIC/AVIF photo whose grid box describes a 1×4 layout with odd-height tiles; when the victim's mail client, browser, or file manager auto-generates a thumbnail, libheif's grid compositor writes 64 attacker-chosen bytes past a chroma-plane heap chunk, corrupting adjacent allocator metadata or object pointers to pivot toward code execution in the rendering process. The CVSS UI:R requirement is satisfied by routine preview behavior rather than an explicit double-click. No public exploit identified at time of analysis, but the fully-controlled overflow content makes weaponization tractable. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 19, 2026
Heap buffer overflow write in libheif (versions ≤ 1.21.2) lets a crafted HEIF/AVIF file write 64 bytes of attacker-controlled data past a chroma-plane heap allocation during grid tile compositing. Any application using libheif to decode untrusted images - image viewers, file managers, browsers, mobile OS thumbnailers - is exposed, with CVSS 8.8 reflecting likely code execution after user-triggered file open. No public exploit identified at time of analysis, but the deterministic 64-byte fully-controlled overflow is highly favorable for exploitation.
RemediationAI
Vendor-released patch: upgrade libheif to 1.22.0 or later (release https://github.com/strukturag/libheif/releases/tag/v1.22.0, advisory https://github.com/strukturag/libheif/security/advisories/GHSA-frfr-f3vg-2g6j); rebuild or repackage any application that statically links libheif and ensure distro packages (Debian, Ubuntu, RHEL, Alpine, Homebrew) are refreshed since most software loads the system shared library. Where immediate upgrade is impossible, disable HEIF/AVIF handlers in thumbnailers and mail/chat clients (e.g., remove the heif mime association or unregister gdk-pixbuf/QtImageFormats HEIF plugins) and block .heic/.heif/.avif at email and web proxies - trade-off is loss of legitimate HEIC preview, which is common on iPhone-sourced images. Sandboxing the decoder process (bubblewrap, seccomp, AppArmor) reduces blast radius but does not prevent the corruption itself.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
libheif is the dominant open-source HEIF/AVIF encoder/decoder maintained by struktur AG (CPE cpe:2.3:a:strukturag:libheif), embedded in GIMP, ImageMagick, GNOME/KDE thumbnailers, Nextcloud preview generators, and many distro image pipelines. The bug is a CWE-787 out-of-bounds write in the grid tile compositor: when reassembling a 1×4 grid of odd-height tiles, the chroma (Cb/Cr) plane allocation is undersized relative to the per-tile copy loop, so 64 bytes of chroma pixel data from the final tile spill past the heap allocation. Because the overflow content is raw chroma pixel values copied verbatim from the attacker's tile, the attacker chooses every byte of the overflow - a strong primitive against adjacent heap metadata or function pointers.
Know when Libheif gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Executive ViewAI
A critical memory corruption vulnerability in libheif (CVE-2026-32740, CVSS 8.8) affects all applications using this widely-deployed image-decoding library-browsers, file managers, and mobile operating systems-allowing arbitrary code execution when users open maliciously crafted HEIF/AVIF image files. No public exploit has been identified at time of analysis, but the vulnerability's characteristics present a high exploitation risk. Leadership should prioritize patching across the organization given the ubiquitous nature of affected applications.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
libheif v1.17.5 was discovered to contain a segmentation violation via the function UncompressedImageCodec::get_luma_bit
libheif v1.17.5 was discovered to contain a segmentation violation via the function find_exif_tag at /libheif/exif.cc. R
libheif v1.17.5 was discovered to contain a segmentation violation via the component /libheif/exif.cc. Rated high severi
libheif v1.17.5 was discovered to contain a segmentation violation via the function UncompressedImageCodec::decode_uncom
libheif 1.4.0 has a use-after-free in heif::HeifContext::Image::set_alpha_channel in heif_context.h because heif_context
In Libheif 1.17.6, insufficient checks in ImageOverlay::parse() decoding a heif file containing an overlay image with fo
libheif <= 1.17.6 contains a memory leak in the function JpegEncoder::Encode. Rated high severity (CVSS 7.5), this vulne
Out-of-bounds read in libheif's HEIF/HEIC overlay processing can disclose limited memory contents and crash affected app
A Segmentation fault caused by a floating point exception exists in libheif 1.15.1 using crafted heif images via the hei
Buffer Overflow vulnerability in libheif 1.19.7 allows a local attacker to execute arbitrary code via the SAO (Sample Ad
Heap-based buffer overflow in libheif before 1.23.2 allows remote attackers to corrupt memory and potentially achieve co
Arbitrary code execution in libheif 1.19.0 through 1.21.2 via a crafted HEIF file with uncompressed, tiled, component-in
Same weakness CWE-787 – Out-of-bounds Write
View allSame technique Buffer Overflow
View allVendor StatusVendor
SUSE
Severity: High| Product | Status |
|---|---|
| SUSE Linux Enterprise Desktop 15 SP7 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Fixed |
| SUSE Linux Enterprise Module for Desktop Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 16.0 | Fixed |
| SUSE Linux Enterprise Server 16.1 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Fixed |
| openSUSE Leap 16.0 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Module for Desktop Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Module for Desktop Applications 15 SP5 | Fixed |
| SUSE Linux Enterprise Module for Desktop Applications 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP4 | Fixed |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP5 | Fixed |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Fixed |
| SUSE Manager Proxy 4.3 | Fixed |
| SUSE Manager Retail Branch Server 4.3 | Fixed |
| SUSE Manager Server 4.3 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP4 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP5 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP6 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Fixed |
| SUSE Linux Enterprise Real Time 15 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Fixed |
| openSUSE Leap 15.4 | Fixed |
| openSUSE Leap 15.5 | Fixed |
| openSUSE Leap 15.6 | Fixed |
EUVD-2026-30978
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB