{"id":"CVE-2026-62377","aliases":["CVE-2026-62377"],"related":[],"kind":"vulnerability","state":"published","title":"libheif: Reachable assertion in HeifContext::get_track() aborts on a valid-but-empty HEIF sequence file (context.cc:2110)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-08-18T21:22:29.899Z","modified":"2026-10-22T16:09:59.560Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-617","CWE-908"],"affected":[{"ranges":[{"version":"< 1.23.1","status":"affected"}],"vendor":"strukturag","product":"libheif","source":"cvelist"}],"references":[{"url":"https://github.com/strukturag/libheif/security/advisories/GHSA-9ww4-9v47-m7pj","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/strukturag/libheif/issues/1844","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/strukturag/libheif/commit/e1a0bc1c1ae74f8075eaca30a1cdb2b9bee698d3","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/strukturag/libheif/releases/tag/v1.23.1","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-19T18:03:45.406Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-62377","url":"https://www.cve.org/CVERecord?id=CVE-2026-62377","licence":"CVE Terms of Use","modified":"2026-08-19T18:19:50.593Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-62377","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62377","licence":"Public domain","modified":"2026-10-22T16:09:59.560Z"}],"updatedAt":"2026-11-25T22:59:33.884Z","epss":{"score":0.00325,"percentile":0.2762,"date":"2026-12-01T12:00:22.000Z"}}