Skip to content
Fencer Intel
high 7.8

CVE-2018-10194 json

The set_text_distance function in devices/vector/gdevpdts.c in the pdfwrite component in Artifex Ghostscript through 9.22 does not prevent…

published 2018-04-18 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-2270

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

Summary

The set_text_distance function in devices/vector/gdevpdts.c in the pdfwrite component in Artifex Ghostscript through 9.22 does not prevent overflows in text-positioning calculation, which allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted PDF document.

Patch / fix

  • ghostscript Debian 14, Debian 13, Debian 12 9.22~dfsg-2.1

debian advisories DEBIAN-CVE-2018-10194

  • ghostscript Ubuntu 14.04 LTS 9.10~dfsg-0ubuntu10.12
  • ghostscript Ubuntu 16.04 LTS 9.18~dfsg~0-0ubuntu2.8
  • ghostscript Ubuntu 18.04 LTS 9.22~dfsg+1-0ubuntu1.1

ubuntu advisories UBUNTU-CVE-2018-10194

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 RHEL 7 9.07-29.el7_5.2
  • ghostscript-gtk RHEL 7 9.07-29.el7_5.2
  • ghostscript-cups RHEL 7 9.07-29.el7_5.2

red hat advisories RHSA-2018:2918

  • ghostscript SLE Module for Basesystem 15 9.23-3.3.1
  • ghostscript-library SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 8.62-32.47.10.1
  • ghostscript SLES for SAP 12 SP3, SLES 12 SP3, SLED 12 SP3 +1 more 9.15-23.10.2

suse advisories SUSE-SU-2018:1884-1SUSE-SU-2018:1369-1SUSE-SU-2018:1332-1

  • ghostscript openSUSE Tumbleweed 9.54.0-2.2

opensuse advisories openSUSE-SU-2024:10783-1

  • wireshark Alpine 3.24, Alpine 3.23, Alpine 3.22 +15 more 2.4.6-r0
  • wireshark Alpine 3.5 2.2.14-r0
  • ghostscript Alpine 3.24, Alpine 3.23, Alpine 3.22 +17 more 9.23-r0

alpine advisories ALPINE-CVE-2018-10194

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-2018-10194 updated cvss 7.0

ghostscript: Stack-based out-of-bounds write in pdf_set_text_matrix function in gdevpdts.c

  • Red Hat Enterprise Linux 5 ghostscript Red Hat Enterprise Linux 6 ghostscript, ghostscript-gtk
    affected: workaround, no fix planned “Please refer to the "Mitigation" section of CVE-2018-16509 : https://access.redhat.com/security/cve/cve-2018-16509”
  • Red Hat Enterprise Linux Client (v. 7) ghostscript 9.07-29.el7_5.2, ghostscript-cups 9.07-29.el7_5.2 Red Hat Enterprise Linux Client Optional (v. 7) ghostscript-gtk 9.07-29.el7_5.2 Red Hat Enterprise Linux ComputeNode (v. 7) ghostscript 9.07-29.el7_5.2, ghostscript-cups 9.07-29.el7_5.2 Red Hat Enterprise Linux ComputeNode Optional (v. 7) ghostscript-gtk 9.07-29.el7_5.2 Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) ghostscript 9.07-29.el7_5.2, ghostscript-cups 9.07-29.el7_5.2 Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) ghostscript-gtk 9.07-29.el7_5.2
    +4 more products
    Red Hat Enterprise Linux Server (v. 7) ghostscript 9.07-29.el7_5.2, ghostscript-cups 9.07-29.el7_5.2 Red Hat Enterprise Linux Server Optional (v. 7) ghostscript-gtk 9.07-29.el7_5.2 Red Hat Enterprise Linux Workstation (v. 7) ghostscript 9.07-29.el7_5.2, ghostscript-cups 9.07-29.el7_5.2 Red Hat Enterprise Linux Workstation Optional (v. 7) ghostscript-gtk 9.07-29.el7_5.2
    fixed: vendor fix “Please refer to the "Mitigation" section of CVE-2018-16509 : https://access.redhat.com/security/cve/cve-2018-16509” RHSA-2018:2918
  • Red Hat Enterprise Linux 8 libgs, ghostscript, ghostscript-x11, ghostscript-tools-fonts, ghostscript-tools-dvipdf, ghostscript-tools-printing
    not affected: vulnerable code not present

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

2.05% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

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

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer

References

Sources

Fencer Intel 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.