Skip to main content

libheif CVE-2026-32740

| EUVDEUVD-2026-30978 HIGH
Out-of-bounds Write (CWE-787)
2026-05-19 GitHub_M
8.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft HEIF/AVIF with 1×4 odd-height grid
  2. Delivery
    Deliver via email, chat, or web
  3. Exploit
    Victim previews or opens file
  4. Execution
    libheif grid compositor writes 64 controlled bytes past chroma plane
  5. Persist
    Corrupt heap metadata or object pointers
  6. Impact
    Achieve 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

libheif < 1.22.0

Affected Packages

euvd libheif fix: 1.22.0

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

Vendor (GitHub_M) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
SUSE HIGH
Red Hat 8.8 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

1
Patch available
May 19, 2026 - 20:02 EUVD

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2023-49464 HIGH POC
8.8 Dec 07

libheif v1.17.5 was discovered to contain a segmentation violation via the function UncompressedImageCodec::get_luma_bit

CVE-2023-49463 HIGH POC
8.8 Dec 07

libheif v1.17.5 was discovered to contain a segmentation violation via the function find_exif_tag at /libheif/exif.cc. R

CVE-2023-49462 HIGH POC
8.8 Dec 07

libheif v1.17.5 was discovered to contain a segmentation violation via the component /libheif/exif.cc. Rated high severi

CVE-2023-49460 HIGH POC
8.8 Dec 07

libheif v1.17.5 was discovered to contain a segmentation violation via the function UncompressedImageCodec::decode_uncom

CVE-2019-11471 HIGH POC
8.8 Apr 23

libheif 1.4.0 has a use-after-free in heif::HeifContext::Image::set_alpha_channel in heif_context.h because heif_context

CVE-2024-41311 HIGH POC
8.1 Oct 15

In Libheif 1.17.6, insufficient checks in ImageOverlay::parse() decoding a heif file containing an overlay image with fo

CVE-2024-25269 HIGH POC
7.5 Mar 05

libheif <= 1.17.6 contains a memory leak in the function JpegEncoder::Encode. Rated high severity (CVSS 7.5), this vulne

CVE-2025-68431 HIGH POC
7.1

Out-of-bounds read in libheif's HEIF/HEIC overlay processing can disclose limited memory contents and crash affected app

CVE-2023-29659 MEDIUM POC
6.5 May 05

A Segmentation fault caused by a floating point exception exists in libheif 1.15.1 using crafted heif images via the hei

CVE-2025-29482 MEDIUM POC
6.2 Apr 07

Buffer Overflow vulnerability in libheif 1.19.7 allows a local attacker to execute arbitrary code via the SAO (Sample Ad

CVE-2026-84383 CRITICAL
9.8 Sep 04

Heap-based buffer overflow in libheif before 1.23.2 allows remote attackers to corrupt memory and potentially achieve co

CVE-2026-47178 HIGH
7.8 Jul 21

Arbitrary code execution in libheif 1.19.0 through 1.21.2 via a crafted HEIF file with uncompressed, tiled, component-in

Vendor 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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy