{"id":"CVE-2026-62377","summary":"libheif: Reachable assertion in HeifContext::get_track() aborts on a valid-but-empty HEIF sequence file (context.cc:2110)","details":"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()-\u003esecond 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.","aliases":["GHSA-9ww4-9v47-m7pj"],"modified":"2026-09-11T08:36:38.053806Z","published":"2026-08-18T21:22:29.899Z","related":["SUSE-SU-2026:23320-1","SUSE-SU-2026:3597-1","openSUSE-SU-2026:11416-1","openSUSE-SU-2026:21644-1"],"database_specific":{"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"},"references":[{"type":"WEB","url":"https://github.com/strukturag/libheif/releases/tag/v1.23.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62377.json"},{"type":"ADVISORY","url":"https://github.com/strukturag/libheif/security/advisories/GHSA-9ww4-9v47-m7pj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62377"},{"type":"REPORT","url":"https://github.com/strukturag/libheif/issues/1844"},{"type":"FIX","url":"https://github.com/strukturag/libheif/commit/e1a0bc1c1ae74f8075eaca30a1cdb2b9bee698d3"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/strukturag/libheif","events":[{"introduced":"0"},{"fixed":"e1a0bc1c1ae74f8075eaca30a1cdb2b9bee698d3"},{"fixed":"2c4bbb54c2738d4a5efbbe3e5fa1d5d76bb88eb0"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"1.23.1"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["v1.23.0","v1.22.2","v1.22.1","v1.22.0","v1.21.2","v1.21.1","v1.21.0","v1.20.1","v1.20.0","v1.19.5","v1.19.4","v1.19.3","v1.19.2","v1.19.1","v1.19.0","v1.18.0","v1.18.0-rc1","v1.17.6","v1.17.5","v1.17.4","v1.17.3","v1.17.2","v1.17.1","v1.17.0","v1.16.2","v1.16.1","v1.16.0","v1.15.2","v1.15.1","v1.15.0","v1.14.2","v1.14.1","v1.14.0","v1.13.0","v1.12.0","v1.11.0","v1.10.0","v1.9.1","v1.9.0","v1.8.0","v1.7.0","v1.3.2","v1.3.1","v1.3.0","v1.2.0","v1.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-62377.json","vanir_signatures_modified":"2026-09-11T08:36:38Z","vanir_signatures":[{"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"}},{"source":"https://github.com/strukturag/libheif/commit/e1a0bc1c1ae74f8075eaca30a1cdb2b9bee698d3","target":{"file":"libheif/context.cc"},"deprecated":false,"digest":{"line_hashes":["108813868142023599475746467801203463627","203894374359211974211757315737720766435","69849756915221979707388368752592625591","260163628728503739087423909437750276342"],"threshold":0.9},"id":"CVE-2026-62377-b4110261","signature_type":"Line","signature_version":"v1"}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L"}]}