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(…
- CVSS
- 7.1High
- Chance of exploitation (EPSS)
- 0.51%
- Published
- Dec 2, 2026
- In the news
- Not yet
What to do
A serious security flaw in Strukturag Libheif that can be attacked over the network without logging in, if someone is tricked into an action. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Fixed in: 1.23.6
Affected versions
- Strukturag Libheif
- 1.16.0 to before 1.23.6
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.
Affected products
Get alerts for these →Timeline 2
Latest change: Nessus plugin 394284: Linux Distros Unpatched Vulnerability : CVE-2026-142502 (Dec 5, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Today
Wed, Dec 2, 2026
- CVECVE-2026-142502 published (CVSS 7.1)CVE Program · 18:19 UTC
References 5
- github.com /strukturag/libheif/blob/v1.23.5/libheif/color-conversion/rgb2yuv_sharp.cc#L251-L255
- github.com /strukturag/libheif/commit/8dc32399dea3e6e9e6b4a3acf270feb80008649c
- github.com /strukturag/libheif/releases/tag/v1.23.6
- github.com /strukturag/libheif/security/advisories/GHSA-q7mw-2fmm-5q94
- www.vulncheck.com /advisories/libheif-1.16.0-before-1.23.6-out-of-bounds-read-via-sharp-yuv-conversion