# CVE-2021-22564: Out of bounds Copy in Libjxl in large image groups

- Priority: **Routine**
- Reason: Not severe (CVSS 4.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-11-01 · Modified: 2024-09-17
- Record: https://cvemate.com/vulnerability/CVE-2021-22564 · JSON: https://cvemate.com/vulnerability/CVE-2021-22564/json

## Description

```text
For certain valid JPEG XL images with a size slightly larger than an integer number of groups (256x256 pixels) when processing the groups out of order the decoder can perform an out of bounds copy of image pixels from an image buffer in the heap to another. This copy can occur when processing the right or bottom edges of the image, but only when groups are processed in certain order. Groups can be processed out of order in multi-threaded decoding environments with heavy thread load but also with images that contain the groups in an arbitrary order in the file. It is recommended to upgrade past 0.6.0 or patch with https://github.com/libjxl/libjxl/pull/775
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.311%, percentile 25.779%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- google llc libjxl: ≥ unspecified, ≤ 0.6.0
- libjxl\_project libjxl: ≤ 0.6.0

## References

- <https://github.com/libjxl/libjxl/pull/775>
- <https://github.com/libjxl/libjxl/issues/708>

---

Data as of 2026-12-05T07:09:16.971Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
