CVE-2026-62377: CWE-617: Reachable Assertion in strukturag libheif
A reachable assertion vulnerability exists in libheif versions 1.23.0 and earlier. When processing crafted HEIF sequences via heif_context_read_from_memory(), the context may end up with no registered sequence tracks, causing a crash when heif_context_get_track(ctx, 0) is called. This occurs because an assertion in get_track() aborts in debug builds, while release builds dereference an empty map leading to undefined behavior and typical crashes. The issue is fixed in version 1.23.1.
AI Analysis
Technical Summary
libheif, a HEIF and AVIF file format decoder and encoder, has a reachable assertion vulnerability (CWE-617) in versions 1.23.0 and earlier. A crafted HEIF sequence accepted by heif_context_read_from_memory() can leave the context without any registered sequence tracks. The function heif_context_get_track(ctx, 0) calls an assertion (assert(has_sequence())) in get_track() before normal error handling. In debug builds, this assertion aborts the program. In release builds, the assertion is removed, but the code dereferences an empty map (m_tracks.begin()->second), causing undefined behavior and typically a crash. This vulnerability is reachable through documented public APIs after parsing attacker-controlled input. The issue is resolved in libheif version 1.23.1.
Potential Impact
This vulnerability causes a denial of service through application crashes when processing maliciously crafted HEIF files. There is no impact on confidentiality or integrity. The CVSS 3.1 score is 4.3 (medium severity), reflecting network attack vector, low complexity, no privileges required, user interaction required, unchanged scope, no confidentiality or integrity impact, and availability impact limited to crashes.
Mitigation Recommendations
Upgrade libheif to version 1.23.1 or later, where this issue is fixed. Until then, avoid processing untrusted HEIF files with vulnerable versions. No other mitigations are specified or required.
CVE-2026-62377: CWE-617: Reachable Assertion in strukturag libheif
Description
A reachable assertion vulnerability exists in libheif versions 1.23.0 and earlier. When processing crafted HEIF sequences via heif_context_read_from_memory(), the context may end up with no registered sequence tracks, causing a crash when heif_context_get_track(ctx, 0) is called. This occurs because an assertion in get_track() aborts in debug builds, while release builds dereference an empty map leading to undefined behavior and typical crashes. The issue is fixed in version 1.23.1.
CVSS v3.1
Score 4.3medium
Affected software
strukturag
libheif
pkg:github/strukturag/libheifRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
libheif, a HEIF and AVIF file format decoder and encoder, has a reachable assertion vulnerability (CWE-617) in versions 1.23.0 and earlier. A crafted HEIF sequence accepted by heif_context_read_from_memory() can leave the context without any registered sequence tracks. The function heif_context_get_track(ctx, 0) calls an assertion (assert(has_sequence())) in get_track() before normal error handling. In debug builds, this assertion aborts the program. In release builds, the assertion is removed, but the code dereferences an empty map (m_tracks.begin()->second), causing undefined behavior and typically a crash. This vulnerability is reachable through documented public APIs after parsing attacker-controlled input. The issue is resolved in libheif version 1.23.1.
Potential Impact
This vulnerability causes a denial of service through application crashes when processing maliciously crafted HEIF files. There is no impact on confidentiality or integrity. The CVSS 3.1 score is 4.3 (medium severity), reflecting network attack vector, low complexity, no privileges required, user interaction required, unchanged scope, no confidentiality or integrity impact, and availability impact limited to crashes.
Mitigation Recommendations
Upgrade libheif to version 1.23.1 or later, where this issue is fixed. Until then, avoid processing untrusted HEIF files with vulnerable versions. No other mitigations are specified or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-13T22:04:59.678Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a84d00bc6e8be0332c73b07
Added to database: 08/18/2026, 21:35:07 UTC
Last enriched: 09/19/2026, 01:34:55 UTC
Last updated: 10/02/2026, 02:46:05 UTC
Views: 64
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.