CUPS SNMP Back End (backend/snmp.c) asn1_get_string Function Crafted SNMP Response Remote Overflow

high Nessus Plugin ID 29727

Synopsis

The remote printer service is affected by a buffer overflow vulnerability.

Description

According to its banner, the version of CUPS installed on the remote host contains a stack-based integer overflow in 'asn1_get_string' in 'backend/snmp.c'. Provided the SNMP backend is configured in CUPS (true by default in CUPS 1.2 but not 1.3), an attacker may be able to exploit this issue by using specially crafted SNMP responses with negative lengths to overflow a buffer and execute arbitrary code on the affected system.

Solution

Upgrade to CUPS version 1.3.5 or later.

See Also

http://www.cups.org/str.php?L2589

http://www.nessus.org/u?785685d5

Plugin Details

Severity: High

ID: 29727

File Name: cups_1_3_5.nasl

Version: 1.28

Type: remote

Family: Misc.

Published: 12/19/2007

Updated: 11/15/2018

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 9.3

Temporal Score: 7.3

Vector: AV:N/AC:M/Au:N/C:C/I:C/A:C

Temporal Vector: E:POC/RL:OF/RC:C

Vulnerability Information

CPE: cpe:/a:apple:cups

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 12/17/2007

Vulnerability Publication Date: 11/8/2007

Reference Information

CVE: CVE-2007-5849

BID: 26917

CWE: 189