Out-of-bounds write in Ghostscript - CVE-2020-21890
Published: September 14, 2023
Vulnerability details
The vulnerability allows a remote attacker to compromise vulnerable system.
The vulnerability exists due to a boundary error within the clj_media_size() function in devices/gdevclj.c. A remote attacker can trick the victim to open a specially crafted PDF file, trigger an out-of-bounds write and execute arbitrary code on the target system.
Affected software
Amazon Linux AMI
Ubuntu
ghostscript (Ubuntu package)
libgs9 (Ubuntu package)
ghostscript
How to mitigate CVE-2020-21890
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 - update to 8.70-24.30