A heap buffer overflow vulnerability exists in the OpenJPEG project when using the opj_decompress utility with certain options. This flaw can cause application crashes or other undefined behavior. The issue is tracked as CVE-2024-56827 and has a CVSS score of 5.6, indicating a medium severity level. Red Hat has issued a security advisory providing an update that fixes this vulnerability in their openjpeg2 package for Red Hat Enterprise Linux 9.