Heap-based buffer overflow in libjpeg-turbo - CVE-2018-20330

 

Heap-based buffer overflow in libjpeg-turbo - CVE-2018-20330

Published: January 13, 2020


Vulnerability identifier: #VU24207
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-20330
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 tjLoadImage() function in libjpeg-turbo 2.0.1. A remote attacker can trigger a 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

libjpeg-turbo
libjpeg-turbo (Ubuntu package)
libjpeg-turbo (Alpine package)
mingw-libjpeg-turbo
libjpeg-turbo
Fedora

How to mitigate CVE-2018-20330

Install update from vendor's website.

libjpeg-turbo - update to 2.0.2
libjpeg-turbo (Ubuntu package) - addressed in versions 1.4.2-0ubuntu3.3, 1.5.2-0ubuntu5.18.04.3, 2.0.1-0ubuntu2.2
libjpeg-turbo (Alpine package) - update to 2.0.4-r0
mingw-libjpeg-turbo - update to 2.0.0-2.fc29
libjpeg-turbo - update to 2.0.0-3.fc29

External References

Related Security Bulletins