CVE-2026-62377

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.
Configurations

No configuration.

History

22 Oct 2026, 16:09

Type Values Removed Values Added
Summary
  • (es) libheif es un decodificador y codificador de formato de archivo HEIF y AVIF. En la versión 1.23.0 y anteriores, una secuencia HEIF manipulada aceptada por heif_context_read_from_memory() puede dejar el contexto sin pistas de secuencia registradas y fallar cuando se llama a heif_context_get_track(ctx, 0). HeifContext::get_track() en libheif/context.cc ejecuta assert(has_sequence()) antes de su manejo de errores normal, por lo que las compilaciones con aserciones habilitadas abortan en lugar de permitir que el envoltorio público en libheif/api/libheif/heif_sequences.cc devuelva nulo. En las compilaciones de lanzamiento, eliminar la aserción permite que la ruta con track_id cero desreferencie m_tracks.begin() -> second en un mapa vacío, lo cual es un comportamiento indefinido y típicamente falla. El problema es alcanzable a través de APIs públicas documentadas después de analizar bytes controlados por el atacante. Este problema está solucionado en la versión 1.23.1.

Information

Published : 2026-08-18 22:17

Updated : 2026-10-22 16:09


NVD link : CVE-2026-62377

Mitre link : CVE-2026-62377

CVE.ORG link : CVE-2026-62377


JSON object : View

Products Affected

No product.

CWE
CWE-617

Reachable Assertion

CWE-908

Use of Uninitialized Resource