CVE-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 'hostname' of a machine.
02 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.
03 Exploitation and scoring
- Exploitation
- Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
- SSVC decision
- ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
- AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
- Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
- EPSS probability
- 6.01% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 93.0% of scored records. A rank, not a probability.
- NVD base score
- 7.5 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Moderate. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2017-08-28 15:00Z9 YR AGO
- Last updated
- 2024-10-04 17:00Z2 YR AGO
- Reserved
- 2015-12-09
- Assigning CNA
- oracle
- Record state
- PUBLISHED
- Severity
- Not rated by the issuing CNA
- CNA CVSS vector
- Not published by the issuing CNA
- Weaknesses
- CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')Base
- Data version
- 5.1
- Document digest
- 070cc1209388a98b7634448f752f996073a370b3a66ca24276de785cd7c6136d
05 Affected products
06 References
- www.openwall.com[oss-security] 20160927 Re: Re: CVE-2016-0634 -- bash prompt expanding $HOSTNAMEhttp://www.openwall.com/lists/oss-security/2016/09/27/9
- www.openwall.com[oss-security] 20160916 CVE-2016-0634 -- bash prompt expanding $HOSTNAMEhttp://www.openwall.com/lists/oss-security/2016/09/16/8
- rhn.redhat.comRHSA-2017:0725http://rhn.redhat.com/errata/RHSA-2017-0725.html
- www.openwall.com[oss-security] 20160929 Re: Re: CVE-2016-0634 -- bash prompt expanding $HOSTNAMEhttp://www.openwall.com/lists/oss-security/2016/09/29/27
- www.openwall.com[oss-security] 20160920 Re: CVE-2016-0634 -- bash prompt expanding $HOSTNAMEhttp://www.openwall.com/lists/oss-security/2016/09/20/1
- www.securityfocus.com92999http://www.securityfocus.com/bid/92999
- access.redhat.comRHSA-2017:1931https://access.redhat.com/errata/RHSA-2017:1931
- www.openwall.com[oss-security] 20161007 Re: Re: CVE-2016-0634 -- bash prompt expanding $HOSTNAMEhttp://www.openwall.com/lists/oss-security/2016/10/07/6
- www.openwall.com[oss-security] 20160918 Re: CVE-2016-0634 -- bash prompt expanding $HOSTNAMEhttp://www.openwall.com/lists/oss-security/2016/09/18/11
- www.openwall.com[oss-security] 20160919 Re: CVE-2016-0634 -- bash prompt expanding $HOSTNAMEhttp://www.openwall.com/lists/oss-security/2016/09/19/7
- www.openwall.com[oss-security] 20161010 Re: Re: CVE-2016-0634 -- bash prompt expanding $HOSTNAMEhttp://www.openwall.com/lists/oss-security/2016/10/10/4
- www.openwall.com[oss-security] 20160916 Re: CVE-2016-0634 -- bash prompt expanding $HOSTNAMEhttp://www.openwall.com/lists/oss-security/2016/09/16/12
- security.gentoo.orgGLSA-201612-39https://security.gentoo.org/glsa/201612-39
- bugzilla.redhat.comhttps://bugzilla.redhat.com/show_bug.cgi?id=1377613
- www.openwall.com[oss-security] 20161010 RE: Re: CVE-2016-0634 -- bash prompt expanding $HOSTNAMEhttp://www.openwall.com/lists/oss-security/2016/10/10/3
07 Fixed in
Debian 12
- bash Fixed in 4.4-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- bash Fixed in 4.4-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- bash Fixed in 4.4-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 14.04 LTS
- bash Fixed in 4.3-7ubuntu1.7
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 16.04 LTS
- bash Fixed in 4.3-14ubuntu1.2
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.