libheif 1.21.0 before 1.23.4 contains an out-of-bounds read vulnerability in the WebCodecs HEVC decoder plugin that allows attackers to disclose heap memory via crafted HEIF files. Attackers can set an HEVC SPS conformance window so codedWidth and codedHeight exceed the visible rectangle, causing megabyte-scale heap over-reads returned as decoded image pixels.
https://github.com/strukturag/libheif/security/advisories/GHSA-rhgw-q5g8-xjh2
https://github.com/strukturag/libheif/releases/tag/v1.23.4
https://github.com/strukturag/libheif/commit/fb8d945732b0c58600cfb1101cfe595c74a6322b
https://github.com/strukturag/libheif/blob/v1.23.3/libheif/plugins/decoder_webcodecs.cc#L767-L773
Published: 2026-12-02
Updated: 2026-12-03
Base Score: 7.5
Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P
Severity: High
Base Score: 4.3
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Severity: Medium
Base Score: 5.3
Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Severity: Medium
EPSS: 0.00383