GLSA Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Thu Jun 24, 2004 4:42 pm Post subject: [ GLSA 200406-18 ] gzip: Insecure creation of temporary file |
|
|
Gentoo Linux Security Advisory
Title: gzip: Insecure creation of temporary files (GLSA 200406-18)
Severity: normal
Exploitable: local
Date: June 24, 2004
Updated: May 22, 2006
Bug(s): #54890
ID: 200406-18
Synopsis
gzip contain a bug potentially allowing an attacker to execute arbitrary commands.
Background
gzip (GNU zip) is popular compression program. The included gzexe utility allows you to compress executables in place and have them automatically uncompress and execute when you run them.
Affected Packages
Package: app-arch/gzip
Vulnerable: <= 1.3.3-r3
Unaffected: >= 1.3.3-r4
Architectures: All supported architectures
Description
The script gzexe included with gzip contains a bug in the code that handles tempfile creation. If the creation of a temp file fails when using gzexe fails instead of bailing out it executes the command given as argument.
Impact
This could lead to priviege escalation by running commands under the rights of the user running the self extracting file.
Workaround
There is no known workaround at this time. All users are encouraged to upgrade to the latest available version.
Resolution
All gzip users should upgrade to the latest stable version: Code: | # emerge sync
# emerge -pv ">=app-arch/gzip-1.3.3-r4"
# emerge ">=app-arch/gzip-1.3.3-r4" | Additionally, once the upgrade is complete, all self extracting files created with earlier versions gzexe should be recreated, since the vulnerability is actually embedded in those executables.
References
CVE-2004-0603
Last edited by GLSA on Tue May 23, 2006 4:16 am; edited 2 times in total |
|