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
openjpeg2 (Debian package)
openjpeg (Alpine package)
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
libopenjp2-7 (Ubuntu package)
libopenjpip7 (Ubuntu package)
libopenjp3d7 (Ubuntu package)
libopenjpeg1-32bit
openjpeg-devel
openjpeg-debugsource
openjpeg-debuginfo
openjpeg
libopenjpeg1-32bit-debuginfo
libopenjpeg1-debuginfo
openjpeg-devel-32bit
libopenjpeg1
libopenjp2-7
libopenjp2-7-debuginfo
openjpeg2-debuginfo
openjpeg2-debugsource
libopenjp2-7-32bit-debuginfo
libopenjp2-7-32bit
openjpeg2-devel
openjpeg2
openjpeg2-help
mingw-openjpeg2
ghostscript (Ubuntu package)
libgs9 (Ubuntu package)
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Enterprise Storage
Fedora
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
SUSE OpenStack Cloud Crowbar
SUSE OpenStack Cloud
HPE Helion Openstack
Red Hat Enterprise Linux for Power
Red Hat Enterprise Linux for x86_64
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 Server for SAP Applications
SUSE Linux Enterprise Module for Desktop Applications
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Desktop
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
openjpeg2 (Debian package) - update to 2.3.0-2+deb10u2
openjpeg (Alpine package) - addressed in versions 2.3.0-r4, 2.3.0-r5
libopenjp2-7 (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
libopenjp3d7 (Ubuntu package) - addressed in versions Ubuntu Pro, 2.3.0-2+deb10u2build0.18.04.1
cflinuxfs3 - update to 0.357.0
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-32bit-debuginfo - update to 1.5.2-150000.4.5.1
libopenjpeg1-debuginfo - update to 1.5.2-150000.4.5.1
openjpeg-devel-32bit - update to 1.5.2-150000.4.5.1
libopenjpeg1 - 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
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 - update to 2.3.0-150000.3.5.1
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
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
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