Critical Denial of Service Vulnerability in Ghostscript Affects Multiple Alpine Versions

ghostscript Updated 02 Oct 2025

Summary

18/04/2018
N/A
Yes i
High
7.8

ALPINE-CVE-2018-10194: 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... Affects ghostscript versions < 9.23-r0. Fixed in 9.23-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Ghostscript is an interpreter for the PostScript language and for PDF. It is widely used for rendering and converting documents in various formats. The vulnerability in question affects multiple versions of Ghostscript packaged in Alpine Linux, making it crucial for users to be aware of the potential risks associated with using this software.

Vulnerability Detail

The vulnerability, identified as CVE-2018-10194, originates from the set_text_distance function in the pdfwrite component of Ghostscript. This function does not adequately prevent overflows during text-positioning calculations. As a result, remote attackers can exploit this flaw by crafting malicious PDF documents, leading to denial of service (application crash) or potentially other unspecified impacts. The CVSS score for this vulnerability is 7.8, indicating a high severity level.

How To Fix

Minimum fixed version

9.23-r0

This is the first release that contains the fix.

sudo apk add --upgrade ghostscript

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid opening untrusted PDF documents that may exploit this vulnerability until the package is updated to a secure version.

Conclusion

The vulnerability CVE-2018-10194 in Ghostscript poses a significant risk to users of Alpine Linux. It is essential to update to the patched version to mitigate the risk of denial of service attacks. Users are encouraged to monitor their applications for vulnerabilities using tools like Vulert, which can alert them in real-time without requiring code access.

See every vulnerability recorded for ghostscript →

Share this vulnerability

FAQ

CVE-2018-10194 is a vulnerability in Ghostscript that allows remote attackers to cause a denial of service through crafted PDF documents.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

All versions of Ghostscript prior to 9.23-r0 in Alpine Linux are affected by this vulnerability.

If an immediate update is not possible, avoid opening any untrusted PDF files that could exploit this vulnerability.

The CVSS score for this vulnerability is 7.8, indicating a high severity level that could lead to application crashes.

Related vulnerabilities

Recent vulnerabilities recorded for ghostscript.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

9.23-r0

This is the first release that contains the fix.

sudo apk add --upgrade ghostscript

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback