Buffer overflow in Ghostscript - CVE-2020-16302

 

Buffer overflow in Ghostscript - CVE-2020-16302

Published: August 13, 2020 / Updated: August 26, 2020


Vulnerability identifier: #VU45844
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-16302
CWE-ID: CWE-120
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

A buffer overflow vulnerability exists in jetp3852_print_page() in devices/gdev3852.c of Artifex Software GhostScript. A remote attacker can trick the victim to open a specially crafted PDF file, trigger memory corruption and execute arbitrary code on the system.


Affected software

Ghostscript
Gentoo Linux
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Ubuntu
ghostscript (Debian package)
ghostscript (Alpine package)
ghostscript (Ubuntu package)
libgs9 (Ubuntu package)
ghostscript (Red Hat package)

How to mitigate CVE-2020-16302

Install update from vendor's website.

Ghostscript - update to 9.51
ghostscript (Debian package) - update to 9.27~dfsg-2+deb10u4
ghostscript (Alpine package) - update to 9.53.1-r0
ghostscript (Ubuntu package) - addressed in versions 9.26~dfsg+0-0ubuntu0.16.04.13, 9.26~dfsg+0-0ubuntu0.18.04.13, 9.50~dfsg-5ubuntu4.2
libgs9 (Ubuntu package) - addressed in versions 9.26~dfsg+0-0ubuntu0.16.04.13, 9.26~dfsg+0-0ubuntu0.18.04.13, 9.50~dfsg-5ubuntu4.2
ghostscript (Red Hat package) - update to 9.27-1.el8

External References

Related Security Bulletins