Heap-based buffer overflow in OpenJPEG - CVE-2020-6851

 

Heap-based buffer overflow in OpenJPEG - CVE-2020-6851

Published: January 14, 2020 / Updated: December 29, 2020


Vulnerability identifier: #VU24306
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-6851
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 opj_t1_clbl_decode_processor() function in libopenjp2.so. A remote attacker can create a specially crafted file, trick the victim into opening it, trigger 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
openjpeg2 (Debian package)
openjpeg (Alpine package)
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
SUSE Linux Enterprise Module for Packagehub Subpackages
libopenjp3d7 (Ubuntu package)
libopenjpip7 (Ubuntu package)
libopenjp2-7 (Ubuntu package)
libopenjp2-7-32bit-debuginfo
libopenjp2-7-32bit
openjpeg2-devel
openjpeg2-debugsource
openjpeg2-debuginfo
openjpeg2
libopenjp2-7
libopenjp2-7-debuginfo
mingw-openjpeg2
openjpeg2-help
ghostscript (Ubuntu package)
libgs9 (Ubuntu package)
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Enterprise Storage
Fedora
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for x86_64
Oracle Solaris
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Server for SAP Applications
openSUSE Leap
Ubuntu
openEuler
cflinuxfs3
Data Computing Appliance (DCA)
Isolation Segment
VMware Tanzu Application Service for VMs

How to mitigate CVE-2020-6851

Install update from vendor's website.

OpenJPEG - update to 2.4.0
openjpeg2 (Debian package) - update to 2.3.0-2+deb10u2
openjpeg (Alpine package) - addressed in versions 2.3.0-r4, 2.3.0-r5
libopenjp3d7 (Ubuntu package) - addressed in versions Ubuntu Pro, 2.3.0-2+deb10u2build0.18.04.1
libopenjpip7 (Ubuntu package) - addressed in versions Ubuntu Pro, 2.3.0-2+deb10u2build0.18.04.1
libopenjp2-7 (Ubuntu package) - addressed in versions Ubuntu Pro, 2.3.0-2+deb10u2build0.18.04.1
cflinuxfs3 - update to 0.357.0
libopenjp2-7-32bit-debuginfo - update to 2.3.0-150000.3.5.1
libopenjp2-7-32bit - update to 2.3.0-150000.3.5.1
openjpeg2-devel - update to 2.3.0-150000.3.5.1
openjpeg2-debugsource - update to 2.3.0-150000.3.5.1
openjpeg2-debuginfo - update to 2.3.0-150000.3.5.1
openjpeg2 - update to 2.3.0-150000.3.5.1
libopenjp2-7 - update to 2.3.0-150000.3.5.1
libopenjp2-7-debuginfo - update to 2.3.0-150000.3.5.1
openjpeg2 - addressed in versions 2.3.1-4.fc30, 2.3.1-4.fc31, 2.3.1-10.el7, 2.3.1-11.el7
mingw-openjpeg2 - addressed in versions 2.3.1-5.fc30, 2.3.1-5.fc31
openjpeg2-help - update to 2.3.1-6
openjpeg2-debuginfo - update to 2.3.1-6
openjpeg2-debugsource - update to 2.3.1-6
openjpeg2-devel - update to 2.3.1-6
openjpeg2 - update to 2.3.1-6
Isolation Segment - addressed in versions 2.11.31, 2.13.16, 3.0.9, 4.0.0
VMware Tanzu Application Service for VMs - addressed in versions 2.11.37, 2.13.19, 3.0.9, 4.0.0
Data Computing Appliance (DCA) - update to 4.3.0.0
ghostscript (Ubuntu package) - addressed in versions 9.26~dfsg+0-0ubuntu0.16.04.14, 9.26~dfsg+0-0ubuntu0.18.04.14
libgs9 (Ubuntu package) - addressed in versions 9.26~dfsg+0-0ubuntu0.16.04.14, 9.26~dfsg+0-0ubuntu0.18.04.14

External References

Related Security Bulletins