CVE-2021-22564
CVE-2021-22564 is a medium-severity vulnerability in Libjxl Project Libjxl with a CVSS 3.x base score of 4.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-787.
Key facts
- Severity: Medium (CVSS 3.x base score 4.5)
- CVSS v2: 2.1
- EPSS exploit prediction: 0% (22nd percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-787
- Affected product: Libjxl Project Libjxl
- Published:
- Last modified:
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
Frequently asked questions
- What is CVE-2021-22564?
- 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
- How severe is CVE-2021-22564?
- CVE-2021-22564 has a CVSS 3.x base score of 4.5, rated medium severity. It is exploitable over local access with high attack complexity, requires low privileges and no user interaction. Impact on confidentiality is low, integrity low, and availability low.
- Is CVE-2021-22564 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (22nd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-22564?
- CVE-2021-22564 affects Libjxl Project Libjxl. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-22564?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2021-22564 published?
- CVE-2021-22564 was published on 2021-11-01 and last updated on 2026-06-17.
References
Affected products (1)
- cpe:2.3:a:libjxl_project:libjxl:*:*:*:*:*:*:*:*
More vulnerabilities in Libjxl Project Libjxl
- CVE-2024-11403 — Critical (CVSS 9.8): There exists an out of bounds read/write in LibJXL versions prior to commit 9cc451b91b74ba470fd72bd48c121e9f33d24c99.…
- CVE-2021-27804 — Critical (CVSS 9.8): JPEG XL (aka jpeg-xl) through 0.3.2 allows writable memory corruption.
- CVE-2026-1837 — High (CVSS 7.5): A specially-crafted file can cause libjxl's decoder to write pixel data to uninitialized unallocated memory. Soon after…
- CVE-2024-11498 — High (CVSS 7.5): There exists a stack buffer overflow in libjxl. A specifically-crafted file can cause the JPEG XL decoder to use large…
- CVE-2023-35790 — High (CVSS 7.5): An issue was discovered in dec_patch_dictionary.cc in libjxl before 0.8.2. An integer underflow in patch decoding can…
- CVE-2021-36691 — High (CVSS 7.5): libjxl v0.5.0 is affected by a Assertion failed issue in lib/jxl/image.cc jxl::PlaneBase::PlaneBase(). When encoding a…
All CVEs affecting Libjxl Project Libjxl →
Other CWE-787 (Out-of-bounds Write) vulnerabilities
- CVE-2026-42369 — Critical (CVSS 10.0): GV-VMS V20 is a Video Monitoring Software used to gather the feeds of many surveillance cameras and manage other…
- CVE-2026-4746 — Critical (CVSS 10.0): Out-of-bounds Write vulnerability in timeplus-io proton (base/poco/Foundation/src modules). This vulnerability is…
- CVE-2025-43300 — Critical (CVSS 10.0): An out-of-bounds write issue was addressed with improved bounds checking. This issue is fixed in iOS 15.8.5 and iPadOS…
- CVE-2025-24201 — Critical (CVSS 10.0): An out-of-bounds write issue was addressed with improved checks to prevent unauthorized actions. This issue is fixed in…
- CVE-2024-42479 — Critical (CVSS 10.0): llama.cpp provides LLM inference in C/C++. The unsafe `data` pointer member in the `rpc_tensor` structure can cause…
- CVE-2024-39791 — Critical (CVSS 10.0): Stack-based buffer overflow vulnerabilities affecting Vonets industrial wifi bridge relays and wifi bridge…