CVE-2026-32740 in Struktur 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...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Struktur | Libheif | < 1.22.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-32740 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-082102-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Published | 2026-05-19 |
| Last modified | 2026-07-24 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-787: Out-of-Bounds Write
Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.
Analysis AI-written, not human-reviewed
libheif versions 1.21.2 and prior are vulnerable to a heap-buffer-overflow due to improper handling of grid tile compositing in HEIF/AVIF files, allowing an attacker to write controlled data past the end of a heap allocation.
An attacker can craft a HEIF/AVIF file with a 1×4 grid of odd-height tiles, which triggers the heap-buffer-overflow during image decoding.
Questions
What is CVE-2026-32740?
libheif versions 1.21.2 and prior are vulnerable to a heap-buffer-overflow due to improper handling of grid tile compositing in HEIF/AVIF files, allowing an attacker to write controlled data past the end of a heap allocation.
What is the CVSS score for CVE-2026-32740?
CVE-2026-32740 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 0.8%.
Is CVE-2026-32740 actively exploited?
No confirmed active exploitation of CVE-2026-32740 as of 2026-09-25.
How do I remediate CVE-2026-32740?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2026-32740?
CVE-2026-32740 affects Struktur Libheif.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Struktur","product":"Libheif","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-07-24.