SB2020011450 - Remote code execution in OpenJPEG
Published: January 14, 2020 Updated: December 29, 2020
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 3 secuirty vulnerabilities.
1) Heap-based buffer overflow (CVE-ID: CVE-2020-6851)
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.
2) Heap-based buffer overflow (CVE-ID: CVE-2020-8112)
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.
3) Resource exhaustion (CVE-ID: CVE-2019-6988)
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to improper memory operations that are performed by the opj_calloc function, as defined in the openjp2/opj_malloc.c source code file when a call is made from the opj_tcd_init_tile function in the openjp2/tcd.c file. A remote attacker can trick the victim into executing an JPEG 2000 image file with a 64-bit opj_decompress program that submits malicious input, consume excessive amounts of memory resources and cause the affected application to hang.
Remediation
Install update from vendor's website.
References
- https://github.com/uclouvain/openjpeg/issues/1228
- https://github.com/uclouvain/openjpeg/blob/v2.4.0/CHANGELOG.md
- https://access.redhat.com/errata/RHSA-2020:0550
- https://github.com/uclouvain/openjpeg/issues/1231
- https://lists.debian.org/debian-lts-announce/2020/01/msg00035.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TFEVEKETJV7GOXD5RDWL35ESEDHC663E/
- https://github.com/uclouvain/openjpeg/issues/1178