Heap-based buffer overflow in OpenJPEG - CVE-2021-3575

 

Heap-based buffer overflow in OpenJPEG - CVE-2021-3575

Published: August 23, 2023


Vulnerability identifier: #VU79881
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-3575
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

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 sycc420_to_rgb() function in color.c. A remote attacker can pass specially crafted image 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

OpenJPEG
Oracle Solaris
Slackware Linux
Ubuntu
openEuler
Fedora
libopenjp3d7 (Ubuntu package)
libopenjpip7 (Ubuntu package)
libopenjp2-7 (Ubuntu package)
openjpeg2
openjpeg2-debugsource
openjpeg2-devel
openjpeg2-debuginfo
openjpeg2-help
mingw-openjpeg2
openjpeg

How to mitigate CVE-2021-3575

Install updates from vendor's website.

libopenjp3d7 (Ubuntu package) - addressed in versions Ubuntu Pro, 2.3.1-1ubuntu4.20.04.3, 2.4.0-6ubuntu0.2
libopenjpip7 (Ubuntu package) - addressed in versions Ubuntu Pro, 2.3.1-1ubuntu4.20.04.3, 2.4.0-6ubuntu0.2, 2.5.0-2ubuntu0.2, 2.5.0-2ubuntu1.1
libopenjp2-7 (Ubuntu package) - addressed in versions Ubuntu Pro, 2.3.1-1ubuntu4.20.04.3, 2.4.0-6ubuntu0.2, 2.5.0-2ubuntu0.2, 2.5.0-2ubuntu1.1
openjpeg2 - update to 2.3.1-9
openjpeg2-debugsource - update to 2.3.1-9
openjpeg2-devel - update to 2.3.1-9
openjpeg2-debuginfo - update to 2.3.1-9
openjpeg2-help - update to 2.3.1-9
openjpeg2 - addressed in versions 2.3.1-11.fc33, 2.4.0-3.fc34
mingw-openjpeg2 - addressed in versions 2.3.1-12.fc33, 2.4.0-3.fc34
openjpeg - update to 2.5.1

External References

Related Security Bulletins