CVEfocus › CVE database › CVE-2016-0634

CVE-2016-0634

CVSS 7.5 HighEPSS 6.1% (higher than 93% of CVEs)Published 2017-08-28Updated 2024-10-04Assigner: oracle

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.

What to do

Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

27Fixed
1Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04bashNot affected
vulnerable_code_not_present
Ubuntu 18.04bashNot affected
vulnerable_code_not_present
Ubuntu 16.04bashFixed4.3-14ubuntu1.2UBUNTU-CVE-2016-0634
Ubuntu 14.04bashFixed4.3-7ubuntu1.7UBUNTU-CVE-2016-0634
Debian 14bashFixed4.4-1DEBIAN-CVE-2016-0634
Debian 13bashFixed4.4-1DEBIAN-CVE-2016-0634
Debian 12bashFixed4.4-1DEBIAN-CVE-2016-0634
Red Hat Enterprise Linux 7bashFixed0:4.2.46-28.el7RHSA-2017:1931
Red Hat Enterprise Linux 7bash-docFixed0:4.2.46-28.el7RHSA-2017:1931
Red Hat Enterprise Linux 6bashFixed0:4.1.2-48.el6RHSA-2017:0725
Red Hat Enterprise Linux 6bash-docFixed0:4.1.2-48.el6RHSA-2017:0725
Red Hat Enterprise Linux 5bashWill not fix
Will not fix
Alpine Linux 3.24bashFixed4.4.12-r1ALPINE-CVE-2016-0634
Alpine Linux 3.23bashFixed4.4.12-r1ALPINE-CVE-2016-0634
Alpine Linux 3.22bashFixed4.4.12-r1ALPINE-CVE-2016-0634
Alpine Linux 3.21bashFixed4.4.12-r1ALPINE-CVE-2016-0634
Alpine Linux 3.20bashFixed4.4.12-r1ALPINE-CVE-2016-0634
Alpine Linux 3.19bashFixed4.4.12-r1ALPINE-CVE-2016-0634
Alpine Linux 3.18bashFixed4.4.12-r1ALPINE-CVE-2016-0634
Alpine Linux 3.17bashFixed4.4.12-r1ALPINE-CVE-2016-0634
Alpine Linux 3.16bashFixed4.4.12-r1ALPINE-CVE-2016-0634
Alpine Linux 3.15bashFixed4.4.12-r1ALPINE-CVE-2016-0634
Alpine Linux 3.14bashFixed4.4.12-r1ALPINE-CVE-2016-0634
Alpine Linux 3.13bashFixed4.4.12-r1ALPINE-CVE-2016-0634
Alpine Linux 3.12bashFixed4.4.12-r1ALPINE-CVE-2016-0634
Alpine Linux 3.11bashFixed4.4.12-r1ALPINE-CVE-2016-0634
Alpine Linux 3.10bashFixed4.4.12-r1ALPINE-CVE-2016-0634
Alpine Linux 3.9bashFixed4.4.12-r1ALPINE-CVE-2016-0634
Alpine Linux 3.8bashFixed4.4.12-r1ALPINE-CVE-2016-0634
Alpine Linux 3.7bashFixed4.4.12-r1ALPINE-CVE-2016-0634

What the vendor says

As published in the CVE record by oracle, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.