gzip -N command directory traversal
| gzip-n-directory-traversal (20199) |
Description:
gzip (GNU zip) could allow a remote attacker to traverse directories on system. If an attacker could persuade a user to open a malicious compressed file using the 'gunzip -N' command, the attacker could traverse directories and create or overwrite files on the system with the privileges of the victim.
Platforms Affected:
- Canonical, Ubuntu 4.10
- Canonical, Ubuntu 5.04
- Conectiva, Linux 10
- Conectiva, Linux 9.0
- Debian, Debian Linux 3.0
- Debian, Debian Linux 3.1
- Gentoo, Linux
- GNU, gzip 1.2.4
- GNU, gzip 1.2.4a
- GNU, gzip 1.3
- GNU, gzip 1.3.3
- MandrakeSoft, Mandrake Linux 10.0
- MandrakeSoft, Mandrake Linux 10.0 AMD64
- MandrakeSoft, Mandrake Linux 10.1
- MandrakeSoft, Mandrake Linux 10.1 X86_64
- MandrakeSoft, Mandrake Linux LE2005
- MandrakeSoft, Mandrake Linux LE2005 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 2.1
- MandrakeSoft, Mandrake Linux Corporate Server 2.1 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 3.0
- MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
- OpenPKG, OpenPKG 2.2
- OpenPKG, OpenPKG 2.3
- OpenPKG, OpenPKG CURRENT
- RedHat, Enterprise Linux 2.1 WS
- RedHat, Enterprise Linux 2.1 AS
- RedHat, Enterprise Linux 2.1 ES
- RedHat, Enterprise Linux 3 ES
- RedHat, Enterprise Linux 3 WS
- RedHat, Enterprise Linux 3 Desktop
- RedHat, Enterprise Linux 3 AS
- RedHat, Enterprise Linux 4 ES
- RedHat, Enterprise Linux 4 WS
- RedHat, Enterprise Linux 4 Desktop
- RedHat, Enterprise Linux 4 AS
- RedHat, Linux Advanced Workstation 2.1 Itanium
- Sun, Solaris 10 SPARC
- Sun, Solaris 10 x86
- Sun, Solaris 8 x86
- Sun, Solaris 8 SPARC
- Sun, Solaris 9 SPARC
- Sun, Solaris 9 x86
- Turbolinux, Turbolinux 10 Desktop
- Turbolinux, Turbolinux 10 F...
- Turbolinux, Turbolinux 10 Server
- Turbolinux, Turbolinux 7 Server
- Turbolinux, Turbolinux 7 Workstation
- Turbolinux, Turbolinux 8 Server
- Turbolinux, Turbolinux 8 Workstation
- Turbolinux, Turbolinux Home
- Turbolinux, Turbolinux Appliance Server 1.0 Hosting Ed
- Turbolinux, Turbolinux Appliance Server 1.0 Workgroup Ed
Remedy:
Apply the patch for this vulnerability, available from the Debian Bug report 305255. See References.
For Debian GNU/Linux 3.1 (Sarge):
Upgrade to the latest version of gzip (1.3.5-10 or later), as listed in DSA-752-1. See References.
For Conectiva Linux:
Upgrade to the latest version of gzip, as listed below. Refer to Conectiva Linux Announcement CLSA-2005:974 for more information. See References.
Conectiva Linux: 10.0: 1.3.5 or later
Conectiva Linux: 9.0: 1.3.3 or later
For Red Hat Linux:
Refer to RHSA-2005:357-19 for patch, upgrade, or suggested workaround information. See References.
For Gentoo Linux:
Refer to Gentoo Linux Security Announcement GLSA 2005-05-05 for patch, upgrade, or suggested workaround information. See References.
For OpenPKG:
Refer to OpenPKG Security Advisory OpenPKG-SA-2005.009 for patch, upgrade, or suggested workaround information. See References.
For Ubuntu Linux:
Refer to USN-116-1 for patch, upgrade, or suggested workaround information. See References.
For Apple Mac OS X:
Apply Apple Security Update 2006-004, available from the Apple Web site. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
Consequences:
File Manipulation
References:
- Apple Security Update 2006-004, About Security Update 2006-004 at http://docs.info.apple.com/article.html?artnum=304063.
- BugTraq Mailing List, Wed Apr 20 2005 - 14:24:42 CDT , gzip directory traversal vulnerability at http://archives.neohapsis.com/archives/bugtraq/2005-04/0305.html.
- Conectiva Linux Security Announcement CLSA-2005:974, Security fixes for gzip at http://distro.conectiva.com/atualizacoes/index.php?id=a&anuncio=000974.
- Debian Bug report 305255, gzip: dir traversal bug when using "gunzip -N" at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=305255.
- FreeBSD Security Advisory FreeBSD-SA-05:11.gzip, gzip directory traversal and permission race vulnerabilities at ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-05:11.gzip.asc.
- gzip Home page, The gzip home page at http://www.gzip.org/.
- Sun Alert ID: 101816, Security Vulnerabilities in the gzip(1) Command at http://sunsolve.sun.com/search/document.do?assetkey=1-26-101816-1.
- BID-13290: GNU GZip Filename Directory Traversal Vulnerability
- BID-19289: Apple Mac OS X Multiple Security Vulnerabilities
- CVE-2005-1228: Directory traversal vulnerability in gunzip -N in gzip 1.2.4 through 1.3.5 allows remote attackers to write to arbitrary directories via a .. (dot dot) in the original filename within a compressed file.
- DSA-752: gzip -- several vulnerabilities
- GLSA-200505-05: gzip: Multiple vulnerabilities
- MDKSA-2005:092: Updated gzip packages fix several vulnerabilities
- OpenPKG-SA-2005.009: gzip
- OpenPKG-SA-2005.010: OpenPKG
- OSVDB ID: 15721: gzip -N Option Traversal Arbitrary File Write
- RHSA-2005-357: gzip security update
- SA15047: gzip Directory Traversal Vulnerability
- SA21253: Mac OS X Security Update Fixes Multiple Vulnerabilities
Reported:
Apr 20, 2005
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
