__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN gzip Security Update [Red Hat RHSA-2005:357-19] June 13, 2005 17:00 GMT Number P-217 [REVISED 17 Jun 2005] [REVISED 23 Jun 2005] [REVISED 11 Jul 2005] [REVISED 13 Jul 2005] [REVISED 29 Sep 2005] [REVISED 28 Oct 2005] [REVISED 14 Feb 2006] ______________________________________________________________________________ PROBLEM: There are several security updates in gzip: 1) A bug was found in the way zgrep processes file names; 2) A bug was found in the way gunzip modifies permissions of files being decompressed; and 3) A directory traversal bug was found in the way gunzip processes the -N flag. PLATFORM: Red Hat Desktop (v. 3) & (v. 4) Red Hat Enterprise Linux AS, ES, WS (v. 2.1), (v. 3), & (v. 4) Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor SGI ProPack 3 Service Pack 5 for SGI Altix family of systems Debian GNU/Linux 3.0 (woody) Solaris 8, 9, 10 Operating Systems DAMAGE: 1) If a user can be tricked into running zgrep on a file with a carefully crafted file name, arbitrary commands could be executed as the user running zgrep; 2) A local attacker with write permissions in the directory in which a victim is decompressing a file could remove the file being written and replace it with a hard link to a different file owned by the victim; and 3) If a victim decompresses a file with the -N flag, gunzip fails to sanitize the path which could result in a file owned by the victim being overwritten. SOLUTION: Upgrade to the appropriate version. ______________________________________________________________________________ VULNERABILITY The risk is MEDIUM. An attacker can execute arbitrary commands as ASSESSMENT: the user running zgrep. ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/p-217.shtml ORIGINAL BULLETIN: Red Hat RHSA-2005:357-19 https://rhn.redhat.com/errata/RHSA-2005-357.html ADDITIONAL LINKS: Red Hat RHSA-2005:474-15 https://rhn.redhat.com/errata/RHSA-2005-474.html SGI Security Advisory Number 20050603-01-U ftp://patches.sgi.com/support/free/security/advisories/20050603-01-U.asc SGI Security Advisory Number 20050605-01-U ftp://patches.sgi.com/support/free/security/advisories/20050605-01-U.asc Debian Security Advisory DSA-752 http://www.debian.org/security/2005/dsa-752 Sun Alert ID: 101816 http://www.sunsolve.sun.com/search/document.do?assetkey= 1-26-101816-1&searchclause=%22category:security%22%20% 22availability,%20security%22%20category:security Red Hat RHSA-2005:474-21 https://rhn.redhat.com/errata/RHSA-2005-474.html CVE/CAN: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name= CAN-2005-0758 CAN-2005-0988 CAN-2005-1228 ______________________________________________________________________________ REVISION HISTORY: 06/17/2005 - revised to add a link to Red Hat RHSA-2005:474-15. 06/23/2005 - added link to SGI Advanced Linux Environment security update #40, Number: 20050603-01-U that provides patches for SGI ProPack 3 Service Pack 5 for SGI Altix family of systems. 07/11/2005 - added link to Debian Security Advisory DSA-752 that provides updated gzip packages. 07/13/2005 - added link to SGI Security Update #41, 20050605-01-U that provides patches for SGI ProPack 3 Service Pack 5 for SGI Altix family of systems. 09/29/2005 - added a link to Sun Alert ID: 101816 for Solairs 8, 9, 10 Operating Systems. 10/28/2005 - revised to reflect change to Sun Alert ID: 101816. The State was set to Resolved and the Contributing Factors, Relief/Workaround and Resolution sections were updated. 02/14/2006 - revised to add a link to Red Hat RHSA-2005:474-21 for Red Hat Desktop (v. 3) & (v. 4); Red Hat Enterprise Linux AS, ES, WS (v. 2.1), (v. 3), & (v. 4); and Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor. [***** Start Red Hat RHSA-2005:357-19 *****] Low: gzip security update Advisory: RHSA-2005:357-19 Type: Security Advisory Issued on: 2005-06-13 Last updated on: 2005-06-13 Affected Products: Red Hat Desktop (v. 3) Red Hat Desktop (v. 4) Red Hat Enterprise Linux AS (v. 2.1) Red Hat Enterprise Linux AS (v. 3) Red Hat Enterprise Linux AS (v. 4) Red Hat Enterprise Linux ES (v. 2.1) Red Hat Enterprise Linux ES (v. 3) Red Hat Enterprise Linux ES (v. 4) Red Hat Enterprise Linux WS (v. 2.1) Red Hat Enterprise Linux WS (v. 3) Red Hat Enterprise Linux WS (v. 4) Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor CVEs (cve.mitre.org): CAN-2005-0758 CAN-2005-0988 CAN-2005-1228 Details An updated gzip package is now available. This update has been rated as having low security impact by the Red Hat Security Response Team. The gzip package contains the GNU gzip data compression program. A bug was found in the way zgrep processes file names. If a user can be tricked into running zgrep on a file with a carefully crafted file name, arbitrary commands could be executed as the user running zgrep. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2005-0758 to this issue. A bug was found in the way gunzip modifies permissions of files being decompressed. A local attacker with write permissions in the directory in which a victim is decompressing a file could remove the file being written and replace it with a hard link to a different file owned by the victim. gunzip then gives the linked file the permissions of the uncompressed file. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2005-0988 to this issue. A directory traversal bug was found in the way gunzip processes the -N flag. If a victim decompresses a file with the -N flag, gunzip fails to sanitize the path which could result in a file owned by the victim being overwritten. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2005-1228 to this issue. Users of gzip should upgrade to this updated package, which contains backported patches to correct these issues. Solution Before applying this update, make sure all previously released errata relevant to your system have been applied. To update all RPMs for your particular architecture, run: rpm -Fvh [filenames] where [filenames] is a list of the RPMs you wish to upgrade. Only those RPMs which are currently installed will be updated. Those RPMs which are not installed but included in the list will not be updated. Note that you can also use wildcards (*.rpm) if your current directory *only* contains the desired RPMs. Please note that this update is also available via Red Hat Network. Many people find this an easier way to apply updates. To use Red Hat Network, launch the Red Hat Update Agent with the following command: up2date This will start an interactive process that will result in the appropriate RPMs being upgraded on your system. Updated packages Red Hat Desktop (v. 3) -------------------------------------------------------------------------------- SRPMS: gzip-1.3.3-12.rhel3.src.rpm c782da7e04807a88d25df7827a106d8c IA-32: gzip-1.3.3-12.rhel3.i386.rpm 1f9538d3128e0bcc76736323385e2220 x86_64: gzip-1.3.3-12.rhel3.x86_64.rpm 483982c10b5e7d5d0fe050c409fad0d1 Red Hat Desktop (v. 4) -------------------------------------------------------------------------------- SRPMS: gzip-1.3.3-15.rhel4.src.rpm 2ab2fa50a597a9a99484b40e1a15f510 IA-32: gzip-1.3.3-15.rhel4.i386.rpm bab580dbcc384693e2c60c9c4eeb743c x86_64: gzip-1.3.3-15.rhel4.x86_64.rpm 20aa8fe74a5db703c86f82329d2b3b7e Red Hat Enterprise Linux AS (v. 2.1) -------------------------------------------------------------------------------- SRPMS: gzip-1.3-18.rhel2.src.rpm 050bb94660b780e46c007801901d1f48 IA-32: gzip-1.3-18.rhel2.i386.rpm a9c2aeef541764f49a88ecac9c3d9df3 IA-64: gzip-1.3-18.rhel2.ia64.rpm 21a0525f3e99b47785846b68f7a12e14 Red Hat Enterprise Linux AS (v. 3) -------------------------------------------------------------------------------- SRPMS: gzip-1.3.3-12.rhel3.src.rpm c782da7e04807a88d25df7827a106d8c IA-32: gzip-1.3.3-12.rhel3.i386.rpm 1f9538d3128e0bcc76736323385e2220 IA-64: gzip-1.3.3-12.rhel3.ia64.rpm 6ac0ce3ed4161bce4e767737923c1886 PPC: gzip-1.3.3-12.rhel3.ppc.rpm 6c44dc3336b806231012820e460de026 s390: gzip-1.3.3-12.rhel3.s390.rpm 60174ff6847b82896ffd07669e483393 s390x: gzip-1.3.3-12.rhel3.s390x.rpm 3a38fb878896505c3a96cc4b0ddae4b8 x86_64: gzip-1.3.3-12.rhel3.x86_64.rpm 483982c10b5e7d5d0fe050c409fad0d1 Red Hat Enterprise Linux AS (v. 4) -------------------------------------------------------------------------------- SRPMS: gzip-1.3.3-15.rhel4.src.rpm 2ab2fa50a597a9a99484b40e1a15f510 IA-32: gzip-1.3.3-15.rhel4.i386.rpm bab580dbcc384693e2c60c9c4eeb743c IA-64: gzip-1.3.3-15.rhel4.ia64.rpm c1ad3d861270717a1c492f1e962aaab0 PPC: gzip-1.3.3-15.rhel4.ppc.rpm 46a890b156a25e7390961011aa1f99b3 s390: gzip-1.3.3-15.rhel4.s390.rpm 8adbf741f5f5b0b78f153acf305be1b8 s390x: gzip-1.3.3-15.rhel4.s390x.rpm 1656bd93bd9765203bf9996e54148d90 x86_64: gzip-1.3.3-15.rhel4.x86_64.rpm 20aa8fe74a5db703c86f82329d2b3b7e Red Hat Enterprise Linux ES (v. 2.1) -------------------------------------------------------------------------------- SRPMS: gzip-1.3-18.rhel2.src.rpm 050bb94660b780e46c007801901d1f48 IA-32: gzip-1.3-18.rhel2.i386.rpm a9c2aeef541764f49a88ecac9c3d9df3 Red Hat Enterprise Linux ES (v. 3) -------------------------------------------------------------------------------- SRPMS: gzip-1.3.3-12.rhel3.src.rpm c782da7e04807a88d25df7827a106d8c IA-32: gzip-1.3.3-12.rhel3.i386.rpm 1f9538d3128e0bcc76736323385e2220 IA-64: gzip-1.3.3-12.rhel3.ia64.rpm 6ac0ce3ed4161bce4e767737923c1886 x86_64: gzip-1.3.3-12.rhel3.x86_64.rpm 483982c10b5e7d5d0fe050c409fad0d1 Red Hat Enterprise Linux ES (v. 4) -------------------------------------------------------------------------------- SRPMS: gzip-1.3.3-15.rhel4.src.rpm 2ab2fa50a597a9a99484b40e1a15f510 IA-32: gzip-1.3.3-15.rhel4.i386.rpm bab580dbcc384693e2c60c9c4eeb743c IA-64: gzip-1.3.3-15.rhel4.ia64.rpm c1ad3d861270717a1c492f1e962aaab0 x86_64: gzip-1.3.3-15.rhel4.x86_64.rpm 20aa8fe74a5db703c86f82329d2b3b7e Red Hat Enterprise Linux WS (v. 2.1) -------------------------------------------------------------------------------- SRPMS: gzip-1.3-18.rhel2.src.rpm 050bb94660b780e46c007801901d1f48 IA-32: gzip-1.3-18.rhel2.i386.rpm a9c2aeef541764f49a88ecac9c3d9df3 Red Hat Enterprise Linux WS (v. 3) -------------------------------------------------------------------------------- SRPMS: gzip-1.3.3-12.rhel3.src.rpm c782da7e04807a88d25df7827a106d8c IA-32: gzip-1.3.3-12.rhel3.i386.rpm 1f9538d3128e0bcc76736323385e2220 IA-64: gzip-1.3.3-12.rhel3.ia64.rpm 6ac0ce3ed4161bce4e767737923c1886 x86_64: gzip-1.3.3-12.rhel3.x86_64.rpm 483982c10b5e7d5d0fe050c409fad0d1 Red Hat Enterprise Linux WS (v. 4) -------------------------------------------------------------------------------- SRPMS: gzip-1.3.3-15.rhel4.src.rpm 2ab2fa50a597a9a99484b40e1a15f510 IA-32: gzip-1.3.3-15.rhel4.i386.rpm bab580dbcc384693e2c60c9c4eeb743c IA-64: gzip-1.3.3-15.rhel4.ia64.rpm c1ad3d861270717a1c492f1e962aaab0 x86_64: gzip-1.3.3-15.rhel4.x86_64.rpm 20aa8fe74a5db703c86f82329d2b3b7e Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor -------------------------------------------------------------------------------- SRPMS: gzip-1.3-18.rhel2.src.rpm 050bb94660b780e46c007801901d1f48 IA-64: gzip-1.3-18.rhel2.ia64.rpm 21a0525f3e99b47785846b68f7a12e14 (The unlinked packages above are only available from the Red Hat Network) Bugs fixed (see bugzilla for more information) 121514 - CAN-2005-0758 zgrep has security issue in sed usage 155745 - CAN-2005-0988 Race condition in gzip 156266 - CAN-2005-1228 directory traversal bug References http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0758 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0988 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-1228 Keywords gzip, sed -------------------------------------------------------------------------------- These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from: https://www.redhat.com/security/team/key/#package The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/ [***** End Red Hat RHSA-2005:357-19 *****] _______________________________________________________________________________ CIAC wishes to acknowledge the contributions of Red Hat 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) P-207: Ethereal Security Update P-208: Kernel Security Update P-209: HP-UX Trusted System Remote Unauthorized Access P-210: bzip2 P-211: PostgreSQL Security Vulnerabilities P-212: HP OpenView Radia Notify Daemon Security Vulnerabilities P-213: GNU “mailutils” Contains Several Vulnerabilities P-214: rpc.mountd security issues in IRIX 6.5.25-6.5.27 P-215: Apple Security Update 2005-006 P-216: Potential Security Risk with Macromedia eLicensing Client Activation Code