CVE-2026-142502 libheif 1.16.0 before 1.23.6 Out-of-Bounds Read via Sharp-YUV Conversion
HighCVSS 7.1
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| strukturag libheif | >= 1.16.0, < 1.23.6 | 1.23.6 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| strukturag libheif | >= 1.16.0, < 1.23.6 | 1.23.6 |
References
- GitHub Security Advisory (GHSA-q7mw-2fmm-5q94) vendor-advisory
- github.com patch
- libheif v1.23.6 Release Notes release-notes
- github.com technical-description
- VulnCheck Advisory: libheif 1.16.0 before 1.23.6 Out-of-Bounds Read via Sharp-YUV Conversion third-party-advisory
- ENISA EUVD EUVD-2026-141722 third-party-advisory
- nvd.nist.gov