Heap-based buffer overflow in Libjxl - CVE-2021-22564

 

Heap-based buffer overflow in Libjxl - CVE-2021-22564

Published: November 9, 2021 / Updated: November 25, 2026


Vulnerability identifier: #VU170146
CSH Severity: Medium
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-22564
CWE-ID: CWE-122
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to corrupt heap memory and potentially crash the decoder.

The vulnerability exists due to a heap-based buffer overflow in the JPEG XL decoder when pixel copies at the right or bottom image edge exceed buffer bounds after groups are processed out of order because of file ordering or thread scheduling. A remote attacker can supply a JPEG XL image for decoding to trigger heap memory corruption and potentially crash the decoder.


Affected software

Libjxl

How to mitigate CVE-2021-22564

Install security update from vendor's website.

Libjxl - update to 0.6.1

External References

Related Security Bulletins