Intel

AIKIDO-2026-812768

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

Out-of-bounds WriteGHSA-x8r2-mggj-j6wr Published 4 days ago

98

Critical 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

The uncompressed (unci) mixed-interleave decoder in libheif allocates each destination chroma plane from its own component bit depth but writes both chroma planes using the first chroma entry's byte width. A crafted HEIF that declares mismatched Cb/Cr bit depths (for example 8-bit Y with 16-bit Cb and 8-bit Cr) in a 4:2:0 mixed-interleave image drives memcpy_to_native_endian past the smaller plane, corrupting the heap with file-controlled data. This yields file-controlled out-of-bounds writes during ordinary decoding. The fix tracks a per plane byte width so each chroma plane is written with its own sample size.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you decode uncompressed (unci) HEIF images.

Background info

strukturag.libheif is vulnerable to Out-of-bounds Write 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