CVE-2026-41069: CWE-125: Out-of-bounds Read in strukturag libheif
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.
AI Analysis
Technical Summary
The vulnerability in libheif (CVE-2026-41069) arises from improper handling of malformed HEIF sequence files where stco.entry_count is zero, causing no chunks to be created, yet saiz.sample_count is greater than zero. This mismatch allows the SampleAuxInfoReader constructor to enter a loop that dereferences an empty chunks array, resulting in an out-of-bounds read and potential denial of service. Affected versions are all libheif releases before 1.22.0. The issue is classified under CWE-125 (Out-of-bounds Read) and CWE-476 (NULL Pointer Dereference).
Potential Impact
Successful triggering of this vulnerability leads to denial of service by crashing the application processing the malformed HEIF file. There is no impact on confidentiality or integrity. The CVSS v3.1 score is 6.5 (medium severity), reflecting network attack vector, low attack complexity, no privileges required, user interaction required, unchanged scope, and impact limited to availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid processing untrusted or malformed HEIF files to reduce risk. Monitor for updates from strukturag regarding libheif version 1.22.0 or later that may address this issue.
CVE-2026-41069: CWE-125: Out-of-bounds Read in strukturag libheif
Description
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.
CVSS v3.1
Score 6.5medium
Affected software
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
The vulnerability in libheif (CVE-2026-41069) arises from improper handling of malformed HEIF sequence files where stco.entry_count is zero, causing no chunks to be created, yet saiz.sample_count is greater than zero. This mismatch allows the SampleAuxInfoReader constructor to enter a loop that dereferences an empty chunks array, resulting in an out-of-bounds read and potential denial of service. Affected versions are all libheif releases before 1.22.0. The issue is classified under CWE-125 (Out-of-bounds Read) and CWE-476 (NULL Pointer Dereference).
Potential Impact
Successful triggering of this vulnerability leads to denial of service by crashing the application processing the malformed HEIF file. There is no impact on confidentiality or integrity. The CVSS v3.1 score is 6.5 (medium severity), reflecting network attack vector, low attack complexity, no privileges required, user interaction required, unchanged scope, and impact limited to availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid processing untrusted or malformed HEIF files to reduce risk. Monitor for updates from strukturag regarding libheif version 1.22.0 or later that may address this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-16T16:43:03.174Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a10c3c2e1370fbb4852e016
Added to database: 05/22/2026, 20:59:46 UTC
Last enriched: 05/30/2026, 20:40:48 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 118
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.