Description
libheif is a HEIF and AVIF file format decoder and encoder. The fix for CVE-2026-3949 (commit `b97c8b5`, PR #1712) introduced an integer overflow in the very security check it added. The check itself can be bypassed, allowing a crafted HEIF file with a VVC track to trigger the same out-of-bounds heap read that CVE-2026-3949 was meant to prevent. This is a separate, currently-unpatched vulnerability. Issue #1712 was closed as fixed without testing the edge case where `size` is near `UINT32_MAX`. Version 1.22.0 patches the issue.
Published: 2026-07-21
Score: 6.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

libheif introduced a new security check to address an earlier integer‑overflow flaw, but the check itself contains an integer overflow that can be bypassed by feeding a crafted HEIF file with a VVC track. This bypass re‑enables the same out‑of‑bounds heap read that the original CVE targeted, potentially leaking memory contents or crashing the application. The flaw is an integer overflow (CWE‑190) leading to an out‑of‑bounds read (CWE‑125). The fix was not tested for sizes near UINT32_MAX, and version 1.22.0 is the first release that includes the correct patch.

Affected Systems

The affected product is strukturag libheif. Versions released prior to 1.22.0 contain the vulnerable code. Version 1.22.0 and later incorporate the necessary patch to eliminate the overflow. No other vendors or products are listed.

Risk and Exploitability

The EPSS score is below 1 % and the vulnerability has not been listed in the CISA KEV catalog, implying a low probability of widespread exploitation. Exploitation requires an application that processes HEIF files, and more specifically those with VVC tracks, enabling an attacker to supply a crafted file. Given the CVSS score of 6.8, the potential impact is limited but real for systems that decode untrusted media. The likely attack vector is via the file decoding path, potentially allowing local or remote exploitation depending on how libheif is used.

Generated by OpenCVE AI on July 30, 2026 at 16:14 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade libheif to version 1.22.0 or later, which contains the necessary fix.
  • Restrict decoding of HEIF files to trusted sources or validate the file format before handing it to libheif.
  • If an upgrade is not immediately possible, configure the consumer application to reject HEIF files with VVC tracks or disable VVC decoding altogether.

Generated by OpenCVE AI on July 30, 2026 at 16:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

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 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', '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. The fix for CVE-2026-3949 (commit `b97c8b5`, PR #1712) introduced an integer overflow in the very security check it added. The check itself can be bypassed, allowing a crafted HEIF file with a VVC track to trigger the same out-of-bounds heap read that CVE-2026-3949 was meant to prevent. This is a separate, currently-unpatched vulnerability. Issue #1712 was closed as fixed without testing the edge case where `size` is near `UINT32_MAX`. Version 1.22.0 patches the issue.
Title libheif has an incomplete fix for CVE-2026-3949: integer overflow bypass in vvdec_push_data2
Weaknesses CWE-125
CWE-190
References
Metrics cvssV4_0

{'score': 6.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Struktur Libheif
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-22T13:48:12.355Z

Reserved: 2026-05-18T22:54:18.273Z

Link: CVE-2026-47251

cve-icon Vulnrichment

Updated: 2026-07-22T13:38:13.431Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T16:15:04Z

Weaknesses