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.
Published: 2026-07-21
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

libheif, a HEIF and AVIF file format decoder and encoder, has a heap out‑of‑bounds write in versions 1.19.0 through 1.21.2 when processing a specially crafted HEIF file that uses the uncompressed unci codec in a tiled, component‑interleaved 4:2:0 layout. The vulnerability causes a write beyond the bounds of the tile buffer, overwriting the vtable pointer of an adjacent unc_decoder_component_interleave object. When the next virtual method call occurs, control can be redirected to an attacker‑chosen address, enabling remote code execution. The flaw is classified as CWE‑787 and carries a CVSS score of 6.1.

Affected Systems

The issue affects the libheif library developed by strukturag. Versions from 1.19.0 up to and including 1.21.2 are vulnerable; the problem was fixed in version 1.22.0 and later.

Risk and Exploitability

The CVSS score of 6.1 is a medium severity rating. The EPSS score is less than 1%, so exploitation is expected to be rare. The flaw has not been listed in the CISA KEV catalog. An attacker can exploit the weakness by providing a malicious HEIF file to any application that uses libheif to decode images, such as photo viewers or media players. Because the vulnerability requires a specifically crafted file and the attacker must get the library to process it locally, the attack vector is primarily local or through untrusted file uploads.

Generated by OpenCVE AI on August 1, 2026 at 06:46 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade libheif to version 1.22.0 or newer to apply the fixed decoder code.
  • Ensure that all dependent applications or libraries that link against libheif are also upgraded to a patched version.
  • Restrict or monitor the processing of HEIF files from untrusted sources until the update is confirmed applied.

Generated by OpenCVE AI on August 1, 2026 at 06:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6417-1 libheif security update
Ubuntu USN Ubuntu USN USN-8479-1 libheif vulnerabilities
History

Mon, 27 Jul 2026 23:30:00 +0000

Type Values Removed Values Added
First Time appeared Struktur
Struktur libheif
Vendors & Products Struktur
Struktur libheif

Wed, 22 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 21 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
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.
Title libheif has Heap Out Of Bounds Write in unci subsystem
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H'}


Subscriptions

Struktur Libheif
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-22T15:30:57.634Z

Reserved: 2026-05-18T21:25:34.498Z

Link: CVE-2026-47178

cve-icon Vulnrichment

Updated: 2026-07-22T15:30:53.423Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T07:00:04Z

Weaknesses