CVE-2026-32740: libheif - Buffer Overflow
- Cve: CVE-2026-32740
- Name: libheif - Buffer Overflow
- 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.
- Impact: Attackers can write controlled data beyond heap buffer, potentially leading to code execution or application crash.
- Remediation: Update to version 1.22.0 or later.
- Vulnerability type: buffer_overflow
- Vulnerability impact: remote_code_execution, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.00684
- Epss percentile: 0.53529
- Assignee: [email protected]
- Published at: 2026-05-19T20:16:18Z
- Age in days: 189
- Modified at: 2026-07-24T09:10:00Z
- Patch available: yes
- Public exploits total: 2
- References total: 5
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-32740
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-787 | Out-of-bounds Write |
Hackerone
- Reports: 7
- Rank: 850
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/strukturag/libheif/security/advisories/GHSA-frfr-f3vg-2g6j | nvd | 2026-05-19 |
| https://github.com/FORTBRIDGE-UK/libheif-grid-nextjs-rce | poc-in-github | 2026-09-24 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| struktur:libheif | < 1.22.0 | no | nvd | /v1/products/struktur/libheif |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| strukturag/libheif | fix, releases, security_advisory | yes | /v1/repositories/strukturag/libheif |
Index
- Repositories: 1478
- Repositories high signal: 963
- Checked, none or zero: packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2026-05-19
- Remote: yes
- Hackerone reports: 7
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, exposed hosts