Home    |    View Topics    |    Search    |    Contact Us    |   



Category:   Application (Generic)  >   CUPS Vendors:   Easy Software Products
CUPS Heap Overflow Lets Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1019646
SecurityTracker URL:
CVE Reference:   CVE-2008-0047   (Links to External Site)
Updated:  Mar 19 2008
Original Entry Date:  Mar 18 2008
Impact:   Execution of arbitrary code via network, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): 1.3.5, possibly other versions
Description:   A vulnerability was reported in CUPS (Common UNIX Printing System). A remote user can execute arbitrary code on the target system.

A remote user can send specially crafted data to TCP port 631 to trigger a heap overflow and execute arbitrary code on the target system. The code will run with the privileges of the target service.

The vendor was notified on February 26, 2008.

regenrecht reported this vulnerability via iDefense.

Impact:   A remote user can execute arbitrary code on the target system.
Solution:   The vendor has issued a fix (1.3.6).
Vendor URL: (Links to External Site)
Cause:   Boundary error
Underlying OS:  Linux (Any), UNIX (Any)

Message History:   This archive entry has one or more follow-up message(s) listed below.
Mar 19 2008 (Apple Issues Fix) CUPS Heap Overflow Lets Remote Users Execute Arbitrary Code
Apple has released a fix for Mac OS X.
Apr 1 2008 (Red Hat Issues Fix) CUPS Heap Overflow Lets Remote Users Execute Arbitrary Code
Red Hat has released a fix for Red Hat Enterprise Linux 5.

 Source Message Contents

Subject:  iDefense Security Advisory 03.18.08: Multiple Vendor CUPS CGI Heap

iDefense Security Advisory 03.18.08
Mar 18, 2008


The Common UNIX Printing System, more commonly referred to as CUPS,
provides a standard printer interface for various Unix based operating
systems. For more information, visit the vendor's website at the
following URL.


Remote exploitation of a heap based buffer overflow vulnerability in
CUPS, as included in various vendors' operating system distributions,
could allow an attacker to execute arbitrary code with the privileges
of the affected service.

CUPS listens on TCP port 631 for requests. This interface provides
access to several CGI applications used to administer CUPS and provide
information about print jobs. By passing a specially crafted request,
an attacker can trigger a heap based buffer overflow.


Exploitation of this vulnerability results in the execution of arbitrary
code with the privileges of the affected service. Depending on the
underlying operating system and distribution, CUPS may run as the lp,
daemon, or a different user.

In order to exploit this vulnerability remotely, the targeted host must
be sharing a printer(s) on the network. If a printer is not being
shared, where CUPS only listens on the local interface, this
vulnerability could only be used to elevate privileges locally.


iDefense has confirmed the existence of this vulnerability in CUPS
version 1.3.5. Previous versions may also be affected.


Disabling printer sharing will prevent this vulnerability from being
exploited remotely. However, local users will still be able to obtain
the privileges of the CUPS service user.


Apple Inc. has addressed this vulnerability within Security Update
2008-002. For more information, visit the following URL.


The Common Vulnerabilities and Exposures (CVE) project has assigned the
name CVE-2008-0047 to this issue. This is a candidate for inclusion in
the CVE list (, which standardizes names for
security problems.


02/26/2008  Initial vendor notification
02/26/2008  Initial vendor response
03/18/2008  Coordinated public disclosure


This vulnerability was reported to iDefense by regenrecht.

Get paid for vulnerability research

Free tools, research and upcoming events


Permission is granted for the redistribution of this alert
electronically. It may not be edited in any way without the express
written consent of iDefense. If you wish to reprint the whole or any
part of this alert in any other medium other than electronically,
please e-mail for permission.

Disclaimer: The information in the advisory is believed to be accurate
at the time of publishing based on currently available information. Use
of the information constitutes acceptance for use in an AS IS condition.
 There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct,
indirect, or consequential loss or damage arising from use of, or
reliance on, this information.
To unsubscribe, go here:


Go to the Top of This SecurityTracker Archive Page

Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2020, LLC