libheif
CVE-2026-41069
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft HEIF file with malformed stco/saiz box values
-
DeliveryDeliver file to target via web or email
-
ExploitUser opens or application ingests file
-
Executionlibheif sequence parser processes track
-
PersistSampleAuxInfoReader dereferences empty chunks[0]
-
ImpactOut-of-bounds read crashes host process (DoS)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target application process a specially crafted HEIF file containing a sequence track where stco.entry_count 0, saio.entry_count 0, and saiz.sample_count > 0 - this specific combination of box values is the necessary trigger. User interaction is required per CVSS UI:R: a user or automated job must open or ingest the malicious file. No authentication is required (CVSS PR:N), and no non-default configuration is needed beyond the application simply using libheif for HEIF/AVIF decoding. Exploitation is limited to denial of service (application crash); confidentiality and integrity are not impacted per the CVSS vector. Deployments that process only AVIF still-image files without sequence tracks are not exposed to this specific code path. Applications that validate or strip sequence-type boxes before passing data to libheif would also not be affected. |
| Impact | CVSS 3.1 scores this 6.5 (Medium). The vector AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H shows broad network reachability with no authentication or privilege requirement, but user interaction is mandatory - exploitation cannot proceed without a user or automated pipeline actively opening the malicious file. Real-world risk is therefore contingent on how libheif is deployed: embedded in a browser or OS image subsystem, the UI:R bar is trivially met by browsing to or downloading a crafted image; invoked as a backend server-side transcoder with untrusted input, the UI:R criterion may effectively be absent in practice because the 'user' is an automated job. No EPSS data was provided in the supplied intelligence. KEV status is not listed, meaning CISA has not confirmed active exploitation. No public proof-of-concept has been identified at time of analysis. Impact is purely availability (application crash / DoS); confidentiality and integrity are unaffected per CVSS. The advisory tags list 'Information Disclosure', which conflicts with CVSS C:N - this inconsistency should be verified with the vendor, as some out-of-bounds read primitives can leak memory contents before crashing. Overall, this is a genuine medium-priority issue for any deployment that processes untrusted HEIF files, but without active exploitation evidence it does not warrant emergency-level response. |
| Exploit ScenarioDerived | An attacker crafts a malformed HEIF sequence file with stco.entry_count set to zero and saiz.sample_count set to a non-zero value, then distributes it via email attachment, web download, or a malicious image-sharing link. When a user opens the file in any application embedding libheif 1.21.2 or earlier - such as an image viewer, browser, or media importer - the SampleAuxInfoReader constructor dereferences the empty chunks vector, triggering an out-of-bounds read that crashes the hosting process. No public exploit code has been identified at time of analysis, but the parsing path is straightforward to reach and the triggering conditions are precisely described in the advisory, lowering the bar for independent exploit development. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 22, 2026
Out-of-bounds read in libheif versions 1.21.2 and prior crashes any application that parses attacker-controlled HEIF sequence files, resulting in denial of service. The defect lives in the SampleAuxInfoReader constructor, which enters its processing loop when saiz.sample_count > 0 even though stco.entry_count == 0 left the chunks vector empty; dereferencing chunks[0] then triggers the crash. No public exploit code has been identified at time of analysis, but the attack requires only that a user open or process a specially crafted HEIF file, making it relevant wherever libheif is embedded in image-handling applications (browsers, media libraries, operating-system image stacks). Vendor-released patch v1.22.0 is available.
RemediationAI
Upgrade libheif to version 1.22.0, which is confirmed as the vendor-released patch per the GitHub release at https://github.com/strukturag/libheif/releases/tag/v1.22.0 and the security advisory at https://github.com/strukturag/libheif/security/advisories/GHSA-p82x-fpmv-576r. Downstream package maintainers should rebuild against 1.22.0; statically-linked applications must be recompiled. If immediate upgrade is not possible, the most effective compensating control is to reject or sandbox HEIF sequence files at the application or ingestion-pipeline boundary before they reach libheif - for example, by blocking HEIF/AVIF files at a content-type filter or stripping sequence-type tracks in a pre-processing step. This reduces attack surface but may break legitimate multi-frame HEIF content. Alternatively, running the libheif decoding process in an isolated sandbox (container, seccomp profile, or separate worker process) limits a crash to DoS of that worker rather than the parent application. Note: the v1.22.0 release is a large functional update with new codec architecture (ISO/IEC 23001-17 rewrite, generic image components); validate application compatibility with the new release before wide deployment.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
libheif (CPE: cpe:2.3:a:strukturag:libheif:*:*:*:*:*:*:*:*, versions up to and including 1.21.2) is an open-source C++ library for decoding and encoding the High Efficiency Image File Format (HEIF) and AVIF. The flaw is rooted in the sequence-track parsing logic that handles auxiliary sample information - the data structures stco (chunk offset box), saio (sample auxiliary information offsets box), and saiz (sample auxiliary information sizes box). The library validates saio.entry_count 0 as a sufficient signal that no auxiliary chunks are expected, but does not cross-check saiz.sample_count before constructing a SampleAuxInfoReader in chunked mode. When a malicious file sets stco.entry_count 0 alongside saiz.sample_count > 0, the constructor enters its iteration loop and dereferences chunks[0] on an empty vector - a classic CWE-125 (Out-of-Bounds Read) caused by missing bounds enforcement across correlated fields from separate boxes. The tags on this advisory include 'Buffer Overflow' and 'Information Disclosure', but the CVSS vector records Confidentiality: None; the out-of-bounds read likely crashes the process before any memory content is surfaced, making DoS the confirmed impact at this time.
Know when Libheif gets its next vulnerability
- 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
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, a malformed HEIF sequence file can trigger an out-of-bounds read in core sequence parsing logic, causing DoS. A malformed file can have stco.entry_count 0 (creating no chunks) while still passing validation because saio.entry_count 0 matches, but with saiz.sample_count > 0 the SampleAuxInfoReader constructor still enters its loop. This leads to an out-of-bounds dereference on the empty chunks[0] in chunked mode.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)CVE.org
libheif v1.17.5 was discovered to contain a segmentation violation via the function UncompressedImageCodec::get_luma_bit
libheif v1.17.5 was discovered to contain a segmentation violation via the function find_exif_tag at /libheif/exif.cc. R
libheif v1.17.5 was discovered to contain a segmentation violation via the component /libheif/exif.cc. Rated high severi
libheif v1.17.5 was discovered to contain a segmentation violation via the function UncompressedImageCodec::decode_uncom
libheif 1.4.0 has a use-after-free in heif::HeifContext::Image::set_alpha_channel in heif_context.h because heif_context
In Libheif 1.17.6, insufficient checks in ImageOverlay::parse() decoding a heif file containing an overlay image with fo
libheif <= 1.17.6 contains a memory leak in the function JpegEncoder::Encode. Rated high severity (CVSS 7.5), this vulne
Out-of-bounds read in libheif's HEIF/HEIC overlay processing can disclose limited memory contents and crash affected app
A Segmentation fault caused by a floating point exception exists in libheif 1.15.1 using crafted heif images via the hei
Buffer Overflow vulnerability in libheif 1.19.7 allows a local attacker to execute arbitrary code via the SAO (Sample Ad
Heap-based buffer overflow in libheif before 1.23.2 allows remote attackers to corrupt memory and potentially achieve co
Heap buffer overflow write in libheif (versions ≤ 1.21.2) lets a crafted HEIF/AVIF file write 64 bytes of attacker-contr
Same weakness CWE-125 – Out-of-bounds Read
View allSame technique Buffer Overflow
View allVendor StatusVendor
SUSE
Severity: Medium| Product | Status |
|---|---|
| SUSE Linux Enterprise Desktop 15 SP7 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Fixed |
| SUSE Linux Enterprise Module for Desktop Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 16.0 | Fixed |
| SUSE Linux Enterprise Server 16.1 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Fixed |
| openSUSE Leap 16.0 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Module for Desktop Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Module for Desktop Applications 15 SP5 | Fixed |
| SUSE Linux Enterprise Module for Desktop Applications 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP4 | Fixed |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP5 | Fixed |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Fixed |
| SUSE Manager Proxy 4.3 | Fixed |
| SUSE Manager Retail Branch Server 4.3 | Fixed |
| SUSE Manager Server 4.3 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP4 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP5 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP6 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Fixed |
| SUSE Linux Enterprise Real Time 15 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Fixed |
| openSUSE Leap 15.4 | Fixed |
| openSUSE Leap 15.5 | Fixed |
| openSUSE Leap 15.6 | Fixed |
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB