Skip to content
Fencer Vulns
medium 5.5

CVE-2017-5951 json

The mem_get_bits_rectangle function in base/gdevmem.c in Artifex Software, Inc.

published 2017-04-03 9 y ago modified 2026-06-17 4 mo ago also EUVD-2017-15021

cvss
5.5
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.9%
EPSS 1.9% chance of exploitation in 30 days, percentile 80%
public exploits
0
none known

Summary

The mem_get_bits_rectangle function in base/gdevmem.c in Artifex Software, Inc. Ghostscript 9.20 allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) via a crafted file.

Patch / fix

  • ghostscript Debian 14, Debian 13, Debian 12 9.20~dfsg-3.1

debian advisories DEBIAN-CVE-2017-5951

  • ghostscript Ubuntu 14.04 LTS 9.10~dfsg-0ubuntu10.7
  • ghostscript Ubuntu 16.04 LTS 9.18~dfsg~0-0ubuntu2.4

ubuntu advisories UBUNTU-CVE-2017-5951

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • ghostscript SLES for SAP 12 SP2, SLES for SAP 12 SP1, SLES for SAP 12 +8 more 9.15-22.1
  • ghostscript SLES for SAP 12 SP2, SLES for SAP 12 SP1, SLES for Raspberry Pi 12 SP2 +6 more 9.15-20.1

suse advisories SUSE-SU-2017:1404-1SUSE-SU-2017:1138-1

  • ghostscript openSUSE Tumbleweed 9.54.0-2.2

opensuse advisories openSUSE-SU-2024:10783-1

  • ghostscript Alpine 3.24, Alpine 3.23, Alpine 3.22 +15 more 9.21-r3
  • ghostscript Alpine 3.5, Alpine 3.4, Alpine 3.3 +1 more 9.21-r0

alpine advisories ALPINE-CVE-2017-5951

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2017-5951 updated cvss 3.3

ghostscript: NULL pointer dereference in the mem_get_bits_rectangle function

  • Red Hat Enterprise Linux 5 ghostscript Red Hat Enterprise Linux 6 ghostscript, ghostscript-gtk Red Hat Enterprise Linux 7 libgs, ghostscript, ghostscript-gtk, ghostscript-cups Red Hat OpenShift Enterprise 2 ghostscript
    affected: no fix planned “Will not fix”

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.94% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • bugs.ghostscript.com https://bugs.ghostscript.com/show_bug.cgi?id=697548 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.0 5.5 CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:N/A:P

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.