# CVE-2020-16289: ghostscript: The Ghostscript suite contains utilities for rendering PostScript and PDF documents

CVE-2020-16289 is fixed in 11 products on 1 platform, first by ghostscript 9.26~dfsg+0-0ubuntu0.18.04.13, released August 12, 2020. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2020-16289
- Priority: Routine
- CVSS: 5.5 (Moderate)
- EPSS: 0.0199
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Aug 12, 2020

## Description

The Ghostscript suite contains utilities for rendering PostScript and PDF documents. Ghostscript translates PostScript code to common bitmap formats so that the code can be displayed or printed.  The following packages have been upgraded to a later upstream version: ghostscript (9.27). (BZ#1874523)  Security Fix(es):  * ghostscript: use-after-free vulnerability in igc_reloc_struct_ptr() could result in DoS (CVE-2020-14373)  * ghostscript: buffer overflow in lprn_is_black() in contrib/lips4/gdevlprn.c could result in a DoS (CVE-2020-16287)  * ghostscript: buffer overflow in pj_common_print_page() in devices/gdevpjet.c could result in a DoS (CVE-2020-16288)  * ghostscript: buffer overflow in jetp3852_print_page() in devices/gdev3852.c could result in a DoS (CVE-2020-16290)  * ghostscript: buffer overflow in contrib/gdevdj9.c could result in a DoS (CVE-2020-16291)  * ghostscript: buffer overflow in mj_raster_cmd() in contrib/japanese/gdevmjc.c could result in a DoS (CVE-2020-16292)  * ghostscript: NULL pointer dereference in compose_group_nonknockout_nonblend_isolated_allmask_common() in base/gxblend.c could result in a DoS (CVE-2020-16293)  * ghostscript: buffer overflow in epsc_print_page() in devices/gdevepsc.c could result in a DoS (CVE-2020-16294)  * ghostscript: NULL pointer dereference in clj_media_size() in devices/gdevclj.c could result in a DoS (CVE-2020-16295)  * ghostscript: buffer overflow in GetNumWrongData() in contrib/lips4/gdevlips.c could result in a DoS (CVE-2020-16296)  * ghostscript: buffer overflow in FloydSteinbergDitheringC() in contrib/gdevbjca.c could result in a DoS (CVE-2020-16297)  * ghostscript: buffer overflow in mj_color_correct() in contrib/japanese/gdevmjc.c could result in a DoS (CVE-2020-16298)  * ghostscript: division by zero in bj10v_print_page() in contrib/japanese/gdev10v.c could result in a DoS (CVE-2020-16299)  * ghostscript: buffer overflow in tiff12_print_page() in devices/gdevtfnx.c could result in a DoS (CVE-2020-16300)  * ghostscript: buffer overflow in okiibm_print_page1() in devices/gdevokii.c could result in a DoS (CVE-2020-16301)  * ghostscript: buffer overflow in jetp3852_print_page() in devices/gdev3852.c could result in a privilege escalation (CVE-2020-16302)  * ghostscript: use-after-free in xps_finish_image_path() in devices/vector/gdevxps.c could result in a privilege escalation (CVE-2020-16303)  * ghostscript: buffer overflow in image_render_color_thresh() in base/gxicolor.c could result in a DoS (CVE-2020-16304)  * ghostscript: NULL pointer dereference in devices/gdevtsep.c could result in a DoS (CVE-2020-16306)  * ghostscript: NULL pointer dereference in devices/vector/gdevtxtw.c and psi/zbfont.c could result in a DoS (CVE-2020-16307)  * ghostscript: buffer overflow in p_print_image() in devices/gdevcdj.c could result in a DoS (CVE-2020-16308)  * ghostscript: buffer overflow in lxm5700m_print_page() in devices/gdevlxm.c could result in a DoS (CVE-2020-16309)  * ghostscript: division by zero in dot24_print_page() in devices/gdevdm24.c could result in a DoS (CVE-2020-16310)  * ghostscript: buffer overflow in GetNumSameData() in contrib/lips4/gdevlips.c could result in a DoS (CVE-2020-17538)  * ghostscript: buffer overflow in cif_print_page() in devices/gdevcif.c could result in a DoS (CVE-2020-16289)  * ghostscript: buffer overflow in pcx_write_rle() in contrib/japanese/gdev10v.c could result in a DoS (CVE-2020-16305)  For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.  Additional Changes:  For detailed information on changes in this release, see the Red Hat Enterprise Linux 8.4 Release Notes linked from the References section.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | ghostscript RHEL 8 | 0:9.27-1.el8 | [RHSA-2021:1852](https://patchblox.com/security/data/fix/linux/rhsa-2021-1852.md) | May 18, 2021 |
| Linux | ghostscript Ubuntu 18.04.6 LTS (bionic) | 9.26~dfsg+0-0ubuntu0.18.04.13 | [ghostscript 9.26~dfsg+0-0ubuntu0.18.04.13](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-ghostscript-9.26-dfsg-0-0ubuntu0.18.04.13.md) | Aug 12, 2020 |
| Linux | ghostscript Ubuntu 20.04 LTS (focal) | 9.50~dfsg-5ubuntu4.2 | [ghostscript 9.50~dfsg-5ubuntu4.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-ghostscript-9.50-dfsg-5ubuntu4.2.md) | Aug 12, 2020 |
| Linux | ghostscript ol 8 | 0:9.27-1.el8 | [ELSA-2021-1852](https://patchblox.com/security/data/fix/linux/elsa-2021-1852.md) | May 25, 2021 |
| Linux | ghostscript-doc RHEL 8 | 0:9.27-1.el8 | [RHSA-2021:1852](https://patchblox.com/security/data/fix/linux/rhsa-2021-1852.md) | May 18, 2021 |
| Linux | ghostscript-doc ol 8 | 0:9.27-1.el8 | [ELSA-2021-1852](https://patchblox.com/security/data/fix/linux/elsa-2021-1852.md) | May 25, 2021 |
| Linux | ghostscript-tools-dvipdf RHEL 8 | 0:9.27-1.el8 | [RHSA-2021:1852](https://patchblox.com/security/data/fix/linux/rhsa-2021-1852.md) | May 18, 2021 |
| Linux | ghostscript-tools-dvipdf ol 8 | 0:9.27-1.el8 | [ELSA-2021-1852](https://patchblox.com/security/data/fix/linux/elsa-2021-1852.md) | May 25, 2021 |
| Linux | ghostscript-tools-fonts RHEL 8 | 0:9.27-1.el8 | [RHSA-2021:1852](https://patchblox.com/security/data/fix/linux/rhsa-2021-1852.md) | May 18, 2021 |
| Linux | ghostscript-tools-fonts ol 8 | 0:9.27-1.el8 | [ELSA-2021-1852](https://patchblox.com/security/data/fix/linux/elsa-2021-1852.md) | May 25, 2021 |
| Linux | ghostscript-tools-printing RHEL 8 | 0:9.27-1.el8 | [RHSA-2021:1852](https://patchblox.com/security/data/fix/linux/rhsa-2021-1852.md) | May 18, 2021 |
| Linux | ghostscript-tools-printing ol 8 | 0:9.27-1.el8 | [ELSA-2021-1852](https://patchblox.com/security/data/fix/linux/elsa-2021-1852.md) | May 25, 2021 |
| Linux | ghostscript-x Ubuntu 18.04.6 LTS (bionic) | 9.26~dfsg+0-0ubuntu0.18.04.13 | [ghostscript-x 9.26~dfsg+0-0ubuntu0.18.04.13](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-ghostscript-x-9.26-dfsg-0-0ubuntu0.18.04.13.md) | Aug 12, 2020 |
| Linux | ghostscript-x Ubuntu 20.04 LTS (focal) | 9.50~dfsg-5ubuntu4.2 | [ghostscript-x 9.50~dfsg-5ubuntu4.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-ghostscript-x-9.50-dfsg-5ubuntu4.2.md) | Aug 12, 2020 |
| Linux | ghostscript-x11 RHEL 8 | 0:9.27-1.el8 | [RHSA-2021:1852](https://patchblox.com/security/data/fix/linux/rhsa-2021-1852.md) | May 18, 2021 |
| Linux | ghostscript-x11 ol 8 | 0:9.27-1.el8 | [ELSA-2021-1852](https://patchblox.com/security/data/fix/linux/elsa-2021-1852.md) | May 25, 2021 |
| Linux | libgs RHEL 8 | 0:9.27-1.el8 | [RHSA-2021:1852](https://patchblox.com/security/data/fix/linux/rhsa-2021-1852.md) | May 18, 2021 |
| Linux | libgs ol 8 | 0:9.27-1.el8 | [ELSA-2021-1852](https://patchblox.com/security/data/fix/linux/elsa-2021-1852.md) | May 25, 2021 |
| Linux | libgs-devel RHEL 8 | 0:9.27-1.el8 | [RHSA-2021:1852](https://patchblox.com/security/data/fix/linux/rhsa-2021-1852.md) | May 18, 2021 |
| Linux | libgs-devel ol 8 | 0:9.27-1.el8 | [ELSA-2021-1852](https://patchblox.com/security/data/fix/linux/elsa-2021-1852.md) | May 25, 2021 |
| Linux | libgs9 Ubuntu 18.04.6 LTS (bionic) | 9.26~dfsg+0-0ubuntu0.18.04.13 | [libgs9 9.26~dfsg+0-0ubuntu0.18.04.13](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libgs9-9.26-dfsg-0-0ubuntu0.18.04.13.md) | Aug 12, 2020 |
| Linux | libgs9 Ubuntu 20.04 LTS (focal) | 9.50~dfsg-5ubuntu4.2 | [libgs9 9.50~dfsg-5ubuntu4.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libgs9-9.50-dfsg-5ubuntu4.2.md) | Aug 12, 2020 |
| Linux | libgs9-common Ubuntu 18.04.6 LTS (bionic) | 9.26~dfsg+0-0ubuntu0.18.04.13 | [libgs9-common 9.26~dfsg+0-0ubuntu0.18.04.13](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libgs9-common-9.26-dfsg-0-0ubuntu0.18.04.13.md) | Aug 12, 2020 |
| Linux | libgs9-common Ubuntu 20.04 LTS (focal) | 9.50~dfsg-5ubuntu4.2 | [libgs9-common 9.50~dfsg-5ubuntu4.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libgs9-common-9.50-dfsg-5ubuntu4.2.md) | Aug 12, 2020 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
