CUPS ParseCommand HPGL buffer overflow
| cups-parsecommand-hpgl-bo (18604) |
Description:
The Common Unix Printing System (CUPS) is vulnerable to a buffer overflow, caused by improper bounds checking in the ParseCommand function in the hpgl-input.c file. By creating a specially-crafted HPGL file, a remote attacker could overflow a buffer and execute arbitrary code on the system with user privileges, once the file is processed.
Platforms Affected:
- Canonical, Ubuntu 4.10
- Easy Software Products, CUPS 1.1.22
- Gentoo, Linux
- MandrakeSoft, Mandrake Linux 10.0
- MandrakeSoft, Mandrake Linux 10.0 AMD64
- MandrakeSoft, Mandrake Linux 10.1 X86_64
- MandrakeSoft, Mandrake Linux 10.1
- MandrakeSoft, Mandrake Linux 9.2 AMD64
- MandrakeSoft, Mandrake Linux 9.2
- MandrakeSoft, Mandrake Linux Corporate Server 2.1 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 2.1
- MandrakeSoft, Mandrake Linux Corporate Server 3.0
- RedHat, Enterprise Linux 3 ES
- RedHat, Enterprise Linux 3 AS
- RedHat, Enterprise Linux 3 Desktop
- RedHat, Enterprise Linux 3 WS
- RedHat, Enterprise Linux 4 Desktop
- RedHat, Enterprise Linux 4 WS
- RedHat, Enterprise Linux 4 ES
- RedHat, Enterprise Linux 4 AS
- Turbolinux, Turbolinux 10 Desktop
- Turbolinux, Turbolinux 10 F...
- Turbolinux, Turbolinux 10 Server
- Turbolinux, Turbolinux 8 Server
- Turbolinux, Turbolinux 8 Workstation
- Turbolinux, Turbolinux Home
- Turbolinux, Turbolinux Appliance Server 1.0 Hosting Ed
- Turbolinux, Turbolinux Appliance Server 1.0 Workgroup Ed
Remedy:
Upgrade to the latest version of CUPS (1.1.23rc1 or later), as listed in the CUPS Software Trouble Report #1024. See References.
For Ubuntu Linux containing the cupsys, cupsys-client or libcupsimage2 package:
Upgrade to the latest version (1.1.20final+cvs20040330-4ubuntu16.3 or later), as listed in USN-50-1 December 23, 2004 for more information. See References.
For Mandrake Linux:
Upgrade to the latest cups package as listed below. Refer to MandrakeSoft Security Advisory MDKSA-2005:008 for more information. See References.
Mandrake Linux 9.2: 1.1.19-10.5.92mdk or later
Mandrake Linux 10.0: 1.1.20-5.5.100mdk or later
Mandrake Linux 10.1: 1.1.21-0.rc1.7.3.101mdk or later
Mandrake Linux Corporate Server 2.1: 1.1.18-2.7.C21mdk or later
Mandrake Linux Corporate Server 3.0: 1.1.20-5.5.C30mdk or later
For Red Hat Linux (CUPS):
Refer to RHSA-2005:053-19 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
Consequences:
Gain Access
References:
- CIAC Information Bulletin P-142, XPDF/GPDF - CUPS Vulnerabilities at http://www.ciac.org/ciac/bulletins/p-142.shtml.
- CUPS Software Trouble Report #1024, CUPS 1.1.22 hpgltops ParseCommand at http://www.cups.org/str.php?L1024.
- University of Illinois Chicago Web site, CUPS 1.1.22 hpgltops ParseCommand overflows buf at http://tigger.uic.edu/~jlongs2/holes/cups.txt.
- BID-11968: CUPS HPGL File Processor Buffer Overflow Vulnerability
- CVE-2004-1267: Buffer overflow in the ParseCommand function in hpgl-input.c in the hpgltops program for CUPS 1.1.22 allows remote attackers to execute arbitrary code via a crafted HPGL file.
- GLSA-200412-25: CUPS: Multiple vulnerabilities
- MDKSA-2005:008: Updated cups packages fix multiple vulnerabilities
- RHSA-2005-013: cups security update
- RHSA-2005-053: CUPS security update
- SUSE-SR:2005:003: SUSE Security Summary Report
Reported:
Dec 17, 2004
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
