Missing input sanitizing in pstotext package

pstotext Updated 02 Oct 2025

Summary

31/08/2005
N/A
Yes i
Unrated
Not published

DSA-792-1: pstotext - missing input sanitising. Affects pstotext versions < 1.8g-5woody1. Fixed in 1.8g-5woody1. 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

The pstotext package is a utility used to extract text from PostScript and PDF files. It is commonly used to convert these file formats into plain text for further processing or analysis. The package relies on the Ghostscript software to handle the conversion process. However, a vulnerability has been discovered in pstotext where it fails to execute Ghostscript with the -dSAFER argument. This argument is crucial as it prevents potential malicious operations from occurring during the conversion process.

Vulnerability Detail

The missing input sanitizing vulnerability in pstotext exposes the system to potential malicious operations during the conversion of PostScript and PDF files. Without the -dSAFER argument, an attacker could craft a malicious file that could execute arbitrary commands or perform unauthorized actions on the system. This could lead to remote code execution, information disclosure, or other security breaches depending on the attacker's intentions. It is important to note that this vulnerability only affects versions prior to the fixed versions mentioned in the vulnerability details.

How To Fix

Minimum fixed version

1.8g-5woody1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade pstotext

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

Conclusion

The missing input sanitizing vulnerability in the pstotext package exposes systems to potential malicious operations during the conversion of PostScript and PDF files. To mitigate this vulnerability, it is crucial to upgrade to the fixed versions mentioned in the vulnerability details. Upgrading ensures that Ghostscript is executed with the necessary argument to prevent potential security breaches. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for pstotext →

Share this vulnerability

FAQ

pstotext is a utility used to extract text from PostScript and PDF files. It converts these file formats into plain text for further processing or analysis.

The vulnerability exposes the system to potential malicious operations during the conversion process. An attacker could craft a malicious file that executes arbitrary commands or performs unauthorized actions on the system.

Versions prior to 1.8g-5woody1 for the old stable distribution (woody), versions prior to 1.9-1sarge1 for the stable distribution (sarge), and versions prior to 1.9-2 for the unstable distribution (sid) are affected.

To fix this vulnerability, you should upgrade the pstotext package to the fixed versions mentioned in the vulnerability details.

No workaround is available for this vulnerability. Upgrading to the fixed versions is the recommended solution.

Related vulnerabilities

Recent vulnerabilities recorded for pstotext.

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

1.8g-5woody1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade pstotext

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