CVE-2026-142502: libheif 1.16.0 before 1.23.6 Out-of-Bounds Read via Sharp-YUV Conversion

Published Dec 2, 2026
·
Updated

libheif 1.16.0 before 1.23.6 contains an out-of-bounds read vulnerability in OpAnyRGBtoYCbCr420Sharp::convertcolorspace() 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 Software

1 affected component
libheif libheif>=1.16.0<1.23.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade libheif to a version that resolves this vulnerability.

    Fixed in 1.23.6

Event History

Dec 2, 2026
CVE Published
via MITRE·05:42 PM
Data Sourced
via MITRE·05:42 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:19 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which versions are affected?

libheif versions from 1.16.0 before 1.23.6 are affected. Version 1.23.6 is identified as the release containing the fix.

2

What does an attacker need to exploit this issue?

An attacker needs to provide a crafted HEIF file that produces 10-bit or 12-bit RGB samples above the declared bit depth during Sharp-YUV color conversion. The vulnerable conversion passes those samples unchecked to libsharpyuv.

3

What impact should operators expect?

The out-of-bounds gamma-table lookup can crash the process. It may also leak memory contents into output pixels.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203