strukturag.libheif is vulnerable to Out-of-bounds Write
98
Critical Risk
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.
You are affected if you are using a version that falls within the vulnerable range and you decode uncompressed (unci) HEIF images.
strukturag.libheif is vulnerable to Out-of-bounds Write in versions 1.18.0 - 1.23.2.
Upgrade the strukturag.libheif library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.