# CVE-2026-142504: libheif before 1.23.6 Bit Depth Mismatch Leads to Out-of-Bounds Read

- Priority: **Routine**
- Reason: Not severe (CVSS 6, 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-05
- Aliases: DEBIAN-CVE-2026-142504
- Record: https://cvemate.com/vulnerability/CVE-2026-142504 · JSON: https://cvemate.com/vulnerability/CVE-2026-142504/json

## Description

```text
libheif before 1.23.6 fails to verify that decoded images match the bit depth reported by the image handle, causing out-of-bounds reads in calling applications. Attackers can supply crafted HEIF files with contradicting hvcC or av1C boxes, mixed-depth grid tiles, or iovl overlays to crash applications or disclose memory.
```

## Signals

- CVSS: 6 medium (v4.0, CVE.org) CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.407%, percentile 37.084%, 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.15.1-1+deb12u2 \| \< 1.23.6-2~deb13u1 \| \< 1.23.6-1
- strukturag libheif: \< 1.23.6

## References

- <https://github.com/strukturag/libheif/security/advisories/GHSA-vv35-6hxg-95x8>
- <https://github.com/strukturag/libheif/commit/770b0d8d7e1e57b0f4d2b8dc53ff3f82b712fbac>
- <https://github.com/strukturag/libheif/commit/64a5bba75ad64aa8c010b8ad61e32091025442b3>
- <https://github.com/strukturag/libheif/releases/tag/v1.23.6>
- <https://github.com/strukturag/libheif/blob/v1.23.5/libheif/image-items/grid.cc#L590>
- <https://www.vulncheck.com/advisories/libheif-before-1.23.6-bit-depth-mismatch-leads-to-out-of-bounds-read>
- <https://security-tracker.debian.org/tracker/CVE-2026-142504>

---

Data as of 2026-12-05T10:15:19.919Z. 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
