Heap-based buffer overflow in Libjxl - CVE-2021-22564
Published: November 9, 2021 / Updated: November 25, 2026
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.