# CVE-2020-16291: A buffer overflow vulnerability in contrib/gdevdj9.c of Artifex Software GhostScript v9.18 to v9.50 allows a remote attacker to cause a den…

- 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): 2.28%, higher than 83% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-08-13T02:08:03.000Z
- Modified: 2026-06-17T02:58:00.267Z
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

A buffer overflow vulnerability in contrib/gdevdj9.c of Artifex Software GhostScript v9.18 to v9.50 allows a remote attacker to cause a denial of service via a crafted PDF file. This is fixed in v9.51.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- artifex ghostscript: from 9.18 before 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=701787> (exploit, issue-tracking, vendor-advisory)
- <http://git.ghostscript.com/?p=ghostpdl.git;h=4f73e8b4d578e69a17f452fa60d2130c5faaefd6> (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/contrib/gdevdj9.c?h=ghostpdl-9.18#n824> (product)
- <https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=4f73e8b4d578e69a17f452fa60d2130c5faaefd6> (patch)
- <http://git.ghostscript.com/?p=ghostpdl.git%3Bh=4f73e8b4d578e69a17f452fa60d2130c5faaefd6> (broken-link)

## Sources

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

---

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