bash: Arbitrary code execution via malicious hostname
Published Aug 28, 2017
7.5
HIGHCVSS 3.0
EPSS 6.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.
Affected products
No data.
No data.
Red Hat Enterprise Linux 6
bash-0:4.1.2-48.el6
Fixed · RHSA-2017:0725
Red Hat Enterprise Linux 7
bash-0:4.2.46-28.el7
Fixed · RHSA-2017:1931
Red Hat Enterprise Linux 5
bash
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | bash-0:4.1.2-48.el6 | Fixed | RHSA-2017:0725 |
| Red Hat Enterprise Linux 7 | bash-0:4.2.46-28.el7 | Fixed | RHSA-2017:1931 |
| Red Hat Enterprise Linux 5 | bash | Will not fix | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
AV:N/AC:M/Au:S/C:P/I:P/A:P
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
NoTechnical Impact
TotalDecision
n/aAssessed Oct 4, 2024 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (16 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 6.02% (0.06019) | 93.12th | v5 (v2026.06.15) |
| Jun 15, 2026 | 6.07% (0.06068) | 92.44th | v5 (v2026.06.15) |
| Apr 23, 2026 | 2.78% (0.02781) | 86.10th | v4 (v2025.03.14) |
| Nov 9, 2025 | 1.45% (0.01448) | 80.13th | v4 (v2025.03.14) |
| Mar 30, 2025 | 2.96% (0.02955) | 85.25th | v4 (v2025.03.14) |
| Mar 29, 2025 | 6.42% (0.06422) | 84.63th | v4 (v2025.03.14) |
| Mar 17, 2025 | 2.96% (0.02955) | 85.56th | v4 (v2025.03.14) |
| Dec 12, 2024 | 1.57% (0.01573) | 87.78th | v3 (v2023.03.01) |
| Aug 8, 2023 | 1.57% (0.01573) | 85.60th | v3 (v2023.03.01) |
| Jul 8, 2023 | 1.52% (0.01518) | 85.22th | v3 (v2023.03.01) |
| May 8, 2023 | 2.02% (0.02016) | 87.16th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.45% (0.01447) | 84.56th | v3 (v2023.03.01) |
| Mar 6, 2023 | 8.08% (0.08082) | 93.34th | v2 (v2022.01.01) |
| May 25, 2022 | 8.08% (0.08082) | 92.81th | v2 (v2022.01.01) |
| Apr 1, 2022 | 7.88% (0.07876) | 92.62th | v2 (v2022.01.01) |
| Feb 4, 2022 | 7.88% (0.07876) | 81.58th | v2 (v2022.01.01) |
References (18)
- http://rhn.redhat.com/errata/RHSA-2017-0725.html vendor-advisoryx_refsource_REDHAT
- http://www.openwall.com/lists/oss-security/2016/09/16/12 mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2016/09/16/8 mailing-listx_refsource_MLISTMailing ListPatchThird Party Advisory
- http://www.openwall.com/lists/oss-security/2016/09/18/11 mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2016/09/19/7 mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2016/09/20/1 mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2016/09/27/9 mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2016/09/29/27 mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2016/10/07/6 mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2016/10/10/3 mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2016/10/10/4 mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- http://www.securityfocus.com/bid/92999 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2017:1931 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2016-0634 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1377613 x_refsource_CONFIRMIssue TrackingPatchThird Party AdvisoryVDB Entry
- https://nvd.nist.gov/vuln/detail/CVE-2016-0634
- https://security.gentoo.org/glsa/201612-39 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2016-0634
Change history (0)
No recorded changes yet.