{"id":"CVE-2026-62377","state":"PUBLISHED","title":"libheif: Reachable assertion in HeifContext::get_track() aborts on a valid-but-empty HEIF sequence file (context.cc:2110)","description":"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.","publishedAt":"2026-08-18T21:22:29.899Z","updatedAt":"2026-08-19T18:19:50.593Z","severity":{"score":4.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["strukturag libheif"],"affected":[{"vendor":"strukturag","product":"libheif","versions":[{"version":"< 1.23.1","status":"affected"}]}],"references":["https://github.com/strukturag/libheif/security/advisories/GHSA-9ww4-9v47-m7pj","https://github.com/strukturag/libheif/issues/1844","https://github.com/strukturag/libheif/commit/e1a0bc1c1ae74f8075eaca30a1cdb2b9bee698d3","https://github.com/strukturag/libheif/releases/tag/v1.23.1"],"weaknesses":["CWE-617","CWE-908"],"ingestedAt":"2026-10-29T20:12:32.778Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/62xxx/CVE-2026-62377.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-62377","state":"PUBLISHED","datePublished":"2026-08-18T21:22:29.899Z","dateUpdated":"2026-08-19T18:19:50.593Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-07-13T22:04:59.678Z"},"containers":{"cna":{"title":"libheif: Reachable assertion in HeifContext::get_track() aborts on a valid-but-empty HEIF sequence file (context.cc:2110)","descriptions":[{"lang":"en","value":"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":[{"vendor":"strukturag","product":"libheif","versions":[{"version":"< 1.23.1","status":"affected"}]}],"references":[{"url":"https://github.com/strukturag/libheif/security/advisories/GHSA-9ww4-9v47-m7pj","name":"https://github.com/strukturag/libheif/security/advisories/GHSA-9ww4-9v47-m7pj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/strukturag/libheif/issues/1844","name":"https://github.com/strukturag/libheif/issues/1844","tags":["x_refsource_MISC"]},{"url":"https://github.com/strukturag/libheif/commit/e1a0bc1c1ae74f8075eaca30a1cdb2b9bee698d3","name":"https://github.com/strukturag/libheif/commit/e1a0bc1c1ae74f8075eaca30a1cdb2b9bee698d3","tags":["x_refsource_MISC"]},{"url":"https://github.com/strukturag/libheif/releases/tag/v1.23.1","name":"https://github.com/strukturag/libheif/releases/tag/v1.23.1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":4.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-617","lang":"en","description":"CWE-617: Reachable Assertion","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-908","lang":"en","description":"CWE-908: Use of Uninitialized Resource","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-18T21:22:29.899Z"},"source":{"advisory":"GHSA-9ww4-9v47-m7pj","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-19T18:03:45.406952Z","id":"CVE-2026-62377","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-19T18:19:50.593Z"}}]}}}