CVE-2026-32740: CWE-787: Out-of-bounds Write in strukturag libheif
libheif is a HEIF and AVIF file format decoder and encoder. Versions 1.21.2 and prior contain a heap-buffer-overflow (write) vulnerability in the grid tile compositing, allowing an attacker to write 64 bytes of fully attacker-controlled data past the end of a chroma plane heap allocation by crafting a HEIF/AVIF file with a 1×4 grid of odd-height tiles. The overflow is triggered during normal image decoding with default build configuration. The written bytes are chroma (Cb/Cr) pixel values from the attacking tile, giving the attacker full control over the overflow content. This issue has been fixed in version 1.22.0.
AI Analysis
Technical Summary
libheif, a HEIF and AVIF image decoder and encoder, contains a heap-buffer-overflow (CWE-787) vulnerability in versions prior to 1.22.0. The flaw arises in the grid tile compositing process when decoding a crafted HEIF/AVIF file with a 1×4 grid of odd-height tiles, enabling an attacker to write 64 bytes past the end of a chroma plane heap allocation. The overflowed data corresponds to chroma pixel values from the malicious tile, granting the attacker full control over the overflow content. This vulnerability is exploitable during normal image decoding with default build configurations. The vulnerability has a CVSS 3.1 score of 8.8, indicating high severity. The issue is resolved in version 1.22.0 of libheif.
Potential Impact
Successful exploitation allows an attacker to perform a heap-buffer-overflow write of 64 bytes of attacker-controlled data beyond the allocated buffer for chroma plane pixels during image decoding. This can lead to arbitrary code execution, data corruption, or denial of service. The vulnerability affects confidentiality, integrity, and availability as indicated by the CVSS vector (C:H/I:H/A:H). No known exploits are reported in the wild at this time.
Mitigation Recommendations
Upgrade libheif to version 1.22.0 or later, where this vulnerability is fixed. There is no indication of alternative mitigations or temporary workarounds. Patch status is confirmed fixed in version 1.22.0.
CVE-2026-32740: CWE-787: Out-of-bounds Write in strukturag libheif
Description
libheif is a HEIF and AVIF file format decoder and encoder. Versions 1.21.2 and prior contain a heap-buffer-overflow (write) vulnerability in the grid tile compositing, allowing an attacker to write 64 bytes of fully attacker-controlled data past the end of a chroma plane heap allocation by crafting a HEIF/AVIF file with a 1×4 grid of odd-height tiles. The overflow is triggered during normal image decoding with default build configuration. The written bytes are chroma (Cb/Cr) pixel values from the attacking tile, giving the attacker full control over the overflow content. This issue has been fixed in version 1.22.0.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
libheif, a HEIF and AVIF image decoder and encoder, contains a heap-buffer-overflow (CWE-787) vulnerability in versions prior to 1.22.0. The flaw arises in the grid tile compositing process when decoding a crafted HEIF/AVIF file with a 1×4 grid of odd-height tiles, enabling an attacker to write 64 bytes past the end of a chroma plane heap allocation. The overflowed data corresponds to chroma pixel values from the malicious tile, granting the attacker full control over the overflow content. This vulnerability is exploitable during normal image decoding with default build configurations. The vulnerability has a CVSS 3.1 score of 8.8, indicating high severity. The issue is resolved in version 1.22.0 of libheif.
Potential Impact
Successful exploitation allows an attacker to perform a heap-buffer-overflow write of 64 bytes of attacker-controlled data beyond the allocated buffer for chroma plane pixels during image decoding. This can lead to arbitrary code execution, data corruption, or denial of service. The vulnerability affects confidentiality, integrity, and availability as indicated by the CVSS vector (C:H/I:H/A:H). No known exploits are reported in the wild at this time.
Mitigation Recommendations
Upgrade libheif to version 1.22.0 or later, where this vulnerability is fixed. There is no indication of alternative mitigations or temporary workarounds. Patch status is confirmed fixed in version 1.22.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-13T15:02:00.628Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a0dc2e7ba1db4736284c269
Added to database: 5/20/2026, 2:19:19 PM
Last enriched: 5/20/2026, 2:33:32 PM
Last updated: 5/20/2026, 9:32:26 PM
Views: 7
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.