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
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
SUSE Linux Enterprise Module for Packagehub Subpackages
openjpeg (Alpine package)
libopenjp2-7 (Ubuntu package)
libopenjpip7 (Ubuntu package)
libopenjp3d7 (Ubuntu package)
openjpeg2 (Debian package)
libgs9 (Ubuntu package)
ghostscript (Ubuntu package)
gdk-pixbuf-loader-libheif-debuginfo
libheif1
libheif-jpeg-debuginfo
libheif-debugsource
libheif-aom
libheif-jpeg
libheif-rav1e
libheif-rav1e-debuginfo
libheif-dav1d-debuginfo
libheif1-debuginfo
libheif-ffmpeg
gdk-pixbuf-loader-libheif
libheif-devel
libheif-aom-debuginfo
libheif-dav1d
libheif-ffmpeg-debuginfo
libopenjp2-7-32bit
libopenjp2-7-32bit-debuginfo
libopenjp2-7
openjpeg2-debugsource
openjpeg2-debuginfo
openjpeg2
libopenjp2-7-debuginfo
openjpeg2-devel
mingw-openjpeg2
openjpeg2-help
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Enterprise Storage
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server
Fedora
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 Server
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Module for Basesystem
SUSE Package Hub 15
Desktop Applications Module
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
openjpeg (Alpine package) - addressed in versions 2.3.0-r4, 2.3.0-r5
libopenjp2-7 (Ubuntu package) - update to 2.3.0-2+deb10u2build0.18.04.1
libopenjpip7 (Ubuntu package) - update to 2.3.0-2+deb10u2build0.18.04.1
libopenjp3d7 (Ubuntu package) - update to 2.3.0-2+deb10u2build0.18.04.1
openjpeg2 (Debian package) - update to 2.3.0-2+deb10u2
libgs9 (Ubuntu package) - addressed in versions 9.26~dfsg+0-0ubuntu0.16.04.14, 9.26~dfsg+0-0ubuntu0.18.04.14
ghostscript (Ubuntu package) - addressed in versions 9.26~dfsg+0-0ubuntu0.16.04.14, 9.26~dfsg+0-0ubuntu0.18.04.14
gdk-pixbuf-loader-libheif-debuginfo - update to 1.23.5-150700.3.24.1
libheif1 - update to 1.23.5-150700.3.24.1
libheif-jpeg-debuginfo - update to 1.23.5-150700.3.24.1
libheif-debugsource - update to 1.23.5-150700.3.24.1
libheif-aom - update to 1.23.5-150700.3.24.1
libheif-jpeg - update to 1.23.5-150700.3.24.1
libheif-rav1e - update to 1.23.5-150700.3.24.1
libheif-rav1e-debuginfo - update to 1.23.5-150700.3.24.1
libheif-dav1d-debuginfo - update to 1.23.5-150700.3.24.1
libheif1-debuginfo - update to 1.23.5-150700.3.24.1
libheif-ffmpeg - update to 1.23.5-150700.3.24.1
gdk-pixbuf-loader-libheif - update to 1.23.5-150700.3.24.1
libheif-devel - update to 1.23.5-150700.3.24.1
libheif-aom-debuginfo - update to 1.23.5-150700.3.24.1
libheif-dav1d - update to 1.23.5-150700.3.24.1
libheif-ffmpeg-debuginfo - update to 1.23.5-150700.3.24.1
libopenjp2-7-32bit - update to 2.3.0-150000.3.5.1
libopenjp2-7-32bit-debuginfo - update to 2.3.0-150000.3.5.1
libopenjp2-7 - 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-debuginfo - update to 2.3.0-150000.3.5.1
openjpeg2-devel - 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 - update to 2.3.1-6
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
cflinuxfs3 - update to 0.357.0
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

External References

Related Security Bulletins