Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › Vulnerabilities › strukturag

High 7.1 12 CVEs Analysis

libheif batch of 12 CVEs: crafted HEIF files can crash, hang, exhaust or leak memory

NVD published 12 vulnerabilities in libheif on 2 December 2026, most triggered by a crafted HEIF, AVIF or image-sequence file. The records fall mainly into denial-of-service and memory-disclosure groups, and the records name 1.23.6 as the version that stops the affected behaviour.

What to look into

  • 12 vulnerabilities in strukturag libheif: 8 high, 3 medium, 1 low (CVSS up to 7.1).
  • None of them is known to be exploited yet.
  • Start with CVE-2026-142502 (7.1 high): libheif 1.16.0 before 1.23.6 contains an out-of-bounds read vulnerability in OpAnyRGBtoYCbCr420Sharp::convertcolorspace() that passes unchecked 10-bit or 12-bit RGB samples to SharpYuvConvert(). Atta… An attacker without an account can exploit this over the network if a user views or visits something.
  • 12 of 12 can be attacked over the network without logging in.
  • Kinds of flaws: Allocation of Resources Without Limits or Throttling (×2); Out-of-bounds Read (×2); Improper Validation of Array Index; Improper Handling of Highly Compressed Data (Data Amplification).
Funding & M&AVulnerabilities

Key points

  • NVD published 12 libheif CVEs on 2 December 2026: eight HIGH (CVSS 7.1), three MEDIUM and one LOW.
  • Most flaws are triggered by crafted files and cause crashes, hangs or resource exhaustion.
  • CVE-2026-142502 is the most serious memory-read issue and can leak data into decoded output.
  • The records do not say that any of these flaws is known to be exploited.
  • The records give 1.23.4 or 1.23.6 as fixed boundaries, so 1.23.6 covers all of them.

Overview

NVD published a batch of 12 vulnerabilities in libheif on 2 December 2026. Each record describes a flaw that a crafted file can trigger in software that decodes it. Eight are rated HIGH with a CVSS score of 7.1, three are rated MEDIUM and one is rated LOW.

Resource exhaustion and denial of service

The largest group covers attacks that consume resources. CVE-2026-142500 lets a 22 KB file in the uncompressed codec re-inflate tiles into multi-gigabyte allocations, bypassing the maxtotalmemory limit. CVE-2026-142501 can keep a CPU core busy for minutes from a few-kilobyte file. CVE-2026-142494 is a memory leak in sequence handling, and CVE-2026-142495 allows quadratic CPU time and large heap use through a large number of infe items.

Crashes and hangs

Several records describe a process that stops. CVE-2026-142499 is a null pointer dereference when an stsc chunk maps to a non-visual sample entry. CVE-2026-142497 is a deadlock in grid decoding that can hang the process permanently. CVE-2026-142496 is uncontrolled recursion over a long chain of dimg references, causing a segmentation fault. CVE-2026-142503 is a reachable assertion in grid decoding, rated MEDIUM.

Out-of-bounds reads and memory disclosure

This group carries the most serious data-exposure risk. CVE-2026-142502, the highest-rated read issue, passes out-of-range 10-bit or 12-bit samples into a conversion routine, which may crash the process or leak memory into output pixels. CVE-2026-142504 covers mismatched bit depths reported by image handles, CVE-2026-142493 is a heap over-read in a WebCodecs HEVC decoder plugin, and CVE-2026-142498, rated LOW, can leak heap bytes into re-encoded output.

Affected versions and fixes

The affected version ranges differ by record, starting at 1.16.0, 1.19.0, 1.20.0, 1.21.0 or 1.22.0. The records state fixed boundaries of 1.23.4 or 1.23.6. The sources do not state that any of these flaws is known to be exploited, and they give no workaround or detection guidance.

What to do

  1. Upgrade libheif to 1.23.6 or later, the version the records give as the fixed boundary for all 12 CVEs.
  2. Identify the applications that bundle or link libheif, since the records do not list them.
  3. The records give no workaround or detection guidance, so none is stated here.

Our article about all 12 vulnerabilities, written with AI assistance from the official records listed below. Each CVE's page has its details.

