Ghostscript 'errprintf()' Function PDF Handling Remote Buffer Overflow Vulnerability

BID:37410

Info

Ghostscript 'errprintf()' Function PDF Handling Remote Buffer Overflow Vulnerability

Bugtraq ID: 37410
Class: Boundary Condition Error
CVE: CVE-2009-4270
Remote: Yes
Local: No
Published: Dec 17 2009 12:00AM
Updated: Mar 19 2015 08:20AM
Credit: David Srbecky
Vulnerable: Ubuntu Ubuntu Linux 9.10 sparc
Ubuntu Ubuntu Linux 9.10 powerpc
Ubuntu Ubuntu Linux 9.10 lpia
Ubuntu Ubuntu Linux 9.10 i386
Ubuntu Ubuntu Linux 9.10 amd64
Ubuntu Ubuntu Linux 9.04 sparc
Ubuntu Ubuntu Linux 9.04 powerpc
Ubuntu Ubuntu Linux 9.04 lpia
Ubuntu Ubuntu Linux 9.04 i386
Ubuntu Ubuntu Linux 9.04 amd64
Ubuntu Ubuntu Linux 8.04 LTS sparc
Ubuntu Ubuntu Linux 8.04 LTS powerpc
Ubuntu Ubuntu Linux 8.04 LTS lpia
Ubuntu Ubuntu Linux 8.04 LTS i386
Ubuntu Ubuntu Linux 8.04 LTS amd64
Ubuntu Ubuntu Linux 10.04 sparc
Ubuntu Ubuntu Linux 10.04 powerpc
Ubuntu Ubuntu Linux 10.04 i386
Ubuntu Ubuntu Linux 10.04 amd64
SuSE SUSE Linux Enterprise Server 11 SP1
+ Linux kernel 2.6.5
SuSE SUSE Linux Enterprise Server 11
+ Linux kernel 2.6.5
SuSE SUSE Linux Enterprise Desktop 11 SP1
+ Linux kernel 2.6.5
SuSE SUSE Linux Enterprise Desktop 11
SuSE SUSE Linux Enterprise 11 SP1
SuSE SUSE Linux Enterprise 11
SuSE openSUSE 11.3
SuSE Linux 11
S.u.S.E. openSUSE 11.2
S.u.S.E. openSUSE 11.1
S.u.S.E. openSUSE 11.0
Mandriva Linux Mandrake 2010.0 x86_64
Mandriva Linux Mandrake 2010.0
Mandriva Linux Mandrake 2009.1 x86_64
Mandriva Linux Mandrake 2009.1
Mandriva Linux Mandrake 2009.0 x86_64
Mandriva Linux Mandrake 2009.0
Mandriva Linux Mandrake 2008.0 x86_64
Mandriva Linux Mandrake 2008.0
MandrakeSoft Enterprise Server 5 x86_64
MandrakeSoft Enterprise Server 5
MandrakeSoft Corporate Server 4.0 x86_64
MandrakeSoft Corporate Server 4.0
Ghostscript Ghostscript 8.70
Ghostscript Ghostscript 8.64
Gentoo Linux
Debian Linux 5.0 sparc
Debian Linux 5.0 s/390
Debian Linux 5.0 powerpc
Debian Linux 5.0 mipsel
Debian Linux 5.0 mips
Debian Linux 5.0 m68k
Debian Linux 5.0 ia-64
Debian Linux 5.0 ia-32
Debian Linux 5.0 hppa
Debian Linux 5.0 armel
Debian Linux 5.0 arm
Debian Linux 5.0 amd64
Debian Linux 5.0 alpha
Debian Linux 5.0
Not Vulnerable:

Discussion

Ghostscript 'errprintf()' Function PDF Handling Remote Buffer Overflow Vulnerability

Ghostscript is prone to a remote buffer-overflow vulnerability because it fails to properly bounds-check user-supplied input before copying it into a finite-sized buffer.

Exploiting this issue allows remote attackers to overwrite a sensitive memory buffer with arbitrary data, potentially allowing them to execute malicious machine code in the context of the affected application. A successful exploit may facilitate the compromise of the affected computer.

Ghostscript 8.64 and 8.70 are affected; other versions may be vulnerable as well.

Exploit / POC

Ghostscript 'errprintf()' Function PDF Handling Remote Buffer Overflow Vulnerability

A proof-of-concept PDF file is available at the following location:

https://bugzilla.redhat.com/attachment.cgi?id=373326

Note that Symantec has not tested or verified this file.

Solution / Fix

Ghostscript 'errprintf()' Function PDF Handling Remote Buffer Overflow Vulnerability

Solution:
A fix is available in the SVN repository. Please see the references for more information.


Ubuntu Ubuntu Linux 9.10 sparc

Debian Linux 5.0 ia-64

Mandriva Linux Mandrake 2009.1 x86_64

Ubuntu Ubuntu Linux 8.04 LTS powerpc

Ubuntu Ubuntu Linux 8.04 LTS sparc

MandrakeSoft Enterprise Server 5 x86_64

Ubuntu Ubuntu Linux 9.10 powerpc

Debian Linux 5.0 alpha

Debian Linux 5.0 ia-32

Mandriva Linux Mandrake 2008.0 x86_64

Ubuntu Ubuntu Linux 8.04 LTS amd64

MandrakeSoft Enterprise Server 5

Debian Linux 5.0 s/390

Mandriva Linux Mandrake 2008.0

Ubuntu Ubuntu Linux 9.10 lpia

Debian Linux 5.0 mipsel

Ubuntu Ubuntu Linux 9.04 sparc

Mandriva Linux Mandrake 2010.0

Ubuntu Ubuntu Linux 9.04 powerpc

Ubuntu Ubuntu Linux 8.04 LTS lpia

Mandriva Linux Mandrake 2010.0 x86_64

Ubuntu Ubuntu Linux 10.04 powerpc

Debian Linux 5.0 hppa

Ubuntu Ubuntu Linux 9.04 i386

Debian Linux 5.0 m68k

Ubuntu Ubuntu Linux 9.04 lpia

Debian Linux 5.0 arm

Mandriva Linux Mandrake 2009.0

Ubuntu Ubuntu Linux 9.10 i386

Ubuntu Ubuntu Linux 10.04 amd64

Debian Linux 5.0 armel

Debian Linux 5.0

MandrakeSoft Corporate Server 4.0

Ubuntu Ubuntu Linux 9.10 amd64

Ubuntu Ubuntu Linux 8.04 LTS i386

Debian Linux 5.0 amd64

Mandriva Linux Mandrake 2009.0 x86_64

Debian Linux 5.0 mips

Ubuntu Ubuntu Linux 9.04 amd64

Debian Linux 5.0 powerpc

Mandriva Linux Mandrake 2009.1

Ubuntu Ubuntu Linux 10.04 sparc

Debian Linux 5.0 sparc

Ubuntu Ubuntu Linux 10.04 i386

MandrakeSoft Corporate Server 4.0 x86_64

References

Ghostscript 'errprintf()' Function PDF Handling Remote Buffer Overflow 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