Buffer overflow in Ghostscript - CVE-2019-3839

 

Buffer overflow in Ghostscript - CVE-2019-3839

Published: May 13, 2019


Vulnerability identifier: #VU18433
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-2019-3839
CWE-ID: CWE-119
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 when processing Postsccript files within the GPL PostScript/PDF interpreter. A remote attacker can create a specially crafted Postscript document, trick the victim into opening it, trigger memory corruption and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Ghostscript
Red Hat Enterprise Linux Server
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
Debian Linux
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Power
Opensuse
Ubuntu
Fedora
ghostscript (Alpine package)
ghostscript (Debian package)
libgs9 (Ubuntu package)
ghostscript (Ubuntu package)
ghostscript

How to mitigate CVE-2019-3839

Install updates from vendor's website.

Ghostscript - update to 9.27
ghostscript (Alpine package) - update to 9.26-r4
ghostscript (Debian package) - addressed in versions 9.26a~dfsg-0+deb8u3, 9.26a~dfsg-0+deb9u3
libgs9 (Ubuntu package) - addressed in versions 9.26~dfsg+0-0ubuntu0.16.04.9, 9.26~dfsg+0-0ubuntu0.18.04.9, 9.26~dfsg+0-0ubuntu0.18.10.9, 9.26~dfsg+0-0ubuntu7.1
ghostscript (Ubuntu package) - addressed in versions 9.26~dfsg+0-0ubuntu0.16.04.9, 9.26~dfsg+0-0ubuntu0.18.04.9, 9.26~dfsg+0-0ubuntu0.18.10.9, 9.26~dfsg+0-0ubuntu7.1
ghostscript - addressed in versions 9.27-1.fc29, 9.27-1.fc30, 9.27-1.fc31

External References

Related Security Bulletins