Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| strukturag | libheif | 1.21.0 – < 1.23.4 | 1.23.4 |
References
- GitHub Security Advisory (GHSA-rhgw-q5g8-xjh2) vendor-advisory
- https://github.com/strukturag/libheif/commit/fb8d945732b0c58600cfb1101cfe595c74a6322b patch
- libheif v1.23.4 Release Notes release-notes
- https://github.com/strukturag/libheif/blob/v1.23.3/libheif/plugins/decoder_webcodecs.cc#L767-L773 technical-description
- VulnCheck Advisory: libheif 1.21.0 before 1.23.4 Out-of-Bounds Read via WebCodecs Decoder Plugin third-party-advisory