Intel

AIKIDO-2026-389832

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

Out-of-bounds WriteGHSA-2jg2-4ch7-h545 Published 6 days ago

98

Critical Risk

This Affects:

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

TL;DR

libheif assumes a decoded image's declared width and height describe every channel plane and that each channel is backed by a single plane. Parsing a HEIC file that uses identity (iden) and auxiliary (auxl) derived-item chains violates these invariants, so plane accessors index buffers using mismatched geometry. This produces out-of-bounds reads and writes during decoding that can be leveraged for remote code execution. The fix validates plane geometry and channel-to-plane relationships before indexing.

Who does this affect?

You are affected if you decode or parse untrusted HEIF/HEIC files with a vulnerable version.

Background info

strukturag.libheif is vulnerable to Out-of-bounds Write in versions 0.0.1 - 1.23.1.

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