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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-12-02 · Modified: 2026-12-03
- Aliases: DEBIAN-CVE-2026-142502
- Record: https://cvemate.com/vulnerability/CVE-2026-142502 · JSON: https://cvemate.com/vulnerability/CVE-2026-142502/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.511%, percentile 45.144%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libheif (Debian): \< 1.23.6-2~deb13u1 \| \< 1.23.6-1
- strukturag libheif: ≥ 1.16.0, \< 1.23.6

## References

- <https://github.com/strukturag/libheif/security/advisories/GHSA-q7mw-2fmm-5q94>
- <https://github.com/strukturag/libheif/commit/8dc32399dea3e6e9e6b4a3acf270feb80008649c>
- <https://github.com/strukturag/libheif/releases/tag/v1.23.6>
- <https://github.com/strukturag/libheif/blob/v1.23.5/libheif/color-conversion/rgb2yuv_sharp.cc#L251-L255>
- <https://www.vulncheck.com/advisories/libheif-1.16.0-before-1.23.6-out-of-bounds-read-via-sharp-yuv-conversion>
- <https://security-tracker.debian.org/tracker/CVE-2026-142502>

---

Data as of 2026-12-05T10:29:56.671Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
