GLSA-200710-22 : TRAMP: Insecure temporary file creation

medium Nessus Plugin ID 27554

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-200710-22 (TRAMP: Insecure temporary file creation)

Stefan Monnier discovered that the tramp-make-tramp-temp-file() function creates temporary files in an insecure manner.
Impact :

A local attacker could create symbolic links in the directory where the temporary files are written, pointing to a valid file somewhere on the filesystem that is writable by the user running TRAMP. When TRAMP writes the temporary file, the target valid file would then be overwritten with the contents of the TRAMP temporary file.
Workaround :

There is no known workaround at this time.

Solution

All TRAMP users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=app-emacs/tramp-2.1.10-r2'

See Also

https://security.gentoo.org/glsa/200710-22

Plugin Details

Severity: Medium

ID: 27554

File Name: gentoo_GLSA-200710-22.nasl

Version: 1.14

Type: local

Published: 10/25/2007

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 6.9

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

Vulnerability Information

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

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

Patch Publication Date: 10/20/2007

Reference Information

CVE: CVE-2007-5377

CWE: 59

GLSA: 200710-22