CVE-2026-142502
Deferred Deferred - Pending Action

Out-of-Bounds Read in libheif via SharpYuv Gamma Table

Vulnerability report for CVE-2026-142502, 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.16.0 before 1.23.6 contains an out-of-bounds read vulnerability in Op_Any_RGB_to_YCbCr_420_Sharp::convert_colorspace() that passes unchecked 10-bit or 12-bit RGB samples to SharpYuvConvert(). Attackers can supply a crafted HEIF file producing samples above the declared bit depth so libsharpyuv gamma table lookups read out of bounds, crashing the process or leaking memory into output pixels.

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.16.0 (inc) to 1.23.6 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-129 The product uses untrusted input when calculating or using an array index, but the product does not validate or incorrectly validates the index to ensure the index references a valid position within the array.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is an out-of-bounds read vulnerability in libheif versions 1.16.0 to 1.23.5. When converting RGB images with 10 or 12 bits per component to YCbCr 4:2:0 using the SharpYuv algorithm, libheif passes unvalidated sample values to libsharpyuv. If these values exceed the declared bit depth, libsharpyuv uses them as indices into gamma tables sized for the declared bit depth, causing out-of-bounds reads. This can crash the process or leak memory into output pixels.

Detection Guidance

To detect this vulnerability, check the installed version of libheif on your system. Run: libheif-info --version or dpkg -l libheif1. If the version is between 1.16.0 and 1.23.5, the system is vulnerable.

Impact Analysis

The vulnerability can cause denial of service by crashing applications processing crafted HEIF files. It may also leak limited process memory into output pixels, potentially exposing sensitive information. Systems using libheif with libsharpyuv support (default) are affected.

Compliance Impact

This vulnerability could potentially impact compliance with GDPR and HIPAA by enabling memory disclosure or process crashes through crafted HEIF files. Out-of-bounds reads might expose sensitive process memory in output pixels, violating data confidentiality requirements under GDPR and HIPAA. Additionally, denial-of-service conditions from crashes could disrupt systems handling protected health or personal data.

Mitigation Strategies

Upgrade libheif to version 1.23.6 or later. If upgrading is not immediately possible, disable libsharpyuv support or use alternative chroma downsampling algorithms as a temporary workaround.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-142502. 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...