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

Published Jan 1, 2025
·
Updated

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

Other sources

This bug is triggered when we use opjdecompress with the -t option and its argument set to 1. The latest version v2.5.2 also has this vulnerability.

Reproducible: Always

Steps to Reproduce: see https://github.com/uclouvain/openjpeg/issues/1564

References: https://github.com/uclouvain/openjpeg/issues/1564 https://github.com/uclouvain/openjpeg/commit/e492644fbded4c820ca55b5e50e598d346e850e8

— Red Hat

Affected Software

5 affected componentsFixes available
OpenJPEG OpenJPEG
debian/openjpeg2
2.5.0-2+deb12u32.5.3-2.1~deb13u22.5.4-1.1
debian/openjpeg2<2.5.0-2+deb12u1
2.5.0-2+deb12u1
debian/openjpeg2<2.5.3-1
2.5.3-1
debian/openjpeg2<2.5.3-1
2.5.3-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/openjpeg2 to a version that resolves this vulnerability.

    Fixed in 2.5.0-2+deb12u3Fixed in 2.5.3-2.1~deb13u2Fixed in 2.5.4-1.1
  2. Upgrade

    Upgrade debian/openjpeg2 to a version that resolves this vulnerability.

    Fixed in 2.5.0-2+deb12u1
  3. Upgrade

    Upgrade debian/openjpeg2 to a version that resolves this vulnerability.

    Fixed in 2.5.3-1
  4. Compensating control

    Avoid invoking the opj_decompress utility with the -t option set to 1, which triggers the heap buffer overflow.

Event History

Jan 1, 2025
Data Sourced
via Red Hat·05:04 PM
DescriptionSeverityAffected Software
Jan 9, 2025
CVE Published
via MITRE·03:40 AM
Data Sourced
via MITRE·03:40 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 AM
DescriptionSeverityWeakness
Data Sourced
via OSV·04:15 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2024-56827?

CVE-2024-56827 has a high severity level due to the potential for heap buffer overflow leading to application crashes.

2

How do I fix CVE-2024-56827?

To fix CVE-2024-56827, update the OpenJPEG package to version 2.5.0-3 or later.

3

What systems are affected by CVE-2024-56827?

CVE-2024-56827 affects OpenJPEG versions up to 2.4.0-3 and 2.5.0-2 on Debian-based systems.

4

What does CVE-2024-56827 exploit?

CVE-2024-56827 exploits a heap buffer overflow in the opj_decompress utility under specific options.

5

What are the potential consequences of CVE-2024-56827?

The potential consequences of CVE-2024-56827 include application crashes and undefined behavior.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203