All reports
Medium

bash: Arbitrary code execution via malicious hostname

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2016-0634

Probability of exploitation in the next 30 days: 6.07%

FIRST EPSS · 2026-11-22

Description

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.