CVE-2026-142493
libheif
The WebCodecs decoder plugin reads the coded rectangle out of a buffer sized for the visible one, returning megabytes of heap memory as decoded pixels.
- Published
- Severity
- Medium
- CVSS
- 4.3
- Weakness
- CWE-125 Out-of-bounds Read
- Affected
- 1.21.0 through 1.23.3
- Fixed in
- 1.23.4
- Credit
- Bartłomiej Dmitruk, striga
Open source maintainer
As the maintainer of two widely used open-source libraries, I see many security reports of widely varying quality. The reports I received from striga were reproducible, precisely located in the code, and rated honestly rather than inflated. Every one of them resulted in a fix or a hardening change in libheif. All of them helped to make libheif better.”
- security advisories published
- 13
- rated high
- 6
More in libheif
CVE-2026-142504
Decoded images are not checked against the bit depth the image handle reports, so contradicting hvcC or av1C boxes, mixed-depth grid tiles or overlays cause out-of-bounds reads in the calling application.
MediumCVSS 5.9
CVE-2026-142503
A grid of unci tiles with a 64-bit alpha component trips an assertion in ImageItem_Grid::decode_and_paste_tile_image() and terminates the decoding application.
MediumCVSS 5.3
CVE-2026-142502
RGB samples above the declared bit depth reach SharpYuvConvert() unchecked, so libsharpyuv's gamma table lookups read out of bounds.
HighCVSS 7.1
CVE-2026-142501
A generically compressed unci item is decompressed again for every tile, so a file of a few kilobytes with a large tile grid occupies a CPU core for minutes.
MediumCVSS 6.5
CVE-2026-142500
Decompressed unci tile data escapes the max_total_memory limit, so a 22 KB file causes multi-gigabyte allocations.
MediumCVSS 6.5
CVE-2026-142499
A sequence chunk mapped to a non-visual sample entry such as mp4a makes Track_Visual::decode_next_image_sample() call through a NULL decoder pointer.
MediumCVSS 6.5
CVE-2026-142498
The AOM and x265 encoder plugins read chroma rows at twice their width when luma and chroma bit depths differ, leaking heap bytes into the encoded output.
LowCVSS 3.1
CVE-2026-142497
Grid tiles that reference each other as alpha images make decoding threads take item mutexes in opposite order, deadlocking the decoder permanently.
MediumCVSS 6.5
CVE-2026-142496
A long chain of dimg references in a file under 1 MB exhausts the stack in the recursive reference-cycle check while the file is read.
MediumCVSS 6.5
CVE-2026-142495
The max_items limit is not enforced on iinf child boxes, so a file declaring a huge number of infe items costs quadratic CPU time and gigabytes of heap.
MediumCVSS 6.5
CVE-2026-142494
Error paths in Track::get_next_sample_raw_data() leak sample copies, and oversized stsz samples abort the process through an uncaught std::bad_alloc.
MediumCVSS 6.5