---
title: "CVE-2026-142502: libheif - Out of Bounds Read"
description: "libheif < 1.23.6 contains an out-of-bounds read vulnerability caused by unchecked 10-bit or 12-bit RGB samples in Op_Any_RGB_to_YCbCr_420_Sharp::convert_colorspace(), letting attackers crash the process or leak memory by supplying crafted HEIF files, exploit requires crafted HEIF file."
url: https://panop.io/threat-heartbeat/CVE-2026-142502/
---

# CVE-2026-142502 libheif - Out of Bounds Read

libheif < 1.23.6 contains an out-of-bounds read vulnerability caused by unchecked 10-bit or 12-bit RGB samples in Op\_Any\_RGB\_to\_YCbCr\_420\_Sharp::convert\_colorspace(), letting attackers crash the process or leak memory by supplying crafted HEIF files, exploit requires crafted HEIF file.

CVSS base score 7.1 /10

High

CISA KEV

Not listed

Public exploit

None known

Authentication

Not required

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-142502)

## Details

Type

Out of Bounds Read

Impact

Denial Of Service, Information Disclosure

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H

Published

2 December 2026

Updated

3 December 2026

Weakness

[CWE-129](https://cwe.mitre.org/data/definitions/129.html)

## Vendor fix

Update to version 1.23.6 or later.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-142502](https://nvd.nist.gov/vuln/detail/CVE-2026-142502)
- [https://github.com/strukturag/libheif/releases/tag/v1.23.6](https://github.com/strukturag/libheif/releases/tag/v1.23.6)
- [https://github.com/strukturag/libheif/security/advisories/GHSA-q7mw-2fmm-5q94](https://github.com/strukturag/libheif/security/advisories/GHSA-q7mw-2fmm-5q94)
- [https://www.vulncheck.com/advisories/libheif-1.16.0-before-1.23.6-out-of-bounds-read-via-sharp-yuv-conversion](https://www.vulncheck.com/advisories/libheif-1.16.0-before-1.23.6-out-of-bounds-read-via-sharp-yuv-conversion)
- [https://github.com/strukturag/libheif/blob/v1.23.5/libheif/color-conversion/rgb2yuv\_sharp.cc#L251-L255](https://github.com/strukturag/libheif/blob/v1.23.5/libheif/color-conversion/rgb2yuv_sharp.cc#L251-L255)
- [https://github.com/strukturag/libheif/commit/8dc32399dea3e6e9e6b4a3acf270feb80008649c](https://github.com/strukturag/libheif/commit/8dc32399dea3e6e9e6b4a3acf270feb80008649c)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
