CVE-2026-142498
Deferred Deferred - Pending Action

Heap Out-of-Bounds Read in libheif Image Re-encoding

Vulnerability report for CVE-2026-142498, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-02

Last updated on: 2026-12-02

Assigner: VulnCheck

Description

libheif 1.22.0 before 1.23.4 contains a heap out-of-bounds read vulnerability in aom_encode_sequence_frame() and x265_encode_sequence_frame() that allows attackers to disclose heap memory via crafted images with mismatched luma and chroma bit depths. Attackers can supply a crafted 'unci' file with 10-bit luma and 8-bit chroma so re-encoding reads chroma rows at twice their width, leaking heap bytes into encoded output.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-02
Last Modified
2026-12-02
Generated
2026-12-03
AI Q&A
2026-12-02
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
strukturag libheif From 1.22.0 (inc) to 1.23.4 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a heap out-of-bounds read flaw in libheif versions 1.22.0 to 1.23.3. It occurs when images have mismatched luma (Y) and chroma (Cb/Cr) bit depths, such as 10-bit luma and 8-bit chroma. During encoding with AOM or x265 plugins, the software incorrectly uses the luma bit depth for chroma planes, causing it to read beyond allocated memory. This leaks heap memory contents into the encoded output.

Detection Guidance

To detect this vulnerability, check the version of libheif installed on your system. Run: 'libheif-info --version' or 'dpkg -l | grep libheif' on Debian-based systems. If the version is below 1.23.4, the system is vulnerable.

Impact Analysis

An attacker could exploit this to leak sensitive heap memory data through crafted image files. If lossless encoding is used, the leaked data may be recoverable from the output. The impact is limited as it requires user interaction to process malicious files and has low severity per CVSS scores.

Mitigation Strategies

Upgrade libheif to version 1.23.4 or later immediately. If upgrading is not possible, disable the AOM and x265 encoder plugins by removing or renaming their library files in the libheif plugins directory.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-142498. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...