SecurityContext

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

IdName
CWE-787Out-of-bounds Write

Hackerone

  • Reports: 7
  • Rank: 850

Public exploits

UrlSourceAdded date
https://github.com/strukturag/libheif/security/advisories/GHSA-frfr-f3vg-2g6jnvd2026-05-19
https://github.com/FORTBRIDGE-UK/libheif-grid-nextjs-rcepoc-in-github2026-09-24

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/strukturag/libheif/security/advisories/GHSA-frfr-f3vg-2g6jExploit, Vendor Advisory
https://github.com/strukturag/libheif/releases/tag/v1.22.0Release Notes
https://access.redhat.com/security/cve/CVE-2026-32740
https://bugzilla.redhat.com/show_bug.cgi?id=2479969
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32740.json

Products

ProductAffectedPlatform boundSourcesUrl
struktur:libheif< 1.22.0nonvd/v1/products/struktur/libheif

Projects

RepositoryLink kindsIndexedUrl
strukturag/libheiffix, releases, security_advisoryyes/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