GNU enscript read_special_escape() buffer overflow
| enscript-readspecialescape-bo (46026) |
Description:
GNU enscript is vulnerable to a stack-based buffer overflow, caused by improper bounds checking by the read_special_escape() function. By persuading a victim to convert a specially-crafted ASCII file to PostScript with the -e option enabled, a remote attacker could overflow a buffer and execute arbitrary code on the system with elevated privileges or cause the application to crash.
Platforms Affected:
- Apple, Mac OS X 10.4.11
- Apple, Mac OS X 10.5
- Apple, Mac OS X 10.5.1
- Apple, Mac OS X 10.5.2
- Apple, Mac OS X 10.5.3
- Apple, Mac OS X 10.5.4
- Apple, Mac OS X 10.5.5
- Apple, Mac OS X 10.5.6
- Apple, Mac OS X Server 10.4.11
- Apple, Mac OS X Server 10.5
- Apple, Mac OS X Server 10.5.1
- Apple, Mac OS X Server 10.5.2
- Apple, Mac OS X Server 10.5.3
- Apple, Mac OS X Server 10.5.4
- Apple, Mac OS X Server 10.5.5
- Apple, Mac OS X Server 10.5.6
- Canonical, Ubuntu 6.06 LTS
- Canonical, Ubuntu 7.10
- Canonical, Ubuntu 8.04 LTS
- Canonical, Ubuntu 8.10
- Debian, Debian Linux 4.0
- Gentoo, Linux
- GNU, enscript 1.6.1
- GNU, enscript 1.6.4 beta
- MandrakeSoft, Mandrake Linux 2008.0
- MandrakeSoft, Mandrake Linux 2008.0 X86_64
- MandrakeSoft, Mandrake Linux 2008.1 X86_64
- MandrakeSoft, Mandrake Linux 2008.1
- MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 3.0
- Mandriva, Linux 2009.0 X86_64
- Mandriva, Linux 2009.0
- RedHat, Enterprise Linux 2.1 AS
- RedHat, Enterprise Linux 2.1 ES
- RedHat, Enterprise Linux 2.1 WS
- RedHat, Enterprise Linux 3 WS
- RedHat, Enterprise Linux 3 ES
- RedHat, Enterprise Linux 3 AS
- RedHat, Enterprise Linux 3 Desktop
- RedHat, Enterprise Linux 4 AS
- RedHat, Enterprise Linux 4 Desktop
- RedHat, Enterprise Linux 4 ES
- RedHat, Enterprise Linux 4 WS
- RedHat, Enterprise Linux 5
- RedHat, Enterprise Linux 5 Client
- RedHat, Linux Advanced Workstation 2.1 Itanium
Remedy:
For Apple Mac OS:
Apply Apple Security Update 2009-002, available from the Apple Web site. See References.
Apply the appropriate update for your system. See References.
Consequences:
Gain Access
References:
- Apple Web site, About the security content of Security Update 2009-002 / Mac OS X v10.5.7 at http://support.apple.com/kb/HT3549.
- GNU Enscript Web page, GNU Enscript at http://www.codento.com/people/mtr/genscript/.
- Secunia Research 22/10/2008 , GNU Enscript "setfilename" Special Escape Buffer Overflow at http://secunia.com/secunia_research/2008-41/.
- ASA-2008-504: enscript security update (RHSA-2008-1021)
- BID-31858: GNU Enscript 'src/psgen.c' Stack Based Buffer Overflow Vulnerability
- CVE-2008-3863: Stack-based buffer overflow in the read_special_escape function in src/psgen.c in GNU Enscript 1.6.1 and 1.6.4 beta, when the -e (aka special escapes processing) option is enabled, allows user-assisted remote attackers to execute arbitrary code via a crafted ASCII file, related to the setfilename command.
- DSA-1670: enscript -- buffer overflows
- GLSA-200812-02: enscript: User-assisted execution of arbitrary code
- MDVSA-2008:243: enscript
- RHSA-2008-1016: Moderate: enscript security update
- RHSA-2008-1021: Moderate: enscript security update
- SA32137: GNU Enscript "setfilename" Special Escape Buffer Overflow
- SUSE-SR:2008:024: SUSE Security Summary Report
- USN-660-1: enscript vulnerability
- VUPEN/ADV-2008-2891: GNU Enscript setfilename and font Special Escape Buffer Overflows
Reported:
Oct 22, 2008
The information within this database may change without notice. 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. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
