Skip to content
Threat Feed
high advisory

libheif: Heap-based buffer overflow in unc_decoder_mixed_interleave (CVE-2026-120208)

A heap-based buffer overflow vulnerability in libheif versions 1.18.0 through 1.23.2 allows out-of-bounds heap writes via crafted HEIF files with mismatched chroma bit depths, potentially facilitating arbitrary code execution.

CVE search metadata

CVE search record: CVE-2026-120208. KEV: no. Product: libheif (1.18.0 to 1.23.2). Brief: libheif: Heap-based buffer overflow in unc_decoder_mixed_interleave (CVE-2026-120208). Brief link: https://feed.craftedsignal.io/briefs/2026-10-libheif-heap-overflow/

Triage facts

Revision 1
Applicability
libheif (1.18.0 to 1.23.2)
Evidence
Unknown
Severity
High
Action
Elevated
Sources
1 public source
Freshness
Revision 1Oct 31, 20:04 UTC
Vulnerabilities
1 CVE
Source quality
A1Roughly even chance

libheif versions 1.18.0 through 1.23.2 are susceptible to a heap-based buffer overflow within the unc_decoder_mixed_interleave::processTile() function. The vulnerability is triggered when the library processes a maliciously crafted HEIF file that declares unequal bit depths for chroma components, such as a 16-bit Cb component combined with an 8-bit Cr component. This discrepancy causes an out-of-bounds write to the heap, which may result in application crashes or arbitrary code execution in the context of the processing pipeline.

Impact

Successful exploitation may allow an unauthenticated attacker to execute arbitrary code within the memory space of an application leveraging the libheif library to decode images. Impact depends on the privileges of the application and the environment where image processing occurs.

Recommendation

  • Upgrade the libheif library to version 1.23.3 or later across all applications and services that use the library for image processing.
  • Audit services (such as web servers, image hosting platforms, or content management systems) to identify instances where libheif is used to handle untrusted user-uploaded content.
  • Implement strict input validation or sandboxing for any image-processing pipelines utilizing older, unpatched versions of libheif.

Immediate actions

Inventory all applications, containers, and services utilizing libheif to verify if they fall within the 1.18.0-1.23.2 version range.

IT Operations 48h

Threat Hunt

Identify applications invoking libheif to process uploaded images.

T1203 high high confidence hunt now

Data: Application dependency manifests, Software Bill of Materials (SBOM)

Mitigations

Upgrade libheif to version 1.23.3 or higher.

immediate IT Operations

CVE-2026-120208