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

 

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

Published: February 24, 2020 / Updated: December 29, 2020


Vulnerability identifier: #VU25546
CSH Severity: Medium
CVSS v4: 7.1 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-8112
CWE-ID: CWE-122
Exploitation vector: Local 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 the qmfbid==1 case, a different issue than CVE-2020-6851. 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 Power LE - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
SUSE Linux Enterprise Module for Packagehub Subpackages
openjpeg (Alpine package)
libopenjp3d7 (Ubuntu package)
libopenjpip7 (Ubuntu package)
libopenjp2-7 (Ubuntu package)
openjpeg2 (Debian package)
libgs9 (Ubuntu package)
ghostscript (Ubuntu package)
libopenjpeg1-32bit-debuginfo
libopenjpeg1-32bit
openjpeg-devel
openjpeg-debugsource
openjpeg-debuginfo
openjpeg
libopenjpeg1-debuginfo
libopenjpeg1
openjpeg-devel-32bit
libopenjp2-7
libopenjp2-7-debuginfo
openjpeg2-debuginfo
openjpeg2-debugsource
openjpeg2-devel
libopenjp2-7-32bit
libopenjp2-7-32bit-debuginfo
openjpeg2
openjpeg2-help
mingw-openjpeg2
SUSE CaaS Platform
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Manager Proxy
SUSE Enterprise Storage
CentOS
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server
Fedora
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Power
HPE Helion Openstack
SUSE OpenStack Cloud Crowbar
SUSE OpenStack Cloud
Oracle Solaris
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Module for Desktop Applications
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Module for Basesystem
openSUSE Leap
Ubuntu
openEuler
Oracle Outside In Technology
Oracle Database Server
cflinuxfs3
Data Computing Appliance (DCA)
Isolation Segment
VMware Tanzu Application Service for VMs

How to mitigate CVE-2020-8112

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
libopenjp3d7 (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
libopenjp2-7 (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
libopenjpeg1-32bit-debuginfo - update to 1.5.2-150000.4.5.1
libopenjpeg1-32bit - update to 1.5.2-150000.4.5.1
openjpeg-devel - update to 1.5.2-150000.4.5.1
openjpeg-debugsource - update to 1.5.2-150000.4.5.1
openjpeg-debuginfo - update to 1.5.2-150000.4.5.1
openjpeg - update to 1.5.2-150000.4.5.1
libopenjpeg1-debuginfo - update to 1.5.2-150000.4.5.1
libopenjpeg1 - update to 1.5.2-150000.4.5.1
openjpeg-devel-32bit - update to 1.5.2-150000.4.5.1
libopenjp2-7 - addressed in versions 2.1.0-4.15.1, 2.3.0-150000.3.5.1
libopenjp2-7-debuginfo - addressed in versions 2.1.0-4.15.1, 2.3.0-150000.3.5.1
openjpeg2-debuginfo - addressed in versions 2.1.0-4.15.1, 2.3.0-150000.3.5.1
openjpeg2-debugsource - addressed in versions 2.1.0-4.15.1, 2.3.0-150000.3.5.1
openjpeg2-devel - update to 2.3.0-150000.3.5.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
openjpeg2 - update to 2.3.0-150000.3.5.1
openjpeg2 - update to 2.3.1-6
openjpeg2-devel - update to 2.3.1-6
openjpeg2-debugsource - update to 2.3.1-6
openjpeg2-debuginfo - update to 2.3.1-6
openjpeg2-help - update to 2.3.1-6
openjpeg2 - addressed in versions 2.3.1-6.fc30, 2.3.1-6.fc31, 2.3.1-10.el7, 2.3.1-11.el7
mingw-openjpeg2 - addressed in versions 2.3.1-7.fc30, 2.3.1-7.fc31
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