GLSA-201612-39 : Bash: Arbitrary code execution

high Nessus Plugin ID 95742

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-201612-39 (Bash: Arbitrary code execution)

A vulnerability was found in the way Bash expands $HOSTNAME. Injecting malicious code into $HOSTNAME could cause it to run each time Bash expands \\h in the prompt string.
Impact :

A remote attacker controlling the system’s hostname (i.e. via DHCP) could possibly execute arbitrary code with the privileges of the process, or cause a Denial of Service condition.
Workaround :

There is no known workaround at this time.

Solution

All Bash users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=app-shells/bash-4.3_p46-r1'

See Also

https://security.gentoo.org/glsa/201612-39

Plugin Details

Severity: High

ID: 95742

File Name: gentoo_GLSA-201612-39.nasl

Version: 3.4

Type: local

Published: 12/13/2016

Updated: 1/11/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 6

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

CVSS v3

Risk Factor: High

Base Score: 7.5

Vector: CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Vulnerability Information

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

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

Patch Publication Date: 12/13/2016

Reference Information

CVE: CVE-2016-0634

GLSA: 201612-39