Intel

AIKIDO-2026-549633

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

Out-of-bounds ReadGHSA-fqpw-fj22-78w4 Published 3 days ago

63

Medium Risk

This Affects:

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

TL;DR

The per channel bit-depth equality check added for the YCbCr-to-RGB conversion runs inside convert_colorspace, but Encoder::convert_colorspace_for_encoding returns early when the colorspace already matches the encoder, so an image with 10- or 12-bit luma but 8-bit chroma reaches the AOM and x265 encoder plugins unconverted. Those plugins read one-byte chroma planes at two bytes per sample, leaking heap bytes into the lossless output or aborting under encoder assertions. This is an incomplete fix of GHSA-w7mc-p8jc-p853 on the encoding path. The fix validates the input image inside each encoder plugin.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you encode images through the AOM or x265 encoder plugins with mismatched luma and chroma bit depths.

Background info

strukturag.libheif is vulnerable to Out-of-bounds Read in versions 1.20.0 - 1.23.3.

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