Division by zero in Ghostscript - CVE-2020-21710
Published: September 14, 2023
Vulnerability identifier: #VU80810
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-21710
CWE-ID: CWE-369
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to crash the application.
The vulnerability exists due to a divide by zero error within the eps_print_page() function in gdevepsn.c. A remote attacker can trick the victim to open a specially crafted PDF file and crash the application.
Affected software
Ghostscript
Amazon Linux AMI
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Red Hat CodeReady Linux Builder for x86_64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for IBM z Systems
Ubuntu
ghostscript (Ubuntu package)
libgs9 (Ubuntu package)
ghostscript
ghostscript (Red Hat package)
Amazon Linux AMI
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Red Hat CodeReady Linux Builder for x86_64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for IBM z Systems
Ubuntu
ghostscript (Ubuntu package)
libgs9 (Ubuntu package)
ghostscript
ghostscript (Red Hat package)
How to mitigate CVE-2020-21710
Install updates from vendor's website.
Ghostscript - update to 9.51
ghostscript (Ubuntu package) - addressed in versions Ubuntu Pro, 9.50~dfsg-5ubuntu4.10
libgs9 (Ubuntu package) - addressed in versions Ubuntu Pro, 9.50~dfsg-5ubuntu4.10
ghostscript - addressed in versions 8.70-24.32, 9.56.1-7
ghostscript (Red Hat package) - update to 9.27-12.el8
ghostscript (Ubuntu package) - addressed in versions Ubuntu Pro, 9.50~dfsg-5ubuntu4.10
libgs9 (Ubuntu package) - addressed in versions Ubuntu Pro, 9.50~dfsg-5ubuntu4.10
ghostscript - addressed in versions 8.70-24.32, 9.56.1-7
ghostscript (Red Hat package) - update to 9.27-12.el8