CVE-2020-21890
Ghostscript vulnerability analysis and mitigation

Overview

A Buffer Overflow vulnerability was discovered in the clj_media_size function within devices/gdevclj.c in Artifex Ghostscript 9.50. This vulnerability was assigned CVE-2020-21890 and was publicly disclosed on August 22, 2023. The vulnerability affects Ghostscript, a PostScript and PDF interpreter, specifically version 9.50 (NVD, Ubuntu Security).

Technical details

The vulnerability is classified as a heap-buffer-overflow that occurs in the clj_media_size function at line 278 in devices/gdevclj.c. It has been assigned a CVSS v3.1 base score of 7.8 (High), with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. The vulnerability is categorized as CWE-787 (Out-of-bounds Write) (NVD, Ghostscript Bug).

Impact

When exploited, this vulnerability allows remote attackers to cause a denial of service or potentially execute arbitrary code through the opening of a crafted PDF document. The high CVSS score indicates significant potential impacts on system confidentiality, integrity, and availability (NVD, Ubuntu Security).

Mitigation and workarounds

The vulnerability has been fixed in various distributions and versions. Ubuntu has released patches for multiple versions: Ubuntu 20.04 (version 9.50~dfsg-5ubuntu4.10), Ubuntu 18.04 ESM, and Ubuntu 16.04 ESM. Debian has also addressed this in their security updates. The fix was implemented through a commit in the Ghostscript repository (Ubuntu Security, Debian LTS).

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-2025-59800MEDIUM5.5
  • GhostscriptGhostscript
  • ghostscript-doc
NoYesSep 22, 2025
CVE-2025-59799MEDIUM5.5
  • GhostscriptGhostscript
  • cpe:2.3:a:artifex:ghostscript
NoYesSep 22, 2025
CVE-2025-59798MEDIUM5.5
  • GhostscriptGhostscript
  • cpe:2.3:a:artifex:ghostscript
NoYesSep 22, 2025
CVE-2025-7462MEDIUM5.3
  • GhostscriptGhostscript
  • ghostscript-x11-debuginfo
NoYesJul 12, 2025
CVE-2025-59801MEDIUM4.3
  • GhostscriptGhostscript
  • ghostscript
NoYesSep 22, 2025

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