A vulnerability, which was classified as critical, was found in OpenJPEG up to 2.4.0. This affects the function opj_j2k_add_tlmarker in the library lib/openjp2/j2k.c. The manipulation leads to heap-based buffer overflow.

This vulnerability is uniquely identified as CVE-2024-56827. It is possible to initiate the attack remotely. There is no exploit available.

It is recommended to upgrade the affected component.