CUPS SNMP asn1_get_string() buffer overflow
| cups-asn1getstring-bo (39101) |
Description:
CUPS (Common UNIX Printing System) is vulnerable to a stack-based buffer overflow, caused by an integer signedness error in the asn1_get_string function. By sending a specially-crafted SNMP reply containing negative length values in an asn1 encoded string, a remote attacker could overflow a buffer and execute arbitrary code on the system with elevated privileges or cause the service to crash.
*CVSS:
| Base Score: | 7.5 |
| Access Vector: | Network |
| Access Complexity: | Low |
| Authentication: | None |
| Confidentiality Impact: | Partial |
| Integrity Impact: | Partial |
| Availability Impact: | Partial |
| Temporal Score: | 5.9 |
| Exploitability: | Proof-of-Concept |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
Gain Access
Remedy:
Upgrade to the latest version of CUPS (1.3.5 or later), available from the CUPS Web site. See References.
For Apple Mac OS X:
Apply Apple Security Update 2007-009 v1.1, available from the Apple Web site. See References.
For other distributions:
Apply the appropriate update for your system. See References.
References:
- Apple Web site: About Security Update 2007-009.
- Apple Web site: About Security Update 2007-009 v1.1.
- CUPS STR #2589: SNMP backend integer underflow/stack overflow in asn1_get_string().
- CUPS Web site: Download - Common UNIX Printing System.
- BID-26910: Apple Mac OS X v10.5.1 2007-009 Multiple Security Vulnerabilities
- BID-26917: Common UNIX Printing System SNMP 'asn1_get_string()' Remote Buffer Overflow Vulnerability
- CVE-2007-5849: Integer underflow in the asn1_get_string function in the SNMP back end (backend/snmp.c) for CUPS 1.2 through 1.3.4 allows remote attackers to execute arbitrary code via a crafted SNMP response that triggers a stack-based buffer overflow.
- DSA-1437: cupsys -- several vulnerabilities
- GLSA-200712-14: CUPS: Multiple vulnerabilities
- MDVSA-2008:036: Updated CUPS packages fix SNMP vulnerability
- SA28129: CUPS SNMP Backend "asn1_get_string()" Signedness Vulnerability
- SA28136: Apple Mac OS X Security Update Fixes Multiple Vulnerabilities
- SUSE-SA:2008:002: SUSE Security Announcement
- SUSE-SR:2008:002: SUSE Security Summary Report
- USN-563-1: CUPS vulnerabilities
- VUPEN/ADV-2007-4238: Apple Mac OS X Code Execution and Information Disclosure Vulnerabilities
- VUPEN/ADV-2007-4242: CUPS SNMP Backend asn1_get_string() Integer Underflow Vulnerability
Platforms Affected:
- Apple CUPS 1.3.4 and prior
- Apple Mac OS X 10.5.1
- Apple Mac OS X Server 10.5.1
- Canonical Ubuntu 6.06 LTS
- Canonical Ubuntu 6.10
- Canonical Ubuntu 7.04
- Canonical Ubuntu 7.10
- Debian Debian Linux 4.0
- Gentoo Linux
- MandrakeSoft Mandrake Linux 2007 X86_64
- MandrakeSoft Mandrake Linux 2007
- MandrakeSoft Mandrake Linux 2007.1 X86_64
- MandrakeSoft Mandrake Linux 2007.1
- MandrakeSoft Mandrake Linux 2008.0 X86_64
- MandrakeSoft Mandrake Linux 2008.0
- MandrakeSoft Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 3.0
- MandrakeSoft Mandrake Linux Corporate Server 4.0 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 4.0
- Novell Linux Desktop 9
- Novell Linux POS 9
- Novell Open Enterprise Server
- Novell Open Enterprise Server
- Novell OpenSUSE 10.2
- Novell OpenSUSE 10.3
- Novell SUSE Linux Enterprise Desktop 10 SP1
- Novell SUSE Linux Enterprise Server 10
- Novell SUSE Linux Enterprise Server 10 SP1
- SuSE SuSE SLES 9
Reported:
Dec 17, 2007
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
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
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 IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
