CVE-2024-56827
Medium · 5.6CVSS
5.6
EPSS
0.3%
Published
Jan 9, 2025
CISA due date
—
Cloudanix analysis
A bug in an image processing tool can cause it to crash when handling certain inputs, which might interrupt workflows that rely on it.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- Application
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A heap buffer overflow is triggered in the opj_decompress utility under specific command-line options, potentially causing the application to crash or exhibit undefined behavior.
Why it matters to the business
Organizations relying on OpenJPEG for image decompression may experience application instability or crashes when using the opj_decompress tool with certain options, disrupting image processing operations.
How an attack unfolds
An attacker with local access crafts input or options for opj_decompress that triggers the heap buffer overflow, leading to a crash or potential code execution depending on memory layout.
How to fix it
Upgrade uclouvain/openjpeg to commit e492644fbded4c820ca55b5e50e598d346e850e8 or later. For affected Chromium on Ubuntu 14.04, update to version 58.0.3029.81-0ubuntu0.14.04.1172 or equivalent.
How to confirm the fix worked
Verify the installed version of OpenJPEG matches or exceeds the fixed commit. Test opj_decompress with previously triggering options to confirm no crash.
Typical attack path
- Identify vulnerable OpenJPEG installation
- Craft malicious command line options for opj_decompress
- Execute the utility to trigger overflow
- Observe crash or undefined behavior
How to detect it
Examine logs for crashes in opj_decompress or OpenJPEG processes. Look for unusual command line arguments in process execution logs.
What your security team should do
- Prioritize updating OpenJPEG in all environments using the opj_decompress utility
- Review usage of opj_decompress in scripts and applications
- Monitor for application crashes related to image processing
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| AlmaLinux:9 | openjpeg2 | 0 | 2.4.0-8.el9 |
| AlmaLinux:9 | openjpeg2-devel | 0 | 2.4.0-8.el9 |
| AlmaLinux:9 | openjpeg2-tools | 0 | 2.4.0-8.el9 |
| Debian:11 | openjpeg2 | 0 | No fix |
| Debian:11 | openjpeg2 | 0 | 2.4.0-3+deb11u1 |
| Debian:12 | openjpeg2 | 0 | No fix |
| Debian:12 | openjpeg2 | 0 | 2.5.0-2+deb12u1 |
| Debian:13 | openjpeg2 | 0 | No fix |
| Debian:13 | openjpeg2 | 0 | 2.5.3-1 |
| Mageia:9 | openjpeg2 | 0 | 2.5.0-1.2.mga9 |
| Ubuntu:16.04:LTS | blender | 0 | No fix |
| Ubuntu:16.04:LTS | insighttoolkit4 | 0 | No fix |
| Ubuntu:16.04:LTS | texmaker | 0 | No fix |
| Ubuntu:18.04:LTS | blender | 0 | No fix |
| Ubuntu:18.04:LTS | insighttoolkit4 | 0 | No fix |
| Ubuntu:18.04:LTS | qtwebengine-opensource-src | 0 | No fix |
| Ubuntu:18.04:LTS | texmaker | 0 | No fix |
| Ubuntu:20.04:LTS | blender | 0 | No fix |
| Ubuntu:20.04:LTS | insighttoolkit4 | 0 | No fix |
| Ubuntu:20.04:LTS | openjpeg2 | 0 | No fix |
| Ubuntu:20.04:LTS | openjpeg2 | 0 | 2.3.1-1ubuntu4.20.04.4 |
| Ubuntu:20.04:LTS | qtwebengine-opensource-src | 0 | No fix |
| Ubuntu:20.04:LTS | texmaker | 0 | No fix |
| Ubuntu:22.04:LTS | blender | 0 | No fix |
| Ubuntu:22.04:LTS | insighttoolkit4 | 0 | No fix |
| Ubuntu:22.04:LTS | openjpeg2 | 0 | No fix |
| Ubuntu:22.04:LTS | openjpeg2 | 0 | 2.4.0-6ubuntu0.3 |
| Ubuntu:22.04:LTS | qtwebengine-opensource-src | 0 | No fix |
| Ubuntu:22.04:LTS | texmaker | 0 | No fix |
| Ubuntu:24.04:LTS | blender | 0 | No fix |
| Ubuntu:24.04:LTS | openjpeg2 | 0 | No fix |
| Ubuntu:24.04:LTS | openjpeg2 | 0 | 2.5.0-2ubuntu0.3 |
| Ubuntu:24.04:LTS | qtwebengine-opensource-src | 0 | No fix |
| Ubuntu:24.04:LTS | texmaker | 0 | No fix |
| Ubuntu:24.10 | blender | 0 | No fix |
| Ubuntu:24.10 | openjpeg2 | 0 | No fix |
| Ubuntu:24.10 | openjpeg2 | 0 | 2.5.0-2ubuntu1.2 |
| Ubuntu:24.10 | qtwebengine-opensource-src | 0 | No fix |
| Ubuntu:24.10 | texmaker | 0 | No fix |
| Ubuntu:25.04 | blender | 0 | No fix |
| Ubuntu:25.04 | openjpeg2 | 0 | 2.5.0-2ubuntu3 |
| Ubuntu:25.04 | qtwebengine-opensource-src | 0 | No fix |
| Ubuntu:25.04 | texmaker | 0 | No fix |
| Ubuntu:25.10 | blender | 0 | No fix |
| Ubuntu:25.10 | qtwebengine-opensource-src | 0 | No fix |
| Ubuntu:25.10 | texmaker | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | openjpeg | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | blender | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | ghostscript | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | ghostscript | 0 | 9.26~dfsg+0-0ubuntu0.16.04.14+esm9 |
| Ubuntu:Pro:16.04:LTS | insighttoolkit4 | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | openjpeg | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | openjpeg2 | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | openjpeg2 | 0 | 2.1.2-1.1+deb9u6ubuntu0.1~esm7 |
| Ubuntu:Pro:16.04:LTS | texmaker | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | blender | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | ghostscript | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | ghostscript | 0 | 9.26~dfsg+0-0ubuntu0.18.04.18+esm4 |
| Ubuntu:Pro:18.04:LTS | insighttoolkit4 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | openjpeg2 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | openjpeg2 | 0 | 2.3.0-2+deb10u2ubuntu0.1~esm4 |
| Ubuntu:Pro:18.04:LTS | qtwebengine-opensource-src | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | texmaker | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | blender | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | insighttoolkit4 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | qtwebengine-opensource-src | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | texmaker | 0 | No fix |
Related vulnerabilities
- CVE-2024-56826 A flaw was found in the OpenJPEG project. Also affects openjpeg2
- CVE-2023-39329 A flaw was found in OpenJPEG. Also affects openjpeg2
- CVE-2023-39327 A flaw was found in OpenJPEG. Also affects openjpeg2
- CVE-2023-39328 A vulnerability was found in OpenJPEG similar to CVE-2019-6988. Also affects openjpeg2
- CVE-2017-17480 In OpenJPEG 2.3.0, a stack-based buffer overflow was discovered in the pgxtovolume… Also affects openjpeg2
- CVE-2016-10506 Division-by-zero vulnerabilities in the functions opj_pi_next_cprl, opj_pi_next_pcrl, and… Also affects openjpeg2
- CVE-2016-9112 Floating Point Exception (aka FPE or divide by zero) in opj_pi_next_cprl function in… Also affects openjpeg2
- CVE-2022-2831 A flaw was found in Blender 3.3.0. Also affects blender