# CVE-2020-16297: A buffer overflow vulnerability in FloydSteinbergDitheringC() in contrib/gdevbjca.c of Artifex Software GhostScript v9.18 to v9.50 allows a…

- 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:34.000Z
- Modified: 2026-06-17T02:58:01.043Z
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

A buffer overflow vulnerability in FloydSteinbergDitheringC() in contrib/gdevbjca.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=701800> (exploit, issue-tracking, vendor-advisory)
- <https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=bf72f1a3dd5392ee8291e3b1518a0c2c5dc6ba39> (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/commit/?id=bf72f1a3dd5392ee8291e3b1518a0c2c5dc6ba39> (patch)
- <https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/tree/contrib/gdevbjca.c?h=ghostpdl-9.18#n659> (product)
- <https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=bf72f1a3dd5392ee8291e3b1518a0c2c5dc6ba39> (broken-link)

## Sources

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

---

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