Cloudanix VulnDB

CVE-2026-62377

Medium · 4.3

CVSS

4.3

EPSS

0.4%

Published

Aug 18, 2026

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A library used to read certain image files can make programs using it suddenly stop working when they open a specially crafted file.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Improper Input Validation
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Crafted HEIF input accepted by heif_context_read_from_memory leaves the context with no registered sequence tracks; subsequent heif_context_get_track(ctx, 0) hits an assert(has_sequence()) in debug builds or dereferences m_tracks.begin()->second on an empty map in release builds, producing a crash or undefined behavior.

Why it matters to the business

Applications that decode untrusted HEIF or AVIF content can be forced to terminate, causing denial of service for image viewers, media processors, or any downstream service that ingests these formats.

How an attack unfolds

An attacker creates a minimal HEIF sequence lacking any track entries, supplies the bytes to a victim application that calls the public read-from-memory API followed by get-track(0), and triggers the missing-sequence path that the library does not safely handle before the assert or map dereference.

How to fix it

Upgrade libheif to version 1.23.1 or newer; rebuild and redeploy any dependent applications or containers that statically or dynamically link the library.

How to confirm the fix worked

Confirm the installed libheif shared object or header reports version 1.23.1 or later; optionally replay a minimal zero-track HEIF sequence through the public APIs and verify that get_track now returns null instead of aborting or crashing.

Typical attack path

  1. Generate a HEIF file containing a sequence with zero registered tracks
  2. Deliver the file to an application that uses libheif to parse it
  3. Application invokes heif_context_read_from_memory on the attacker-controlled bytes
  4. Application then calls heif_context_get_track(ctx, 0)
  5. Library executes assert or empty-map dereference and crashes

How to detect it

Review application crash logs or core dumps that reference libheif context.cc or heif_sequences.cc around the time a HEIF file was processed; correlate with file-upload or media-ingest events that precede the termination.

What your security team should do

  • Prioritize upgrade of libheif across all image-processing pipelines within the next maintenance window
  • Add HEIF/AVIF files from untrusted sources to the set of inputs covered by fuzzing or sandboxing
  • Monitor crash-reporting dashboards for sudden spikes in libheif-related terminations

The record

libheif is a HEIF and AVIF file format decoder and encoder. In 1.23.0 and earlier, a crafted HEIF sequence accepted by heif_context_read_from_memory() can leave the context with no registered sequence tracks and crash when heif_context_get_track(ctx, 0) is called. HeifContext::get_track() in libheif/context.cc executes assert(has_sequence()) before its normal error handling, so assert-enabled builds abort instead of allowing the public wrapper in libheif/api/libheif/heif_sequences.cc to return null. In release builds, removing the assertion lets the track_id zero path dereference m_tracks.begin()->second on an empty map, which is undefined behavior and typically crashes. The issue is reachable through documented public APIs after parsing attacker-controlled bytes. This issue is fixed in version 1.23.1.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities