GhostScript Arbitrary Command Execution Vulnerability

BID:7757

Info

GhostScript Arbitrary Command Execution Vulnerability

Bugtraq ID: 7757
Class: Failure to Handle Exceptional Conditions
CVE: CVE-2003-0354
Remote: Yes
Local: No
Published: May 17 2003 12:00AM
Updated: Jul 11 2009 10:06PM
Credit: This vulnerability was reported by the vendor.
Vulnerable: SGI ProPack 2.3
SGI ProPack 2.2.1
Aladdin Enterprises Ghostscript 7.0 6
Aladdin Enterprises Ghostscript 7.0 5
+ Gentoo Linux 1.4 _rc3
+ Gentoo Linux 1.4 _rc3
+ Gentoo Linux 1.4 _rc2
+ Gentoo Linux 1.4 _rc2
+ MandrakeSoft Corporate Server 2.1
+ MandrakeSoft Corporate Server 2.1
+ Mandriva Linux Mandrake 9.1 ppc
+ Mandriva Linux Mandrake 9.1 ppc
+ Mandriva Linux Mandrake 9.1
+ Mandriva Linux Mandrake 9.1
+ Mandriva Linux Mandrake 9.0
+ Mandriva Linux Mandrake 9.0
+ Redhat Linux 9.0 i386
+ Redhat Linux 8.0
+ Redhat Linux 8.0
Aladdin Enterprises Ghostscript 7.0 4
+ OpenPKG OpenPKG 1.1
Aladdin Enterprises Ghostscript 6.53
+ Mandriva Linux Mandrake 8.2 ppc
+ Mandriva Linux Mandrake 8.2
+ Mandriva Linux Mandrake 8.2
Aladdin Enterprises Ghostscript 6.52
+ HP Secure OS software for Linux 1.0
+ HP Secure OS software for Linux 1.0
+ Redhat Linux 7.3 i386
+ Redhat Linux 7.2 ia64
+ Redhat Linux 7.2 ia64
+ Redhat Linux 7.2 i386
+ Redhat Linux 7.2 i386
+ Redhat Linux 7.1 ia64
+ Redhat Linux 7.1 ia64
+ Redhat Linux 7.1 i386
+ Redhat Linux 7.1 i386
+ Redhat Linux 7.1 alpha
+ Redhat Linux 7.1 alpha
+ Redhat Linux 7.0 sparc
+ Redhat Linux 7.0 sparc
+ Redhat Linux 7.0 i386
+ Redhat Linux 7.0 i386
+ Redhat Linux 7.0 alpha
+ Redhat Linux 7.0 alpha
+ Redhat Linux 6.2 sparc
+ Redhat Linux 6.2 sparc
+ Redhat Linux 6.2 i386
+ Redhat Linux 6.2 i386
+ Redhat Linux 6.2 alpha
+ Redhat Linux 6.2 alpha
Aladdin Enterprises Ghostscript 6.51
+ Caldera OpenLinux Server 3.1.1
+ Caldera OpenLinux Server 3.1.1
+ Caldera OpenLinux Server 3.1
+ Caldera OpenLinux Server 3.1
+ Caldera OpenLinux Workstation 3.1.1
+ Caldera OpenLinux Workstation 3.1.1
+ Caldera OpenLinux Workstation 3.1
+ Caldera OpenLinux Workstation 3.1
+ Sun Linux 5.0.5
Aladdin Enterprises Ghostscript 5.50.8
Aladdin Enterprises Ghostscript 5.50
+ HP Secure OS software for Linux 1.0
+ Redhat Linux 7.1 ia64
+ Redhat Linux 7.1 ia64
+ Redhat Linux 7.1 i386
+ Redhat Linux 7.1 i386
+ Redhat Linux 7.1 alpha
+ Redhat Linux 7.1 alpha
+ Redhat Linux 7.0 J i386
+ Redhat Linux 7.0 J i386
+ Redhat Linux 7.0 sparc
+ Redhat Linux 7.0 sparc
+ Redhat Linux 7.0 i386
+ Redhat Linux 7.0 i386
+ Redhat Linux 7.0 alpha
+ Redhat Linux 7.0 alpha
+ Redhat Linux 6.2 sparc
+ Redhat Linux 6.2 sparc
+ Redhat Linux 6.2 i386
+ Redhat Linux 6.2 i386
+ Redhat Linux 6.2 alpha
+ Redhat Linux 6.2 alpha
Aladdin Enterprises Ghostscript 5.10.16
Aladdin Enterprises Ghostscript 5.10.15
+ Caldera OpenLinux Desktop 2.3
+ Caldera OpenLinux Desktop 2.3
+ Caldera OpenLinux eBuilder 3.0
+ SCO eDesktop 2.4
+ SCO eDesktop 2.4
+ SCO eServer 2.3
+ SCO eServer 2.3
Aladdin Enterprises Ghostscript 5.10.10
+ Debian Linux 2.2 sparc
+ Debian Linux 2.2 sparc
+ Debian Linux 2.2 powerpc
+ Debian Linux 2.2 powerpc
+ Debian Linux 2.2 arm
+ Debian Linux 2.2 arm
+ Debian Linux 2.2 alpha
+ Debian Linux 2.2 alpha
+ Debian Linux 2.2 68k
+ Debian Linux 2.2 68k
+ Debian Linux 2.2
+ Debian Linux 2.2
+ Mandriva Linux Mandrake 7.2
+ Mandriva Linux Mandrake 7.2
+ Mandriva Linux Mandrake 7.1
+ Mandriva Linux Mandrake 7.1
+ Mandriva Linux Mandrake 7.0
+ Mandriva Linux Mandrake 7.0
+ Mandriva Linux Mandrake 6.1
+ Mandriva Linux Mandrake 6.0
+ Mandriva Linux Mandrake 6.0
Not Vulnerable: Aladdin Enterprises Ghostscript 7.0 7

Discussion

GhostScript Arbitrary Command Execution Vulnerability

A problem with Ghostscript could make it possible to execute arbitrary commands.

The vulnerability exists when GhostScript is used to process specially formatted PS files.

An attacker can exploit this vulnerability by creating a malicious PS file which, when processed with GhostScript, will result in the execution of arbitrary system commands.

Exploit / POC

GhostScript Arbitrary Command Execution Vulnerability

Currently we are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.

Solution / Fix

GhostScript Arbitrary Command Execution Vulnerability

Solution:
Sun has released updates for Sun Linux 5.0.5.

Red Hat has released an advisory (RHSA-2003:181-01). Information about obtaining and applying fixes are available in the referenced advisory.

Red Hat has also released an advisory (RHSA-2003:182-04) which addresses this issue on Red Hat Enterprise Linux AS, Red Hat Enterprise Linux ES, Red Hat Enterprise Linux WS and Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor. Users should see the attached advisory for details on obtaining and applying fixes.

Mandrake has released an advisory (MDKSA-2003:065) that addresses this issue. Please see the attached advisory for details on obtaining and applying fixes.

Gentoo Linux has released an advisory. Users who have installed app-text/ghostscript are advised to upgrade to ghostscript-7.05.6-r2 by issuing the following commands:

emerge sync
emerge ghostscript
emerge clean

SGI has released an advisory (20031002-01-U) pertaining to their ProPack Linux distribution. The advisory has been released in response to a number of RHSA advisories, and includes a patch (Patch 10027) containing updated RPM packages relating to 22 different BIDS.

Patch 10027 can be obtained via the following link:
http://support.sgi.com/

For information regarding how to obtain individual RPM packages included in Patch 10027, please see the attached advisory.

Fixes available:


Aladdin Enterprises Ghostscript 5.10.10

Aladdin Enterprises Ghostscript 5.10.15

Aladdin Enterprises Ghostscript 5.10.16

Aladdin Enterprises Ghostscript 5.50

Aladdin Enterprises Ghostscript 5.50.8

Aladdin Enterprises Ghostscript 6.51

Aladdin Enterprises Ghostscript 6.52

Aladdin Enterprises Ghostscript 6.53

Aladdin Enterprises Ghostscript 7.0 6

Aladdin Enterprises Ghostscript 7.0 5

Aladdin Enterprises Ghostscript 7.0 4

References

GhostScript Arbitrary Command Execution Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report