Intel

AIKIDO-2026-484413

strukturag.libheif is vulnerable to Out-of-bounds Read

Out-of-bounds ReadGHSA-w7mc-p8jc-p853 Published 4 days ago

75

High Risk

This Affects:

C++strukturag.libheif
1.18.0 - 1.23.2
Fixed in 1.23.3
Are you affected? Scan for Free

TL;DR

libheif's Op_YCbCr420_to_RRGGBBaa color conversion reads Cb and Cr samples as 16-bit values using a width derived from the luma channel, without verifying that the chroma channels share that bit depth. A crafted uncompressed image with 16-bit luma but 8-bit chroma makes the converter perform two-byte reads from one-byte allocations, and the leaked adjacent heap bytes are written into the decoded output pixels. This exposes process memory to anyone who can supply an image for decoding. The fix rejects inputs whose chroma bit depth differs from the luma bit depth.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you decode uncompressed images whose luma and chroma bit depths differ (YCbCr 4:2:0 to 16-bit RGB conversion).

Background info

strukturag.libheif is vulnerable to Out-of-bounds Read in versions 1.18.0 - 1.23.2.

How to fix this

Upgrade the strukturag.libheif library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform