CVE-2022-2085: artifex ghostscript NULL Pointer Dereference
Vulnerability summary
CVE-2022-2085 is a medium (CVSS 5.5) NULL Pointer Dereference vulnerability in artifex ghostscript. EPSS estimates a 1.41% chance of exploitation in the next 30 days, higher than 72.2% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 16-06-2022PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
Description
A NULL pointer dereference vulnerability was found in Ghostscript, which occurs when it tries to render a large number of bits in memory. When allocating a buffer device, it relies on an init_device_procs defined for the device that uses it as a prototype that depends upon the number of bits per pixel. For bpp > 64, mem_x_device is used and does not have an init_device_procs defined. This flaw allows an attacker to parse a large number of bits (more than 64 bits per pixel), which triggers a NULL pointer dereference flaw, causing an application to crash.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.41%
Chance of exploitation in the next 30 days
Percentile
72%
Versus all other CVEs
30-day change
-0.01 pp
From 1.42% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (bugs.ghostscript.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Artifex1 product
- ghostscript9.55.0
Debian1 product
- ghostscript< 9.56.0~dfsg-1
Fedoraproject1 product
- fedoraEOL35 | 36
Ubuntu1 product
- ghostscript< 9.55.0~dfsg1-0ubuntu5.1
4 vendors · 4 products
References
10 links- lists.fedoraproject.org/archives/…Vendor Advisory