libheif 1.22.0 before 1.23.6 contains a reachable assertion in ImageItem_Grid::decode_and_paste_tile_image() that allows attackers to crash applications by supplying grid images with oversized alpha planes. Attackers can craft a HEIF file containing a grid of uncompressed (unci) tiles with a 64-bit alpha component to terminate the decoding application or trigger an undefined shift.
https://github.com/strukturag/libheif/security/advisories/GHSA-3gwx-cjv4-jr74
https://github.com/strukturag/libheif/releases/tag/v1.23.6
https://github.com/strukturag/libheif/commit/858398f9654113b5b049beb8f2855a8e291fde19
https://github.com/strukturag/libheif/blob/v1.23.5/libheif/image-items/grid.cc#L566-L570
Published: 2026-12-02
Updated: 2026-12-02
Base Score: 7.5
Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P
Severity: High
Base Score: 5.3
Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
Severity: Medium
Base Score: 6
Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Severity: Medium
EPSS: 0.00638