CVE-2016-0634
published 2017-08-28CVE-2016-0634: The expansion of '\h' in the prompt string in bash 4.3 allows remote authenticated users to execute arbitrary code via shell metacharacters placed in…
PriorityP351high7.5CVSS 3.0
AVNACHPRLUINSUCHIHAH
EPSS
6.02%
92.6th percentile
The expansion of '\h' in the prompt string in bash 4.3 allows remote authenticated users to execute arbitrary code via shell metacharacters placed in 'hostname' of a machine.
Affected
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | bash | < bash 4.4-1 (bookworm) | bash 4.4-1 (bookworm) |
| gnu | bash | — | — |
| gnu | bash | >= 0 < 4.4-1 | 4.4-1 |
| gnu | bash | >= 0 < 4.4-1 | 4.4-1 |
| gnu | bash | >= 0 < 4.4-1 | 4.4-1 |
| gnu | bash | >= 0 < 4.4-1 | 4.4-1 |
| gnu | bash | >= 0 < 4.3-7ubuntu1.7 | 4.3-7ubuntu1.7 |
| gnu | bash | >= 0 < 4.3-14ubuntu1.2 | 4.3-14ubuntu1.2 |
CVSS provenance
nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.06.0MEDIUMAV:N/AC:M/Au:S/C:P/I:P/A:P
osv7.5HIGH
vendor_debian7.5LOW
vendor_redhat7.5HIGH
vendor_ubuntu7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Bash vulnerabilities
vendor_ubuntu·2017-05-17·CVSS 7.5
CVE-2016-0634 [HIGH] Bash vulnerabilities
Title: Bash vulnerabilities
Summary: Several security issues were fixed in Bash.
Bernd Dietzel discovered that Bash incorrectly expanded the hostname when
displaying the prompt. If a remote attacker were able to modify a hostname,
this flaw could be exploited to execute arbitrary code. This issue only
affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS and Ubuntu 16.10.
(CVE-2016-0634)
It was discovered that Bash incorrectly handled the SHELLOPTS and PS4
environment variables. A local attacker could use this issue to execute
arbitrary code with root privileges. This issue only affected Ubuntu 14.04
LTS, Ubuntu 16.04 LTS and Ubuntu 16.10. (CVE-2016-7543)
It was discovered that Bash incorrectly handled the popd command. A remote
attacker could possibly use this issue to bypass restricted shells.
Debian
CVE-2016-0634: bash - The expansion of '\h' in the prompt string in bash 4.3 allows remote authenticat...
vendor_debian·2016·CVSS 7.5
CVE-2016-0634 [HIGH] CVE-2016-0634: bash - The expansion of '\h' in the prompt string in bash 4.3 allows remote authenticat...
The expansion of '\h' in the prompt string in bash 4.3 allows remote authenticated users to execute arbitrary code via shell metacharacters placed in 'hostname' of a machine.
Scope: local
bookworm: resolved (fixed in 4.4-1)
bullseye: resolved (fixed in 4.4-1)
forky: resolved (fixed in 4.4-1)
sid: resolved (fixed in 4.4-1)
trixie: resolved (fixed in 4.4-1)
Red Hat
bash: Arbitrary code execution via malicious hostname
vendor_redhat·2015-10-16·CVSS 7.5
CVE-2016-0634 [HIGH] bash: Arbitrary code execution via malicious hostname
bash: Arbitrary code execution via malicious hostname
The expansion of '\h' in the prompt string in bash 4.3 allows remote authenticated users to execute arbitrary code via shell metacharacters placed in 'hostname' of a machine.
An arbitrary command injection flaw was found in the way bash processed the hostname value. A malicious DHCP server could use this flaw to execute arbitrary commands on the DHCP client machines running bash under specific circumstances.
Package: bash (Red Hat Enterprise Linux 5) - Will not fix
GHSA
GHSA-h2ww-3j54-pccx: The expansion of '\h' in the prompt string in bash 4
ghsa_unreviewed·2022-05-14
CVE-2016-0634 [HIGH] CWE-78 GHSA-h2ww-3j54-pccx: The expansion of '\h' in the prompt string in bash 4
The expansion of '\h' in the prompt string in bash 4.3 allows remote authenticated users to execute arbitrary code via shell metacharacters placed in 'hostname' of a machine.
OSV
CVE-2016-0634: The expansion of '\h' in the prompt string in bash 4
osv·2017-08-28·CVSS 7.5
CVE-2016-0634 [HIGH] CVE-2016-0634: The expansion of '\h' in the prompt string in bash 4
The expansion of '\h' in the prompt string in bash 4.3 allows remote authenticated users to execute arbitrary code via shell metacharacters placed in 'hostname' of a machine.
OSV
bash vulnerabilities
osv·2017-05-17·CVSS 7.5
CVE-2016-0634 [HIGH] bash vulnerabilities
bash vulnerabilities
Bernd Dietzel discovered that Bash incorrectly expanded the hostname when
displaying the prompt. If a remote attacker were able to modify a hostname,
this flaw could be exploited to execute arbitrary code. This issue only
affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS and Ubuntu 16.10.
(CVE-2016-0634)
It was discovered that Bash incorrectly handled the SHELLOPTS and PS4
environment variables. A local attacker could use this issue to execute
arbitrary code with root privileges. This issue only affected Ubuntu 14.04
LTS, Ubuntu 16.04 LTS and Ubuntu 16.10. (CVE-2016-7543)
It was discovered that Bash incorrectly handled the popd command. A remote
attacker could possibly use this issue to bypass restricted shells.
(CVE-2016-9401)
It was discovered that Bash incorrectly han
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2016-0634 bash: Arbitrary code execution via malicious hostname
bugzilla·2016-09-20·CVSS 7.5
CVE-2016-0634 [HIGH] CVE-2016-0634 bash: Arbitrary code execution via malicious hostname
CVE-2016-0634 bash: Arbitrary code execution via malicious hostname
A vulnerability was found in a way bash expands the $HOSTNAME. Injecting the hostname with malicious code would cause it to run each time bash expanded \h in the prompt string.
References:
http://seclists.org/oss-sec/2016/q3/528
Ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1507025
Discussion:
Created bash tracking bugs for this issue:
Affects: fedora-all [bug 1377614]
---
Upstream patch (for bash 4.3):
http://openwall.com/lists/oss-security/2016/09/16/18
---
bash-4.3.42-6.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
---
bash-4.3.43-3.fc25 has been pushed to the Fedora 25 stable repository. If problems still p
Bugzilla
CVE-2016-0634 bash: Arbitrary code execution via malicious hostname [fedora-all]
bugzilla·2016-09-20·CVSS 7.5
CVE-2016-0634 [HIGH] CVE-2016-0634 bash: Arbitrary code execution via malicious hostname [fedora-all]
CVE-2016-0634 bash: Arbitrary code execution via malicious hostname [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions
http://rhn.redhat.com/errata/RHSA-2017-0725.htmlhttp://www.openwall.com/lists/oss-security/2016/09/16/12http://www.openwall.com/lists/oss-security/2016/09/16/8http://www.openwall.com/lists/oss-security/2016/09/18/11http://www.openwall.com/lists/oss-security/2016/09/19/7http://www.openwall.com/lists/oss-security/2016/09/20/1http://www.openwall.com/lists/oss-security/2016/09/27/9http://www.openwall.com/lists/oss-security/2016/09/29/27http://www.openwall.com/lists/oss-security/2016/10/07/6http://www.openwall.com/lists/oss-security/2016/10/10/3http://www.openwall.com/lists/oss-security/2016/10/10/4http://www.securityfocus.com/bid/92999https://access.redhat.com/errata/RHSA-2017:1931https://bugzilla.redhat.com/show_bug.cgi?id=1377613https://security.gentoo.org/glsa/201612-39http://rhn.redhat.com/errata/RHSA-2017-0725.htmlhttp://www.openwall.com/lists/oss-security/2016/09/16/12http://www.openwall.com/lists/oss-security/2016/09/16/8http://www.openwall.com/lists/oss-security/2016/09/18/11http://www.openwall.com/lists/oss-security/2016/09/19/7http://www.openwall.com/lists/oss-security/2016/09/20/1http://www.openwall.com/lists/oss-security/2016/09/27/9http://www.openwall.com/lists/oss-security/2016/09/29/27http://www.openwall.com/lists/oss-security/2016/10/07/6http://www.openwall.com/lists/oss-security/2016/10/10/3http://www.openwall.com/lists/oss-security/2016/10/10/4http://www.securityfocus.com/bid/92999https://access.redhat.com/errata/RHSA-2017:1931https://bugzilla.redhat.com/show_bug.cgi?id=1377613https://security.gentoo.org/glsa/201612-39
2017-08-28
Published