cve.bz

CVE-2026-62291 strukturag libheif: Out-of-bounds Read

5.3 mediumEPSS 0.2%

Medium (5.3) in strukturag libheif. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
libheif is a HEIF and AVIF file format decoder and encoder. In 1.23.0 and earlier, a crafted image sequence with a 2x2 primary plane and a 256x256 auxiliary alpha plane can cause attacker-controlled heap corruption during a normal decode and re-encode workflow. Track_Visual::decode_next_image_sample() calls transfer_channel_from_image_as() without checking that the auxiliary alpha dimensions match the main frame. The resulting inconsistent image reaches heif_track_decode_next_image() and then heif_context_encode_image(). In unc_encoder::encode(), unc_encoder_component_interleave::encode_tile() sizes its buffer with compute_tile_data_size_bytes() using the primary dimensions but copies each component using its actual plane dimensions. The oversized alpha plane is therefore copied beyond the allocation, causing an out-of-bounds write; the inverse size mismatch can also produce an out-of-bounds read. This issue is fixed in version 1.23.1.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 8th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-08-21. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-125 Out-of-bounds Read
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-62291 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-62291?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-62291?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-62291 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
strukturag libheif< 1.23.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian14libheif1.23.1-1DEBIAN-CVE-2026-62291
Ubuntu24.04:LTSlibheif1.17.6-1ubuntu4.8UBUNTU-CVE-2026-62291 USN-8683-1
Ubuntu26.04:LTSlibheif1.21.2-3ubuntu0.5UBUNTU-CVE-2026-62291 USN-8774-1
UbuntuPro:18.04:LTSlibheif1.1.0-2ubuntu0.1~esm4USN-8683-1
UbuntuPro:20.04:LTSlibheif1.6.1-1ubuntu0.1~esm4USN-8683-1
UbuntuPro:22.04:LTSlibheif1.12.0-2ubuntu0.1~esm4USN-8683-1
SUSELinux Enterprise Module for Desktop Applications 15 SP7, Linux Enterprise Module for Package Hub 15 SP7libheif1.23.1-150700.3.18.1SUSE-SU-2026:3597-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0libheif1.23.1-160000.1.1SUSE-SU-2026:23320-1
openSUSELeap 16.0libheif1.23.1-160000.1.1openSUSE-SU-2026:21644-1
openSUSETumbleweedlibheif1.23.1-1.1openSUSE-SU-2026:11416-1
Alpaquitastreamlibheif1.23.4-r0BELL-CVE-2026-62291

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpaquita.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON