GLSA-201612-39 : Bash: Arbitrary code execution

Medium Nessus Plugin ID 95742


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


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.


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

See Also

Plugin Details

Severity: Medium

ID: 95742

File Name: gentoo_GLSA-201612-39.nasl

Version: $Revision: 3.3 $

Type: local

Published: 2016/12/13

Modified: 2018/01/26

Dependencies: 12634

Risk Information

Risk Factor: Medium


Base Score: 6

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


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: 2016/12/13

Reference Information

CVE: CVE-2016-0634

GLSA: 201612-39