CVE-2026-32738: libheif has a Heap OOB Read/SEGV Crash via Zero samples_per_chunk
Vulnerability summary
CVE-2026-32738 is a medium (CVSS 6.5) Out-of-bounds Read vulnerability in struktur libheif. EPSS estimates a 0.30% chance of exploitation in the next 30 days, higher than 24.6% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 6 · Related 5Timeline
- 19-05-2026PublishedVulnerability first disclosed.
- 19-05-2026Last modifiedVulnerability information updated.
Description
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and below, a crafted 792-byte HEIF sequence file with samples_per_chunk=0 in the stsc box causes an unsigned integer underflow in the Chunk constructor (m_last_sample = 0 + 0 - 1 = UINT32_MAX), mapping all samples to an empty chunk and resulting in a denial of service. When any sample is accessed, the library reads from index 0 of an empty std::vector, causing a guaranteed SEGV (null-page read). The file parses successfully without producing an error; the crash occurs on the first frame access. This issue has been fixed in version 1.22.0.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · AlpineEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.30%
Chance of exploitation in the next 30 days
Percentile
25%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.30% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundLibheif
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- libheif< 1.23.0-r0 | < 1.22.2-r0
Debian1 product
- libheifAll versions (No fix recorded) | < 1.23.1-1
Struktur1 product
- libheif< 1.22.0
Strukturag1 product
- libheif< 1.22.0
Ubuntu1 product
- libheif< 1.20.2-1ubuntu0.4 | < 1.21.2-3ubuntu0.1
5 vendors · 5 products
References
6 links- github.com/strukturag/libheif/security/advisories/GHSA-7f2h-cmpf-v9wwX Refsource CONFIRMREPORTExploitVendor Advisory