Skip to main content

libheif EUVDEUVD-2026-141721

| CVE-2026-142503 MEDIUM
Reachable Assertion (CWE-617)
2026-12-02 VulnCheck GHSA-j8r7-6jhr-hf43
6.0
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft HEIF grid with 64-bit alpha unci tiles
  2. Delivery
    Deliver file to victim application
  3. Exploit
    libheif decodes grid and clones alpha plane
  4. Execution
    Reachable assertion alpha_bpp<=16 fails
  5. Impact
    Application 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available

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

Alert me

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

libheif 1.22.0 <1.23.6

Affected Packages

euvd libheif fix: 1.23.6

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

Vendor (VulnCheck) PRIMARY 6.0 MEDIUM
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
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Prevalence
Medium
common HEIF/HEIC decoding library, but vulnerable uncompressed codec off by default
Data Quality
3 sources
Confidence: Low

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 N/A
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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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

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