CVE-2014-6277
GNU Bash through 4.3 bash43-026 does not properly parse function definitions in the values of environment variables, which allows remote…
Description
GNU Bash through 4.3 bash43-026 does not properly parse function definitions in the values of environment variables, which allows remote attackers to execute arbitrary code or cause a denial of service (uninitialized memory access, and untrusted-pointer read and write operations) via a crafted environment, as demonstrated by vectors involving the ForceCommand feature in OpenSSH sshd, the mod_cgi and mod_cgid modules in the Apache HTTP Server, scripts executed by unspecified DHCP clients, and other situations in which setting the environment occurs across a privilege boundary from Bash execution. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-6271 and CVE-2014-7169.
Exploitation
EPSS 64.3%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.4% of all scored CVEs. Scores of 26 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in their own package version, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2014-6277 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2014-6277RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2014-6277Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image; it prints the installed and the fixed version when a package is affected:
trivy rootfs --scanners vuln / | grep CVE-2014-6277
trivy image --scanners vuln IMAGE | grep CVE-2014-6277
Patchbrief matches the package lists of your Linux servers and containers every day against the Trivy vulnerability database, which covers the packages of Linux distributions and language packages (npm, PyPI, Go, Maven and others), and sends one digest with the command that fixes each problem. Install the agent.
References
Advisories
- http://www-01.ibm.com/support/docview.wss?uid=ssg1S1004897 www-01.ibm.com
- http://www-01.ibm.com/support/docview.wss?uid=swg21685749 www-01.ibm.com
- HPSBMU03165 marc.info · vendor advisory
- https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk102673&src=securityAlerts supportcenter.checkpoint.com
- http://linux.oracle.com/errata/ELSA-2014-3093 linux.oracle.com
- SSRT101819 marc.info · vendor advisory
- HPSBMU03245 marc.info · vendor advisory
- http://www-01.ibm.com/support/docview.wss?uid=swg21686479 www-01.ibm.com
- JVN#55667175 jvn.jp · third party advisory
- 60433 secunia.com · third party advisory
- HPSBMU03143 marc.info · vendor advisory
- HPSBMU03182 marc.info · vendor advisory
94 more
- HPSBST03155 marc.info · vendor advisory
- http://www-01.ibm.com/support/docview.wss?uid=swg21685541 www-01.ibm.com
- http://www.oracle.com/technetwork/topics/security/bashcve-2014-7169-2317675.html oracle.com
- 61816 secunia.com · third party advisory
- openSUSE-SU-2014:1310 lists.opensuse.org · vendor advisory
- 61442 secunia.com · third party advisory
- HPSBMU03246 marc.info · vendor advisory
- 61283 secunia.com · third party advisory
- APPLE-SA-2015-09-30-3 lists.apple.com · vendor advisory
- https://kc.mcafee.com/corporate/index?page=content&id=SB10085 kc.mcafee.com
- 61654 secunia.com · third party advisory
- USN-2380-1 ubuntu.com · vendor advisory
- http://www-947.ibm.com/support/entry/portal/docdisplay?lndocid=MIGR-5096315 www-947.ibm.com
- 62312 secunia.com · third party advisory
- https://support.f5.com/kb/en-us/solutions/public/15000/600/sol15629.html support.f5.com
- HPSBMU03217 marc.info · vendor advisory
- http://www-01.ibm.com/support/docview.wss?uid=swg21685604 www-01.ibm.com
- SSRT101868 marc.info · vendor advisory
- 61703 secunia.com · third party advisory
- 61065 secunia.com · third party advisory
- HPSBST03129 marc.info · vendor advisory
- HPSBMU03144 marc.info · vendor advisory
- http://www-01.ibm.com/support/docview.wss?uid=swg21686445 www-01.ibm.com
- http://www-01.ibm.com/support/docview.wss?uid=swg21686131 www-01.ibm.com
- JVNDB-2014-000126 jvndb.jvn.jp · third party advisory
- 61641 secunia.com · third party advisory
- https://kb.juniper.net/InfoCenter/index?page=content&id=JSA10648 kb.juniper.net
- SUSE-SU-2014:1287 lists.opensuse.org · vendor advisory
- http://www-01.ibm.com/support/docview.wss?uid=ssg1S1004898 www-01.ibm.com
- http://www-01.ibm.com/support/docview.wss?uid=swg21685914 www-01.ibm.com
- MDVSA-2015:164 mandriva.com · vendor advisory
- https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-c04497075 support.hpe.com
- https://support.apple.com/HT205267 support.apple.com
- 60325 secunia.com · third party advisory
- 60024 secunia.com · third party advisory
- 20140926 GNU Bash Environment Variable Command Injection Vulnerability tools.cisco.com · vendor advisory
- 62343 secunia.com · third party advisory
- 61565 secunia.com · third party advisory
- https://www.suse.com/support/shellshock/ suse.com
- http://support.apple.com/HT204244 support.apple.com
- HPSBST03157 marc.info · vendor advisory
- 61313 secunia.com · third party advisory
- SSRT101830 marc.info · vendor advisory
- 61485 secunia.com · third party advisory
- https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-c04518183 support.hpe.com
- HPSBST03154 marc.info · vendor advisory
- http://www-01.ibm.com/support/docview.wss?uid=isg3T1021272 www-01.ibm.com
- HPSBGN03142 marc.info · vendor advisory
- 61312 secunia.com · third party advisory
- http://linux.oracle.com/errata/ELSA-2014-3094 linux.oracle.com
- 60193 secunia.com · third party advisory
- http://www.vmware.com/security/advisories/VMSA-2014-0010.html vmware.com
- 60063 secunia.com · third party advisory
- 60034 secunia.com · third party advisory
- 59907 secunia.com · third party advisory
- 58200 secunia.com · third party advisory
- HPSBST03181 marc.info · vendor advisory
- 61643 secunia.com · third party advisory
- http://www.novell.com/support/kb/doc.php?id=7015721 novell.com
- http://www-01.ibm.com/support/docview.wss?uid=swg21687079 www-01.ibm.com
- 61503 secunia.com · third party advisory
- http://www-01.ibm.com/support/docview.wss?uid=swg21686246 www-01.ibm.com
- http://www-01.ibm.com/support/docview.wss?uid=ssg1S1004915 www-01.ibm.com
- HPSBHF03145 marc.info · vendor advisory
- http://www.qnap.com/i/en/support/con_show.php?cid=61 qnap.com
- 61552 secunia.com · third party advisory
- 61780 secunia.com · third party advisory
- http://www-01.ibm.com/support/docview.wss?uid=isg3T1021279 www-01.ibm.com
- https://support.citrix.com/article/CTX200223 support.citrix.com
- HPSBGN03138 marc.info · vendor advisory
- 60044 secunia.com · third party advisory
- 61291 secunia.com · third party advisory
- HPSBHF03125 marc.info · vendor advisory
- 61287 secunia.com · third party advisory
- HPSBHF03146 marc.info · vendor advisory
- http://www-01.ibm.com/support/docview.wss?uid=isg3T1021361 www-01.ibm.com
- APPLE-SA-2015-01-27-4 lists.apple.com · vendor advisory
- HPSBGN03141 marc.info · vendor advisory
- 61128 secunia.com · third party advisory
- https://support.citrix.com/article/CTX200217 support.citrix.com
- 61471 secunia.com · third party advisory
- 60055 secunia.com · third party advisory
- 59961 secunia.com · third party advisory
- 61550 secunia.com · third party advisory
- 61633 secunia.com · third party advisory
- http://www-01.ibm.com/support/docview.wss?uid=swg21686494 www-01.ibm.com
- http://support.novell.com/security/cve/CVE-2014-6277.html support.novell.com
- https://kb.bluecoat.com/index?page=content&id=SA82 kb.bluecoat.com
- 61328 secunia.com · third party advisory
- http://www-01.ibm.com/support/docview.wss?uid=swg21685733 www-01.ibm.com
- 61129 secunia.com · third party advisory
- 61603 secunia.com · third party advisory
- 61857 secunia.com · third party advisory
- http://www-01.ibm.com/support/docview.wss?uid=ssg1S1004879 www-01.ibm.com
Other references
- http://packetstormsecurity.com/files/128567/CA-Technologies-GNU-Bash-Shellshock.html packetstormsecurity.com
- http://lcamtuf.blogspot.com/2014/10/bash-bug-how-we-finally-cracked.html lcamtuf.blogspot.com
- http://lcamtuf.blogspot.com/2014/09/bash-bug-apply-unofficial-patch-now.html lcamtuf.blogspot.com
Guides
- Shellshock (CVE-2014-6271 and follow-ups): bash runs code from environment variables How a function definition in an environment variable let attackers run commands through CGI scripts, SSH and DHCP, the six CVEs, and how to test bash today.
Source: the record CVE-2014-6277 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.