Bug 1377613 - (CVE-2016-0634) CVE-2016-0634 bash: Arbitrary code execution via malicious hostname
CVE-2016-0634 bash: Arbitrary code execution via malicious hostname
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20151016,repor...
: Security
Depends On: 1377614 1378456 1379237 1400793
Blocks: 1377615 1386080
  Show dependency treegraph
 
Reported: 2016-09-20 04:31 EDT by Andrej Nemec
Modified: 2018-03-29 18:01 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
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.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Andrej Nemec 2016-09-20 04:31:58 EDT
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
Comment 1 Andrej Nemec 2016-09-20 04:32:21 EDT
Created bash tracking bugs for this issue:

Affects: fedora-all [bug 1377614]
Comment 3 Dhiru Kholia 2016-09-21 07:34:08 EDT
Upstream patch (for bash 4.3):

http://openwall.com/lists/oss-security/2016/09/16/18
Comment 9 Fedora Update System 2016-09-23 12:19:08 EDT
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.
Comment 10 Fedora Update System 2016-09-24 11:13:35 EDT
bash-4.3.43-3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
Comment 11 Fedora Update System 2016-09-25 16:49:18 EDT
bash-4.3.42-4.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
Comment 16 Martin Prpič 2016-09-28 02:42:26 EDT
An upstream patch was posted to oss-security that fixes this issue:

http://seclists.org/oss-sec/2016/q3/538
Comment 17 Adam Mariš 2016-10-10 07:04:02 EDT
Now in upstream repo:

https://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-047
Comment 20 errata-xmlrpc 2017-03-21 07:14:23 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2017:0725 https://rhn.redhat.com/errata/RHSA-2017-0725.html
Comment 21 errata-xmlrpc 2017-08-01 16:33:02 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:1931 https://access.redhat.com/errata/RHSA-2017:1931

Note You need to log in before you can comment on or make changes to this bug.