Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessUpload crafted HEIF grid image with corrupted tile
-
DeliveryServer decodes file with libheif default strict_decoding=false
-
ExploitTile decode fails silently, heif_error_Ok returned to caller
-
ExecutionUninitialized Y/Cb/Cr heap planes delivered as pixel data
-
PersistServer re-encodes canvas to PNG/JPEG thumbnail
-
ImpactAttacker 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 (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
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
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. 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
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
Heap buffer overflow write in libheif (versions ≤ 1.21.2) lets a crafted HEIF/AVIF file write 64 bytes of attacker-contr
Same weakness CWE-200 – Information Exposure
View allSame technique Information Disclosure
View allVendor 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 |
| 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-30980
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB