Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2020-16310
Ghostscript vulnerability analysis and mitigation

Overview

A division by zero vulnerability was discovered in the dot24_print_page() function in devices/gdevdm24.c of Artifex Software GhostScript version 9.50. This vulnerability was assigned CVE-2020-16310 and was publicly disclosed in August 2020 (NVD, Ubuntu).

Technical details

The vulnerability occurs when the bytes_per_space variable, calculated as dots_per_space * 3, becomes zero. This happens when xres (resolution) is less than 3, causing dots_per_space (calculated as xres / 10) to become zero. The issue affects the dot matrix printer device driver in GhostScript (Ghostscript Bug). The vulnerability has a CVSS v3.1 base score of 5.5 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (NVD).

Impact

When exploited, this vulnerability allows a remote attacker to cause a denial of service condition by processing a specially crafted PDF file (Ubuntu, Debian).

Exploitability

The vulnerability can be triggered by processing a specially crafted PDF file with GhostScript. A proof of concept exploit was submitted to the GhostScript bug tracker demonstrating the division by zero condition (Ghostscript Bug).

Mitigation and workarounds

The vulnerability was fixed in GhostScript version 9.51. Various Linux distributions have released security updates to address this issue: Ubuntu has released updates for versions 20.04 LTS, 18.04 LTS, and 16.04 LTS (Ubuntu Notice), Debian has released updates for version 10 (buster) (Debian Advisory), and Gentoo has released updates to version 9.52 (Gentoo Advisory).

Additional resources


SourceThis report was generated using AI

Related Ghostscript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-39919CRITICAL9.3
  • Ghostscript logoGhostscript
  • ghostscript
NoNoSep 15, 2026
CVE-2025-59800MEDIUM5.5
  • Ghostscript logoGhostscript
  • ghostscript-devel
NoYesSep 22, 2025
CVE-2025-59799MEDIUM5.5
  • Ghostscript logoGhostscript
  • ghostscript-tools-dvipdf
NoYesSep 22, 2025
CVE-2025-59801MEDIUM4.3
  • Ghostscript logoGhostscript
  • ghostscript-devel
NoYesSep 22, 2025
CVE-2026-6192LOW1.9
  • Ghostscript logoGhostscript
  • texmaker
NoYesApr 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management