FreeBSD : automake -- Insecure 'distcheck' recipe granted world-writable distdir (36235c38-e0a8-11e1-9f4d-002354ed89bc)

medium Nessus Plugin ID 61451

Synopsis

The remote FreeBSD host is missing a security-related update.

Description

GNU reports :

The recipe of the 'distcheck' target granted temporary world-write permissions on the extracted distdir. This introduced a locally exploitable race condition for those who run 'make distcheck' with a non-restrictive umask (e.g., 022) in a directory that was accessible by others. A successful exploit would result in arbitrary code execution with the privileges of the user running 'make distcheck'.

It is important to stress that this vulnerability impacts not only the Automake package itself, but all packages with Automake-generated makefiles. For an effective fix it is necessary to regenerate the Makefile.in files with a fixed Automake version.

Solution

Update the affected package.

See Also

https://lists.gnu.org/archive/html/automake/2012-07/msg00023.html

http://www.nessus.org/u?99848a50

Plugin Details

Severity: Medium

ID: 61451

File Name: freebsd_pkg_36235c38e0a811e19f4d002354ed89bc.nasl

Version: 1.7

Type: local

Published: 8/8/2012

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 4.4

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

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:automake, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Patch Publication Date: 8/6/2012

Vulnerability Publication Date: 7/9/2012

Reference Information

CVE: CVE-2012-3386