Skip to main content

libheif CVE-2026-32814

| EUVDEUVD-2026-30980 MEDIUM
Information Exposure (CWE-200)
2026-05-19 GitHub_M
6.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Upload crafted HEIF grid image with corrupted tile
  2. Delivery
    Server decodes file with libheif default strict_decoding=false
  3. Exploit
    Tile decode fails silently, heif_error_Ok returned to caller
  4. Execution
    Uninitialized Y/Cb/Cr heap planes delivered as pixel data
  5. Persist
    Server re-encodes canvas to PNG/JPEG thumbnail
  6. Impact
    Attacker retrieves output image and reads pixel values from corrupted tile region to recover 12,288+ bytes of heap memory

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK

2 techniques across 2 tactics: Collection, Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerability requires the target to process a crafted HEIF or AVIF file containing a grid image layout (using the HEIF grid item type per ISO/IEC 23008-12) with at least one intentionally corrupted constituent tile. The strict_decoding=false setting must be in effect - this is the library default and requires no attacker-controlled configuration change. Per CVSS PR:N, no authentication is required from the attacker; per UI:R, a file-processing action must occur, such as a server decoding an uploaded image or a user opening a malicious .heic file in a client application. Exploitation is strictly limited to confidentiality (C:H); integrity and availability are unaffected per the CVSS vector. In client-side contexts the attacker can typically recover only heap data from their own process, substantially limiting value. High-impact exploitation requires a multi-tenant server-side pipeline where multiple users' decode requests are handled within the same worker process, enabling heap cross-contamination to expose other users' in-memory data as recoverable pixel output.

Impact

The CVSS 6.5 score (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N) reflects an unauthenticated network-exploitable confidentiality impact that requires a file-processing action. For server-side deployments the UI:R flag is operationally misleading: the 'user interaction' is effectively the server's own image pipeline ingesting the uploaded file, not a human click, making automated server-side exploitation more realistic than the score implies. Real-world risk is strongly context-dependent: multi-tenant server-side processors that re-encode output expose cross-process heap contents to attackers, a materially higher impact than the unchanged-scope CVSS rating suggests. Client-side desktop applications expose only the local user's own heap, significantly reducing attacker value. EPSS data was not provided in the supplied intelligence; however, the low attack complexity and absence of any authentication requirement make server-side automated exploitation feasible once a reliable file crafter is developed. No KEV listing and no public POC are confirmed at time of analysis, suggesting no widespread opportunistic exploitation is currently observed. The default-on nature of the vulnerable code path (strict_decoding=false) means the vulnerable surface is the entire installed base without any configuration prerequisite from the attacker.

Exploit ScenarioDerived

An attacker crafts a HEIF grid image with a deliberately corrupted tile using a hex editor or custom tool and submits it to a server-side image processing endpoint such as a profile picture upload. The server decodes the file with libheif at default settings, receives heif_error_Ok, and re-encodes the full canvas as a JPEG or PNG for thumbnail delivery. The attacker retrieves the output image and reads the pixel values in the region corresponding to the corrupted tile, recovering 12,288+ bytes of raw heap memory that may contain fragments of authentication tokens, database query results, or other in-memory data from the process - including content from other users' recent requests processed by the same worker. No public POC has been identified at time of analysis, but exploitation requires only HEIF file-format knowledge and the ability to submit and retrieve processed images.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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 memory disclosure in strukturag libheif versions 1.21.2 and prior exposes up to 12,288+ bytes of uninitialized heap content - potentially containing auth tokens, database results, or other users' image data - when decoding crafted HEIF or AVIF grid images under the library's default settings. The decode path silently suppresses tile failures while returning heif_error_Ok, so calling applications receive heap garbage as valid pixel values with no error indication. Server-side image pipelines that ingest user-uploaded HEIF/AVIF and re-encode the output (e.g., as PNG or JPEG thumbnails for CDNs or social platforms) are at highest cross-user exposure risk; no public exploit code has been identified at time of analysis and the vulnerability is not listed in CISA KEV.

RemediationAI

The primary fix is upgrading libheif to version 1.22.0 or later, confirmed by the vendor at https://github.com/strukturag/libheif/releases/tag/v1.22.0 and the security advisory at https://github.com/strukturag/libheif/security/advisories/GHSA-4m8r-34pg-rvwc. Applications consuming libheif as a shared system library should update the OS package; those vendoring libheif directly should pin to 1.22.0 and rebuild. Language-binding packages (e.g., Python pyheif, Ruby mini_magick with HEIF support) should await updated releases that bundle the patched version. As a compensating control prior to patching, callers can set strict_decoding=true in the libheif API options, which causes corrupted tile failures to surface as actual errors rather than silently returning garbage output - this prevents the information leak but will reject certain malformed-but-partially-valid real-world HEIF files, potentially breaking compatibility with some user-submitted content. In server-side multi-tenant contexts, running image decode workers in isolated per-request processes (e.g., via fork-per-request or container isolation) limits cross-user heap exposure even if the bug is triggered, at the cost of increased process-spawn overhead.

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 (cpe:2.3:a:strukturag:libheif:*:*:*:*:*:*:*:*) is an open-source C++ library implementing HEIF and AVIF file format parsing per MPEG/ISO specifications. The vulnerability is rooted in CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) and manifests in the grid image decoding path. Grid images in HEIF/AVIF are composed of independently coded tiles assembled into a canvas; when strict_decoding=false (the library default), tile decode failures are silently suppressed. The code path calls create_clone_image_at_new_size() → plane.alloc() → new (std::nothrow) uint8_t[allocation_size], which does not zero-initialize the heap allocation. Only the alpha channel plane is explicitly zeroed via fill_plane(); the Y, Cb, and Cr luma/chroma planes retain whatever bytes previously occupied those heap addresses. The corrupted tile's canvas region is never overwritten, so those uninitialized bytes - 4,096 bytes per plane across three planes, totaling 12,288+ bytes minimum - are returned to the caller as decoded pixel values alongside a success status.

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 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
SUSE MEDIUM
Red Hat 6.5 MEDIUM

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
None
Availability
None

Lifecycle Timeline

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

DescriptionCVE.org

libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, when decoding a HEIF grid image with strict_decoding=false (the default), a corrupted tile silently fails to decode and the library returns heif_error_Ok with no indication of failure, leading to an uninitialized heap memory information leak. The canvas is allocated via create_clone_image_at_new_size() → plane.alloc() → new (std::nothrow) uint8_t[allocation_size] which does not zero the memory; only the alpha plane is explicitly initialized via fill_plane(), so the Y, Cb, and Cr planes contain whatever was previously at that heap address. The failed tile's region of the canvas is never written. It retains uninitialized heap data that is delivered to the caller as decoded pixel values (4,096 bytes per Y/Cb/Cr plane = 12,288+ bytes total). Any application using libheif to decode grid-based HEIF/AVIF files with default settings is vulnerable: a crafted .heic or .avif file causes 4,096+ bytes of heap memory to appear as pixel values in the decoded image, and the calling application receives heif_error_Ok, so it has no indication the output contains heap garbage. In server-side image processing, an uploaded crafted HEIF decoded and re-encoded (e.g., as PNG/JPEG for thumbnails, CDN, social media) can leak cross-user data such as auth tokens, database results, and other users' image data. This issue has been fixed in version 1.22.0.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Social Media
1
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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-32740 HIGH
8.8 May 19

Heap buffer overflow write in libheif (versions ≤ 1.21.2) lets a crafted HEIF/AVIF file write 64 bytes of attacker-contr

Vendor StatusVendor

SUSE

Severity: Medium
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