CVE-2026-47251

libheif has an incomplete fix for CVE-2026-3949: integer overflow bypass in vvdec_push_data2

Published Jul 21, 2026 CVSS 4.0 · 6.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
First Time appeared Struktur
Struktur libheif
Vendors & Products Struktur
Struktur libheif
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 22, 2026, 1:48 PM
Reserved
May 18, 2026, 10:54 PM
Status
Analyzed
Published
Jul 21, 2026, 10:17 PM
Modified
Oct 24, 2026, 7:10 PM