Intel

AIKIDO-2026-62500

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

Out-of-bounds ReadGHSA-p58j-h3vm-3fp5 Published 6 days ago

40

Medium 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's inline-mask region writer API accepts a caller-supplied mask-data length without checking it against the region width and height. The reader later derives the read length from the region geometry alone and walks the mask buffer accordingly. When the supplied buffer is smaller than the geometry requires, the reader performs a heap out-of-bounds read that can crash the process and fold adjacent heap bytes into the returned mask image. The fix validates the mask-data length against the required buffer size.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you build region items with the inline-mask writer API using an untrusted or incorrectly sized mask-data buffer.

Background info

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