# CVE-2020-16304: A buffer overflow vulnerability in imagerendercolorthresh() in base/gxicolor.c of Artifex Software GhostScript v9.18 to v9.50 allows a remo…

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.93%, higher than 81% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-08-13T02:09:12.000Z
- Modified: 2026-06-17T02:58:02.070Z
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

A buffer overflow vulnerability in image_render_color_thresh() in base/gxicolor.c of Artifex Software GhostScript v9.18 to v9.50 allows a remote attacker to escalate privileges via a crafted eps file. This is fixed in v9.51.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- artifex ghostscript: from 9.18 up to 9.52
- debian debian_linux: 9.0; 10.0
- canonical ubuntu_linux: 16.04; 18.04; 20.04

## Every score

- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://bugs.ghostscript.com/show_bug.cgi?id=701816> (exploit, issue-tracking, vendor-advisory)
- <http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=027c546e0dd11e0526f1780a7f3c2c66acffe209> (broken-link)
- <https://lists.debian.org/debian-lts-announce/2020/08/msg00032.html> (mailing-list, third-party-advisory)
- <https://www.debian.org/security/2020/dsa-4748> (third-party-advisory, vendor-advisory)
- <https://security.gentoo.org/glsa/202008-20> (third-party-advisory, vendor-advisory)
- <https://usn.ubuntu.com/4469-1/> (third-party-advisory, vendor-advisory)
- <https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/tree/base/gxicolor.c?h=ghostscript-9.18#n825> (product)
- <http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=027c546e0dd11e0526f1780a7f3c2c66acffe209> (broken-link)

## Sources

- CVE List: [CVE-2020-16304](https://www.cve.org/CVERecord?id=CVE-2020-16304), CVE Terms of Use, modified 2025-03-04
- NVD: [CVE-2020-16304](https://nvd.nist.gov/vuln/detail/CVE-2020-16304), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-16304 · Whole record: https://cve.day/CVE-2020-16304.json · Rebuilt by cve.day 2026-11-25T22:57:54.143Z
