CVE-2026-47178: CWE-787: Out-of-bounds Write in strukturag libheif
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.19.0 through 1.21.2, a crafted HEIF file (uncompressed `unci` codec, tiled, component-interleaved, 4:2:0) triggers a heap out-of-bounds write in libheif's uncompressed tile decoder. The write overwrites the C++ vtable pointer of an adjacent `unc_decoder_component_interleave` object; the next virtual call dispatches to an attacker-chosen address. Version 1.22.0 patches the issue.
AI Analysis
Technical Summary
CVE-2026-47178 is a heap out-of-bounds write vulnerability (CWE-787) in the strukturag libheif library, affecting versions 1.19.0 through 1.21.2. The flaw occurs in the uncompressed tile decoder when handling a crafted HEIF file using the uncompressed `unci` codec with tiled, component-interleaved 4:2:0 format. The out-of-bounds write overwrites the vtable pointer of an adjacent `unc_decoder_component_interleave` C++ object, causing subsequent virtual function calls to dispatch to an attacker-controlled address. This can lead to code execution or application crash. The vulnerability is patched in libheif version 1.22.0.
Potential Impact
Successful exploitation can result in a heap out-of-bounds write that overwrites a C++ vtable pointer, enabling potential arbitrary code execution or denial of service via application crash. The CVSS 3.1 base score is 6.1 (medium severity), reflecting local attack vector with low complexity, no privileges required, user interaction needed, and impact primarily on availability and limited confidentiality impact.
Mitigation Recommendations
Upgrade libheif to version 1.22.0 or later, where this vulnerability is patched. No other official remediation or temporary fixes are indicated. Users should avoid processing untrusted HEIF files with affected versions until patched.
CVE-2026-47178: CWE-787: Out-of-bounds Write in strukturag libheif
Description
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.19.0 through 1.21.2, a crafted HEIF file (uncompressed `unci` codec, tiled, component-interleaved, 4:2:0) triggers a heap out-of-bounds write in libheif's uncompressed tile decoder. The write overwrites the C++ vtable pointer of an adjacent `unc_decoder_component_interleave` object; the next virtual call dispatches to an attacker-chosen address. Version 1.22.0 patches the issue.
CVSS v3.1
Score 6.1medium
Affected software
pkg:github/strukturag/libheifRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-47178 is a heap out-of-bounds write vulnerability (CWE-787) in the strukturag libheif library, affecting versions 1.19.0 through 1.21.2. The flaw occurs in the uncompressed tile decoder when handling a crafted HEIF file using the uncompressed `unci` codec with tiled, component-interleaved 4:2:0 format. The out-of-bounds write overwrites the vtable pointer of an adjacent `unc_decoder_component_interleave` C++ object, causing subsequent virtual function calls to dispatch to an attacker-controlled address. This can lead to code execution or application crash. The vulnerability is patched in libheif version 1.22.0.
Potential Impact
Successful exploitation can result in a heap out-of-bounds write that overwrites a C++ vtable pointer, enabling potential arbitrary code execution or denial of service via application crash. The CVSS 3.1 base score is 6.1 (medium severity), reflecting local attack vector with low complexity, no privileges required, user interaction needed, and impact primarily on availability and limited confidentiality impact.
Mitigation Recommendations
Upgrade libheif to version 1.22.0 or later, where this vulnerability is patched. No other official remediation or temporary fixes are indicated. Users should avoid processing untrusted HEIF files with affected versions until patched.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-18T21:25:34.498Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5fe6d09c2644c7f8cb09cc
Added to database: 07/21/2026, 21:38:24 UTC
Last enriched: 07/22/2026, 08:54:55 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 21
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.