__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN Security Vulnerabilities in CUPS May Allow Remote Unprivileged User to Execute Arbitrary Code [Sun Alert ID: 57646] October 8, 2004 17:00 GMT Number P-004 ______________________________________________________________________________ PROBLEM: A vulnerability was found in the Common UNIX Printing System (CUPS), a cross-platform printing solution for all UNIX environments. PLATFORM: Sun Java Desktop System (JDS) 2003 without the updated RPMs (patch-9321) Sun Java Desktop System (JDS) Release 2 without the updated RPMs (patch-9321) DAMAGE: Due to improper command line and environment variable validation, a remote or local unprivileged user may be able to execute arbitrary commands with the privilegs of the CUPS daemon, typically run as unprivileged "lp" user. SOLUTION: Install the updated packages. ______________________________________________________________________________ VULNERABILITY The risk is LOW. Possible remote execute of arbitrary code by ASSESSMENT: an unprivileged user. The CUPS daemon typically runs as the unprivileged 'lp' user. There are no known exploits of this vulnerability as of original release date of this bulletin. ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/p-004.shtml ORIGINAL BULLETIN: http://www.sunsolve.sun.com/search/document.do?assetkey= 1-26-57646-1&searchclause= CVE/CAN: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name= CAN-2004-0801, CAN-2004-0558 ______________________________________________________________________________ [***** Start Sun Alert ID: 57646 *****] Sun(sm) Alert Notification * Sun Alert ID: 57646 * Synopsis: Security Vulnerabilities in Common Unix Printing System (CUPS) May Allow a Remote Unprivileged User to Execute Arbitrary Code * Category: Security * Product: Sun Java Desktop System (JDS) * BugIDs: 5102516 * Avoidance: Patch * State: Resolved * Date Released: * Date Closed: * Date Modified: 1. Impact Due to improper command line and environment variable validation, a remote or local unprivileged user may be able to execute arbitrary commands with the privileges of the CUPS daemon (cupsd(8)), which is typically the unprivileged "lp" user. Furthermore, a remote Denial of Service (DoS) condition within CUPS may allow remote unprivileged users to cause the CUPS server to become unresponsive. Note: The Common Unix Printing System (CUPS) is a cross-platform printing solution for all UNIX environments. It is based on the Internet Printing Protocol (IPP) and provides complete printing services to most PostScript and raster printers. These issues are described in the following documents: * SUSE-SA:2004:031 at http://www.suse.com/de/security/2004_31_cups.html * CAN-2004-0801 at http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0801 * CAN-2004-0558 at http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0558 2. Contributing Factors These issues can occur in the following releases: Linux * Sun Java Desktop System (JDS) 2003 without the updated RPMs (patch-9321) * Sun Java Desktop System (JDS) Release 2 without the updated RPMs (patch-9321) Note: JDS for Solaris is not impacted by these issues. These issues only occur with CUPS versions cups-libs-1.1.15-150 or earlier. To determine the release of JDS for Linux installed on a system, the following command can be run: % cat /etc/sun-release Sun Java Desktop System, Release 2 -build 10b (GA) Assembled 30 March 2004 To determine the version of CUPS, the following command can be run: % rpm -qf /usr/lib/libcups.so.2 cups-libs-1.1.15-1 3. Symptoms There are no reliable symptoms that would show the buffer overflow issue described has been exploited. The CUPS daemon cupsd(8) will become unresponsive when the Denial of Service (DoS) attack has been exploited. Solution Summary Top 4. Relief/Workaround There is no workaround. Please see the "Resolution" section below. 5. Resolution These issues are addressed in the following releases: Linux * Sun Java Desktop System (JDS) 2003 with the updated RPMs (patch-9321) * Sun Java Desktop System (JDS) Release 2 with the updated RPMs (patch-9321) To download and install the updated RPMs from the update servers select the following from the launch bar: Launch >> Applications >> System Tools >> Online Update For more information on obtaining updates see: * http://wwws.sun.com/software/javadesktopsystem/faq.html#5q5 * http://wwws.sun.com/software/javadesktopsystem/faq.html#5q7 This Sun Alert notification is being provided to you on an "AS IS" basis. This Sun Alert notification may contain information provided by third parties. The issues described in this Sun Alert notification may or may not impact your system(s). Sun makes no representations, warranties, or guarantees as to the information contained herein. ANY AND ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE HEREBY DISCLAIMED. BY ACCESSING THIS DOCUMENT YOU ACKNOWLEDGE THAT SUN SHALL IN NO EVENT BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES THAT ARISE OUT OF YOUR USE OR FAILURE TO USE THE INFORMATION CONTAINED HEREIN. This Sun Alert notification contains Sun proprietary and confidential information. It is being provided to you pursuant to the provisions of your agreement to purchase services from Sun, or, if you do not have such an agreement, the Sun.com Terms of Use. This Sun Alert notification may only be used for he purposes contemplated by these agreements. Copyright 2000-2004 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, CA 95054 U.S.A. All rights reserved. [***** End Sun Alert ID: 57646 *****] _______________________________________________________________________________ CIAC wishes to acknowledge the contributions of Sun Microsystems for the information contained in this bulletin. _______________________________________________________________________________ CIAC, the Computer Incident Advisory Capability, is the computer security incident response team for the U.S. Department of Energy (DOE) and the emergency backup response team for the National Institutes of Health (NIH). CIAC is located at the Lawrence Livermore National Laboratory in Livermore, California. CIAC is also a founding member of FIRST, the Forum of Incident Response and Security Teams, a global organization established to foster cooperation and coordination among computer security teams worldwide. CIAC services are available to DOE, DOE contractors, and the NIH. CIAC can be contacted at: Voice: +1 925-422-8193 (7x24) FAX: +1 925-423-8002 STU-III: +1 925-423-2604 E-mail: ciac@ciac.org Previous CIAC notices, anti-virus software, and other information are available from the CIAC Computer Security Archive. World Wide Web: http://www.ciac.org/ Anonymous FTP: ftp.ciac.org PLEASE NOTE: Many users outside of the DOE, ESnet, and NIH computing communities receive CIAC bulletins. If you are not part of these communities, please contact your agency's response team to report incidents. Your agency's team will coordinate with CIAC. The Forum of Incident Response and Security Teams (FIRST) is a world-wide organization. A list of FIRST member organizations and their constituencies can be obtained via WWW at http://www.first.org/. This document was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the University of California nor any of their employees, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights. Reference herein to any specific commercial products, process, or service by trade name, trademark, manufacturer, or otherwise, does not necessarily constitute or imply its endorsement, recommendation or favoring by the United States Government or the University of California. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or the University of California, and shall not be used for advertising or product endorsement purposes. LAST 10 CIAC BULLETINS ISSUED (Previous bulletins available from CIAC) O-217: "gdk-pixbuf" Package vulnerability O-218: HP Web Jetadmin Remote Access Vulnerability O-219: Sudo - "Sudoedit" Vulnerabilities O-220: "Any to PostScript" (a2ps) Filter Vulnerability O-221: Apache HTTP Server 2.0.52 Released O-222: libXpm Library Contains Multiple Interger and Buffer Overflow Vulnerabilities O-223: RealNetworks, Inc. Releases Update to Address Security Vulnerabilities P-001: Red Hat Updated XFree86 Packages fix Security Issues P-002: Apple Security Update P-003: Updated Cyrus-SASL Packages Fix Security Flaw