Skip to main content

libheif CVE-2026-62377

| EUVDEUVD-2026-62191 MEDIUM
Reachable Assertion (CWE-617)
2026-08-18 security-advisories@github.com
4.3
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft HEIF file with no sequence tracks
  2. Delivery
    Submit to libheif-consuming application
  3. Exploit
    heif_context_read_from_memory() accepts crafted input
  4. Execution
    Application calls heif_context_get_track() without has_sequence() guard
  5. Persist
    assert abort (debug) or empty-map UB dereference (release)
  6. Impact
    Process crash

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V16 - Security Logging and Error Handling Reachable assertion handling
Exploitation Conditions

Exploitation requires that the target application links against libheif 1.23.0 or earlier, passes attacker-controlled bytes to heif_context_read_from_memory() or an equivalent file-reading entry point, and subsequently calls heif_context_get_track() on the resulting context without first confirming track presence via heif_context_has_sequence(). The CVSS UI:R rating reflects the typical desktop scenario where a human user opens a crafted file; however, automated server-side pipelines - thumbnail generators, media transcoding APIs, upload processors - that process untrusted content without direct user interaction remove this requirement entirely and represent the higher-risk deployment mode. The crash is strictly confined to the process running libheif: no privilege escalation, kernel impact, or cross-process data exposure is possible from this vulnerability. Debug builds abort immediately on the assertion; release or optimized builds reach undefined behavior that typically manifests as a segmentation fault.

Impact

The vendor-assigned CVSS 3.1 base score of 4.3 (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L) accurately describes the common case where a human user opens a crafted file. However, the UI:R metric understates risk in automated server-side deployments - thumbnail generators, media transcoding APIs, and upload processors that invoke libheif without direct user interaction effectively reduce this to AV:N/AC:L/PR:N/UI:N, raising the practical severity. No CISA KEV listing and no public PoC are present in the available intelligence; EPSS probability is expected to be low for a non-disclosure DoS in a parsing library. The impact is bounded to a single process crash with no confidentiality or integrity consequence, which limits blast radius but can cause service disruption or repeated availability failures in high-volume image processing. Overall this is a genuine but moderate-priority issue whose urgency scales with deployment context: patch promptly if libheif is used in automated, server-side, or multi-tenant pipelines; lower priority for single-user desktop applications.

Exploit ScenarioDerived

An attacker submits a crafted HEIF still-image file to a service that accepts user-uploaded media and processes it with libheif - for example a social platform or photo storage application running a thumbnail pipeline. The file passes heif_context_read_from_memory() without error but contains no sequence tracks; when the pipeline subsequently calls heif_context_get_track(ctx, 0) without first checking heif_context_has_sequence(), the worker process crashes. Repeated submissions can cause sustained availability disruption. No public exploit code has been identified, but the crash-triggering pattern is directly documented in the regression test added by the upstream fix.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 19, 2026

Denial-of-service in libheif 1.23.0 and earlier crashes host processes when a crafted HEIF sequence file - accepted by heif_context_read_from_memory() - leaves the context with no registered sequence tracks and heif_context_get_track() is subsequently called. Debug builds abort on assert(has_sequence()) in HeifContext::get_track(); release builds reach undefined behavior by dereferencing m_tracks.begin()->second on an empty std::map, which typically causes a segfault. The flaw is reachable through documented public APIs after parsing attacker-controlled bytes, making it directly relevant to any service that processes untrusted HEIF or AVIF input. No public exploit code is identified at time of analysis, and no CISA KEV listing exists.

RemediationAI

Upgrade libheif to version 1.23.1, which replaces assert(has_sequence()) with a proper heif_error_Usage_error return that the public API wrapper correctly propagates as null from heif_context_get_track(). The release is available at https://github.com/strukturag/libheif/releases/tag/v1.23.1 and the upstream fix is commit e1a0bc1c1ae74f8075eaca30a1cdb2b9bee698d3 at https://github.com/strukturag/libheif/commit/e1a0bc1c1ae74f8075eaca30a1cdb2b9bee698d3. If an immediate library upgrade is not possible, application code should call heif_context_has_sequence() and verify it returns non-zero before calling heif_context_get_track(); this avoids the crash without library changes but requires a code-level fix in every call site. A second compensating control for server-side deployments is to isolate libheif parsing in a sandboxed subprocess or container so a crash does not cascade into broader service unavailability - this adds operational complexity and latency overhead but provides defense-in-depth until patching is completed.

Affected VersionsENISA

libheif < 1.23.1

Affected Packages

euvd libheif fix: 1.23.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libheif (strukturag/libheif) is a C++ library implementing ISO/IEC 23008-12 (HEIF) and AV1 Image File Format (AVIF) parsing and encoding, widely embedded in image viewers, media pipelines, and browser-adjacent stacks. The defective path is HeifContext::get_track() in libheif/context.cc, which formerly guarded track-map access with assert(has_sequence()) rather than a graceful error return. CWE-617 (Reachable Assertion) describes assertions reachable via external input that cause abnormal program termination - precisely the pattern here, where a crafted file reaches the assertion through the public API without requiring internal state invariants to be broken. In NDEBUG (release) builds the assert is compiled out, leaving an unchecked std::map::begin() dereference on an empty container - undefined behavior per the C++ standard that compilers typically resolve as a null-pointer dereference or bad read, causing a segfault. The public wrapper in libheif/api/libheif/heif_sequences.cc is intended to return null on failure but is bypassed by the early abort. Affected CPE: cpe:2.3:a:strukturag:libheif:*:*:*:*:*:*:*:* versions up to and including 1.23.0.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
vuln.today AI 4.3 MEDIUM

Network-delivered crafted file; no auth required; UI:R for user-opened file path; availability impact is process-level crash only with no disclosure.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE 3.3 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

1
Patch available
Aug 18, 2026 - 22:19 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.4%
Top 66% exploitable
Prevalence
Medium
widely embedded in image-processing apps and browser stacks for HEIF/AVIF
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Module for Desktop Applications 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP7 Fixed
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy