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

critical Nessus Plugin ID 14529

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 privilege 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.

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.

See Also

https://security.gentoo.org/glsa/200406-18

Plugin Details

Severity: Critical

ID: 14529

File Name: gentoo_GLSA-200406-18.nasl

Version: 1.17

Type: local

Published: 8/30/2004

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Critical

Base Score: 10

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:gzip, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 6/24/2004

Reference Information

CVE: CVE-2004-0603

GLSA: 200406-18