Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft HEIF grid with 64-bit alpha unci tiles
-
DeliveryDeliver file to victim application
-
Exploitlibheif decodes grid and clones alpha plane
-
ExecutionReachable assertion alpha_bpp<=16 fails
-
ImpactApplication aborts (denial of service)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V16 - Security Logging and Error Handling Reachable assertion handling
|
| Exploitation Conditions | Exploitation requires two specific build conditions that sharply limit real-world exposure: (1) libheif compiled with WITH_UNCOMPRESSED_CODEC, which the advisory states is disabled in the default build configuration; and (2) for the actual crash, assertions enabled - i.e. debug builds or any build that does not define NDEBUG, which includes some distribution packages. The attacker must get the victim's application to decode an untrusted HEIF file whose unci tiles declare an alpha component wider than 16 bits (e.g. 64-bit), matching CVSS UI:P. Limiting factors: non-default codec, build-time assertion setting, and required file processing by the victim. In release builds without assertions the same input produces undefined behaviour but no observed memory corruption - decoding ends with a regular error, so there is no DoS in that configuration. The vendor's complete fix is upgrading to 1.23.6; stated workarounds are building with -DWITH_UNCOMPRESSED_CODEC=OFF or with NDEBUG defined (e.g. -DCMAKE_BUILD_TYPE=Release). |
| Impact | The signals converge on a low-to-moderate, availability-only issue rather than an urgent priority. The vendor CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:P) scores 6.0 and limits impact to VA:H with VC:N/VI:N - a denial of service, not confidentiality or integrity loss. CWE-617 (reachable assertion) and the GHSA confirm the worst outcome is process termination; the maintainer reports no out-of-bounds access under AddressSanitizer, so the CWE-1335 undefined shift in non-assertion builds degrades to a normal decode error rather than memory corruption. Not in CISA KEV and no EPSS score is supplied, so there is no evidence of active or probable exploitation; the vuln.today Decision label is 'this_month' (not act_now/emergency), consistent with a patch-on-normal-cadence item. The AC:H/AT:P metrics reflect real preconditions, not a race: exploitation requires a non-default build (WITH_UNCOMPRESSED_CODEC enabled) and, for the crash specifically, assertions compiled in. Net: a genuine but narrowly-scoped DoS against a subset of libheif builds - treat as routine patching, not an emergency. |
| Exploit ScenarioDerived | An attacker crafts a ~6 KB HEIF file containing a grid of uncompressed ('unci') tiles whose cmpd/uncC boxes declare a 64-bit alpha component, then delivers it (email, web, messaging) to a victim whose application decodes it with libheif. If that libheif was built with the uncompressed codec and with assertions enabled, decoding hits the alpha_bpp<=16 assertion and the application aborts. The GHSA advisory documents the exact file construction and a reproducing command (heif-dec grid_alpha64.heif), but no packaged working exploit is distributed. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Decoding a crafted HEIF grid image with libheif 1.22.0 through 1.23.5 can terminate an application that has assertions enabled, because grid tiles using the uncompressed (unci) codec may declare an alpha component wider than 16 bits, breaking an internal assumption in ImageItem_Grid::decode_and_paste_tile_image(). Exposure is narrow: the flaw only exists in builds compiled with WITH_UNCOMPRESSED_CODEC, which the vendor says is off in the default configuration, and the actual abort requires a non-NDEBUG build such as a debug build or certain distribution packages. In assertion-free release builds the same file instead performs an undefined 64-bit shift that ends in a regular decoding error with no observed memory corruption, so the impact is availability-only; the vendor advisory includes a PoC that is a roughly 6 KB file, and the priority label places remediation in a monthly cadence rather than an emergency one.
RemediationAI
Vendor-released patch: upgrade to libheif 1.23.6 (fixed from 1.22.0 through 1.23.5), which removes the assertion and computes the opaque alpha value safely for unsigned integer planes up to 64 bits while warning instead of aborting for other sample types; the change is in commit 858398f9654113b5b049beb8f2855a8e291fde19 and the advisory is at https://github.com/strukturag/libheif/security/advisories/GHSA-3gwx-cjv4-jr74. Where upgrading must be deferred, the vendor's stated workarounds are to build with -DWITH_UNCOMPRESSED_CODEC=OFF, which removes the reachable path entirely at the cost of losing uncompressed (unci) image support, or to build with NDEBUG defined, for example -DCMAKE_BUILD_TYPE=Release, which stops the abort but leaves the undefined shift in place as a benign-in-practice decoding error and also removes every other assertion in the library. Applications that decode untrusted HEIF input and ship assertion-enabled builds should prioritise the 1.23.6 upgrade, since the mitigation that preserves functionality is the patch 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 represents a HEIF 'grid' item as a canvas assembled from multiple independently coded tiles. In ImageItem_Grid::decode_and_paste_tile_image() the canvas is created as a clone of the first decoded tile, including its alpha plane, and the alpha plane is then filled with an opaque default value so that tiles lacking alpha appear opaque. That default was computed as (1UL << alpha_bpp) - 1 into a uint16_t, guarded only by assert(alpha_bpp <= 16). Since 1.22.0 the uncompressed codec (unci, ISO/IEC 23001-17) supports components of 32, 64 and 128 bits, so a tile can legitimately carry an alpha component of 64 bits or more, with the bit depth read straight from the file's cmpd and uncC boxes. The root cause is the assert-only validation (CWE-617, reachable assertion): when assertions are compiled in the process aborts, and when they are not, the shift by 64 is undefined behaviour (CWE-1335). The upstream fix replaces the 16-bit fill helper with a datatype- and word-width-aware fill_channel() taking a uint64_t, computes UINT64_MAX for 64-bit planes, and emits a heif_error_Unsupported_feature warning instead of aborting for signed, float, complex or >64-bit alpha planes, which are left zero. Only builds with WITH_UNCOMPRESSED_CODEC are reachable.
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
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
File arrives over network (AV:N) and victim must process it (UI:R); AC:H because it needs a non-default uncompressed-codec build with assertions enabled; impact is crash-only, so A:H with C:N/I:N.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
libheif 1.22.0 before 1.23.6 contains a reachable assertion in ImageItem_Grid::decode_and_paste_tile_image() that allows attackers to crash applications by supplying grid images with oversized alpha planes. Attackers can craft a HEIF file containing a grid of uncompressed (unci) tiles with a 64-bit alpha component to terminate the decoding application or trigger an undefined shift.
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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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
EUVD-2026-141721
GHSA-j8r7-6jhr-hf43
NVD
CVE.org
Exploit-DB