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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-617",
"CWE-908"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62377.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-62377.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "150555058883365058183043304044301588756",
"length": 399
},
"id": "CVE-2026-62377-050becf8",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/strukturag/libheif/commit/e1a0bc1c1ae74f8075eaca30a1cdb2b9bee698d3",
"target": {
"file": "libheif/context.cc",
"function": "HeifContext::get_track"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"108813868142023599475746467801203463627",
"203894374359211974211757315737720766435",
"69849756915221979707388368752592625591",
"260163628728503739087423909437750276342"
],
"threshold": 0.9
},
"id": "CVE-2026-62377-b4110261",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/strukturag/libheif/commit/e1a0bc1c1ae74f8075eaca30a1cdb2b9bee698d3",
"target": {
"file": "libheif/context.cc"
}
}
]
"2026-09-11T08:36:38Z"