Out-of-bounds read in libheif - #VU146735

 

Out-of-bounds read in libheif - #VU146735

Published: September 2, 2026


Vulnerability identifier: #VU146735
CSH Severity: Medium
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to disclose sensitive information or cause a denial of service.

The vulnerability exists due to out-of-bounds read in Op_RGB_to_YCbCr::convert_colorspace in libheif/color-conversion/rgb2yuv.cc when converting a planar RGB image to YCbCr through the identity matrix path with mismatched per-channel bit depths. A remote attacker can supply a specially crafted image to disclose sensitive information or cause a denial of service.

Exploitation requires matrix_coefficients set to 0 with full_range enabled and the non-default decoding option output_image_nclx_profile_passthrough enabled. Default decoding and the heif-dec tool do not reach the vulnerable path.


Affected software

libheif

Remediation

Install security update from vendor's website.

libheif - update to 1.23.3

External References

Related Security Bulletins