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

- Severity: Medium 4.5 (CVSS:3.1, scored by Google) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-11-01T13:10:15.502Z
- Modified: 2026-06-17T03:37:26.073Z
- Weaknesses: CWE-122, CWE-787
- Assigned by: Google

## Description

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

(As written by CVE List.)

## Affected

- Google LLC libjxl: from unspecified up to 0.6.0
- libjxl_project libjxl: up to 0.6.0

## Every score

- Google: CVSS:3.1 4.5 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/libjxl/libjxl/issues/708> (exploit, issue-tracking, third-party-advisory)
- <https://github.com/libjxl/libjxl/pull/775> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-22564](https://www.cve.org/CVERecord?id=CVE-2021-22564), CVE Terms of Use, modified 2024-09-17
- NVD: [CVE-2021-22564](https://nvd.nist.gov/vuln/detail/CVE-2021-22564), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-22564 · Whole record: https://cve.day/CVE-2021-22564.json · Rebuilt by cve.day 2026-11-25T22:58:05.290Z