The 12 vulnerabilities

  • CVE-2026-142502 7.1 libheif 1.16.0 before 1.23.6 contains an out-of-bounds read vulnerability in OpAnyRGBtoYCbCr420Sharp::convertcolorspace() that passes unchecked 10-bit or 12-bit RGB samples to SharpYuvConvert(). Attackers can supply a crafted HEIF file pro…
  • CVE-2026-142500 7.1 libheif 1.22.0 before 1.23.6 contains a memory exhaustion vulnerability in the uncompressed (unci) codec that bypasses the maxtotalmemory limit for imagetile compressed units. Attackers can supply a crafted 22 KB HEIF file whose tiles are…
  • CVE-2026-142501 7.1 libheif 1.19.0 before 1.23.6 contains a CPU exhaustion vulnerability in the uncompressed (unci) codec that re-decompresses and re-reads the entire item for every tile when a cmpC box lacks an icef box. Attackers can supply a crafted few-ki…
  • CVE-2026-142499 7.1 libheif 1.20.0 before 1.23.6 contains a null pointer dereference vulnerability in TrackVisual::decodenextimagesample() that allows attackers to crash the process via crafted HEIF image sequences. Attackers can map a later chunk in the 'sts…
  • CVE-2026-142497 7.1 libheif 1.22.0 before 1.23.4 contains a deadlock vulnerability in ImageItem::decodeimage() that allows attackers to hang decoding by supplying a crafted HEIF grid file. Grid tiles referencing each other as alpha auxiliary images cause work…
  • CVE-2026-142496 7.1 libheif 1.16.0 before 1.23.4 contains an uncontrolled recursion vulnerability in HeifFile::checkforrefcyclerecursion() that allows attackers to crash the process via crafted files. Attackers can supply a HEIF or AVIF file under 1 MB with a…
  • CVE-2026-142494 7.1 libheif 1.20.0 before 1.23.4 contains a memory leak vulnerability in Track::getnextsamplerawdata() that allows attackers to exhaust process memory by supplying a crafted HEIF image sequence. Attackers can trigger error paths via 'saiz'/'sa…
  • CVE-2026-142495 7.1 libheif 1.19.0 before 1.23.4 contains an allocation of resources without limits vulnerability in Boxiinf::parse() and Box::readchildren() that allows attackers to cause denial of service via crafted HEIF files. Attackers can declare a huge…
  • CVE-2026-142504 6.0 libheif before 1.23.6 fails to verify that decoded images match the bit depth reported by the image handle, causing out-of-bounds reads in calling applications. Attackers can supply crafted HEIF files with contradicting hvcC or av1C boxes,…
  • CVE-2026-142503 6.0 libheif 1.22.0 before 1.23.6 contains a reachable assertion in ImageItemGrid::decodeandpastetileimage() that allows attackers to crash applications by supplying grid images with oversized alpha planes. Attackers can craft a HEIF file conta…
  • CVE-2026-142493 5.3 libheif 1.21.0 before 1.23.4 contains an out-of-bounds read vulnerability in the WebCodecs HEVC decoder plugin that allows attackers to disclose heap memory via crafted HEIF files. Attackers can set an HEVC SPS conformance window so codedW…
  • CVE-2026-142498 2.3 libheif 1.22.0 before 1.23.4 contains a heap out-of-bounds read vulnerability in aomencodesequenceframe() and x265encodesequenceframe() that allows attackers to disclose heap memory via crafted images with mismatched luma and chroma bit de…

Frequently asked questions

How many strukturag libheif vulnerabilities were published on December 2, 2026?

12 vulnerabilities: 8 high, 3 medium, 1 low, with CVSS scores up to 7.1.

Are any of them being exploited?

None of them is in CISA's Known Exploited Vulnerabilities catalog yet.

Which one should be fixed first?

CVE-2026-142502 (CVSS 7.1): libheif 1.16.0 before 1.23.6 contains an out-of-bounds read vulnerability in OpAnyRGBtoYCbCr420Sharp::convertcolorspace() that passes unchecked 10-bit or 12-bit RGB samples to SharpYuvConvert(). Atta…

Original records