Heap-based buffer overflow in OpenJPEG - CVE-2024-56827
Published: January 17, 2025
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error within the opj_j2k_add_tlmarker() function in src/lib/openjp2/j2k.c. A remote attacker can pass specially crafted data to the application, trigger a heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Debian Linux
Ubuntu
openEuler
IBM Cloud Pak for Watson AIOps
libopenjp3d7 (Ubuntu package)
libopenjp2-tools (Ubuntu package)
libopenjp3d-tools (Ubuntu package)
libopenjp2-7 (Ubuntu package)
openjpeg2 (Debian package)
openjpeg2-debuginfo
openjpeg2-help
openjpeg2-tools
openjpeg2-devel
openjpeg2-debugsource
openjpeg2
ghostscript (Ubuntu package)
App Connect Enterprise Certified Container
How to mitigate CVE-2024-56827
IBM Cloud Pak for Watson AIOps - update to 4.10.0
libopenjp3d7 (Ubuntu package) - addressed in versions Ubuntu Pro, 2.3.1-1ubuntu4.20.04.4, 2.4.0-6ubuntu0.3
libopenjp2-tools (Ubuntu package) - addressed in versions Ubuntu Pro, 2.3.1-1ubuntu4.20.04.4, 2.4.0-6ubuntu0.3, 2.5.0-2ubuntu0.3, 2.5.0-2ubuntu1.2
libopenjp3d-tools (Ubuntu package) - addressed in versions Ubuntu Pro, 2.3.1-1ubuntu4.20.04.4, 2.4.0-6ubuntu0.3
libopenjp2-7 (Ubuntu package) - addressed in versions Ubuntu Pro, 2.3.1-1ubuntu4.20.04.4, 2.4.0-6ubuntu0.3, 2.5.0-2ubuntu0.3, 2.5.0-2ubuntu1.2
openjpeg2 (Debian package) - update to 2.5.0-2+deb12u1
openjpeg2-debuginfo - update to 2.5.0-6
openjpeg2-help - update to 2.5.0-6
openjpeg2-tools - update to 2.5.0-6
openjpeg2-devel - update to 2.5.0-6
openjpeg2-debugsource - update to 2.5.0-6
openjpeg2 - update to 2.5.0-6
ghostscript (Ubuntu package) - addressed in versions 9.26~dfsg+0-0ubuntu0.16.04.14+esm9, 9.26~dfsg+0-0ubuntu0.18.04.18+esm4, 9.50~dfsg-5ubuntu4.15+esm1, 9.55.0~dfsg1-0ubuntu5.12, 10.02.1~dfsg1-0ubuntu7.7, 10.03.1~dfsg1-0ubuntu2.4, 10.05.0dfsg1-0ubuntu1.1
App Connect Enterprise Certified Container - update to 12.8.0