Intel

AIKIDO-2026-945265

strukturag.libheif is vulnerable to Heap-based Buffer Overflow

Heap-based Buffer OverflowGHSA-g89c-p67h-r497 Published 2 days ago

93

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

HeifPixelImage::scale_nearest_neighbor can allocate an 8-bit Alpha plane from the first matching channel while later writing 16-bit samples from a duplicate Alpha created by nested iden/auxl item graphs. A crafted HEIC/HEIF/AVIF decoded through heif_decode_image therefore overflows the heap with attacker-controlled size and contents, enabling remote code execution. The fix rejects duplicate destination channels and hardens Alpha handling so nested derivation cannot underallocate then overwrite the plane.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application decodes untrusted HEIC, HEIF, or AVIF images with heif_decode_image.

Background info

strukturag.libheif is vulnerable to Heap-based Buffer Overflow in versions 0.0.1 - 1.23.1.

How to fix this

Upgrade the strukturag.libheif library to the patch version.