CVE-2024-56827 Openjpeg: heap buffer overflow in lib/openjp2/j2k.c

Medium 5.6 Published Updated

A heap buffer overflow in OpenJPEG's decompression utility can cause crashes or arbitrary code execution when specific options are used.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-56827?

CVE-2024-56827 is a medium-severity memory corruption vulnerability in Red Hat Enterprise Linux 10, published on 9 Jan 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

A flaw was found in the OpenJPEG project. A heap buffer overflow condition may be triggered when certain options are specified while using the opj_decompress utility. This can lead to an application crash or other undefined behavior.

Weakness: CWE-122

Which versions are affected by CVE-2024-56827?

How do I fix CVE-2024-56827?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-56827 being exploited?

There is no known exploitation of CVE-2024-56827 in the wild and no public exploit code.

Sources

Also known as AZL-55447, AZL-55451, BELL-CVE-2024-56827, DEBIAN-CVE-2024-56827, GHSA-jq5v-29wx-7grq, OESA-2025-1043 and 1 more.

Is CVE-2024-56827 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free