Crash via inline-mask size integer overflow
Published Jul 21, 2026 · Updated Jul 21, 2026
Integer overflow in Struktur AG libheif 1.21.2 and earlier allows attackers to crash a decoder via a crafted HEIF file. The inline-mask parser in libheif/region.cc multiplies attacker-controlled 32-bit width and height values before dividing by eight, wraps the product, and allocates a buffer too small for the bitmap. Reachability requires an application to raise or disable the default maximum-image-size limit and process the file; subsequent bitmap access reads beyond the allocation until the decoder crashes.
Summary
What happened
Integer overflow in Struktur AG libheif 1.21.2 and earlier allows attackers to crash a decoder via a crafted HEIF file. The inline-mask parser in libheif/region.cc multiplies attacker-controlled 32-bit width and height values before dividing by eight, wraps the product, and allocates a buffer too small for the bitmap. Reachability requires an application to raise or disable the default maximum-image-size limit and process the file; subsequent bitmap access reads beyond the allocation until the decoder crashes.
The record
- CVE
- CVE-2026-47714
- Published
- Jul 21, 2026
- Updated
- Jul 21, 2026
- Vendor
- Struktur AG
- Product
- libheif
- Classifications
- CWE-190, T1204.002
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jul 21, 2026CVE publishedPublication date reported by the CVE source.
- Jul 21, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 1.22.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo