CVE-2026-142498: libheif 1.22.0 before 1.23.4 Heap Out-of-Bounds Read in AOM and x265 Encoders
libheif 1.22.0 before 1.23.4 contains a heap out-of-bounds read vulnerability in aomencodesequenceframe() and x265encodesequenceframe() that allows attackers to disclose heap memory via crafted images with mismatched luma and chroma bit depths. Attackers can supply a crafted 'unci' file with 10-bit luma and 8-bit chroma so re-encoding reads chroma rows at twice their width, leaking heap bytes into encoded output.
Affected Software
Event History
Frequently Asked Questions
Which workflows are exposed to this issue?
Workflows that accept attacker-controlled uncompressed 'unci' images and re-encode them using the AOM or x265 encoder are exposed. The crafted input uses 10-bit luma with 8-bit chroma components.
What does an attacker need to do to exploit it?
An attacker needs to supply a crafted 'unci' file and cause the affected libheif instance to re-encode it. No privileges are required, but user interaction is required according to the supplied severity vector.
What is the practical impact of successful exploitation?
The out-of-bounds read can disclose heap memory because chroma rows are read at twice their actual width and the resulting data can be included in encoded output. The provided data indicates confidentiality impact only, with no integrity or availability impact.
What version should be used to remediate the issue?
Upgrade libheif to version 1.23.4 or later. The affected range is version 1.22.0 before 1.23.4.