CVE-2026-120208: libheif heap buffer overflow in unc_decoder_mixed_interleave

CVE-2026-120208 · Severity: high · CVSS 7.5 · Published 2026-10-31

libheif is a library for encoding and decoding High Efficiency Image Format (HEIF) files, commonly used in image processing and media applications. A heap buffer overflow in the uncompressed image decoder allows attackers who craft malicious HEIF files with mismatched chroma bit depths to write out of bounds and potentially execute code when the image is processed.

Technologies: Strukturag Libheif. Vendors: Strukturag.

Quick answers

Is CVE-2026-120208 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-120208 being exploited in the wild.
How severe is CVE-2026-120208?
High severity, with a CVSS score of 7.5, published 31 October 2026.
Which products and versions are affected?
Strukturag Libheif 1.18.0 before 1.23.3.
Is there a fix for CVE-2026-120208?
Yes: fixed in libheif 1.23.3. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-120208 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-120208?
Check whether you run Strukturag Libheif at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • Fixed in: libheif 1.23.3

Technical details

A heap-based buffer overflow exists in unc_decoder_mixed_interleave::processTile() when decoding uncompressed HEIF images with mixed-interleave chroma sampling. The decoder incorrectly uses a single byte width for both Cb and Cr chroma planes when they are declared with different bit depths (e.g., 16-bit Cb and 8-bit Cr), causing writes to the smaller plane to overflow into adjacent heap memory. An attacker can craft a HEIF file to trigger file-controlled out-of-bounds writes.

Affected products

  • strukturag libheif 1.18.0 before 1.23.3

Timeline

  • 2026-10-31: disclosed
  • 2026-08-31: patched: commit 9d3cd91 merged

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.