GLSA-200406-18 : gzip: Insecure creation of temporary files

This script is Copyright (C) 2004-2014 Tenable Network Security, Inc.


Synopsis :

The remote Gentoo host is missing one or more security-related
patches.

Description :

The remote host is affected by the vulnerability described in GLSA-200406-18
(gzip: Insecure creation of temporary files)

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.

See also :

http://www.gentoo.org/security/en/glsa/glsa-200406-18.xml

Solution :

All gzip users should upgrade to the latest stable version:
# 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.

Risk factor :

Critical / CVSS Base Score : 10.0
(CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 14529 (gentoo_GLSA-200406-18.nasl)

Bugtraq ID:

CVE ID: CVE-2004-0603