CVE-2014-6271
bash: specially-crafted environment variables can be used to inject shell commands
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Red Hat, Amazon, Oracle. Rated lower by Ubuntu (high).
Description
GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which allows remote attackers to execute arbitrary code 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, aka "ShellShock." NOTE: the original fix for this issue was incorrect; CVE-2014-7169 has been assigned to cover the vulnerability that is still present after the incorrect fix.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| amazon linux 1 | bash, bash-debuginfo, bash-doc | 4.1.2-15.19.amzn1 |
| Oracle Linux 5 | bash | 3.2-33.el5.1 |
| Oracle Linux 6 | bash, bash-doc | 4.1.2-15.el6_5.1 |
| Oracle Linux 7 | bash, bash-doc | 4.2.45-5.el7_0.2 |
| debian 11 | bash | 4.3-9.1 |
| debian 12 | bash | 4.3-9.1 |
| debian 13 | bash | 4.3-9.1 |
| debian 14 | bash | 4.3-9.1 |
| debian 7 | bash | 4.2+dfsg-0.1+deb7u1 |
| echo | bash | 4.3-9.1 |
| root.io debian 11 | rootio-bash | 4.3-9.1 |
| ubuntu 12.04 | bash | 4.2-2ubuntu2.2 |
Show all 18 entries from 14 sources
| Source | Package | Fixed in |
|---|---|---|
| amazon linux 1 | bash | 4.1.2-15.19.amzn1 |
| amazon linux 1 | bash-debuginfo | 4.1.2-15.19.amzn1 |
| amazon linux 1 | bash-doc | 4.1.2-15.19.amzn1 |
| Oracle Linux 5 | bash | 3.2-33.el5.1 |
| Oracle Linux 6 | bash | 4.1.2-15.el6_5.1 |
| Oracle Linux 6 | bash-doc | 4.1.2-15.el6_5.1 |
| Oracle Linux 7 | bash | 4.2.45-5.el7_0.2 |
| Oracle Linux 7 | bash-doc | 4.2.45-5.el7_0.2 |
| debian 11 | bash | 4.3-9.1 |
| debian 12 | bash | 4.3-9.1 |
| debian 13 | bash | 4.3-9.1 |
| debian 14 | bash | 4.3-9.1 |
| debian 7 | bash | 4.2+dfsg-0.1+deb7u1 |
| echo | bash | 4.3-9.1 |
| root.io debian 11 | rootio-bash | 4.3-9.1 |
| ubuntu 12.04 | bash | 4.2-2ubuntu2.2 |
| ubuntu 14.04 | bash | 4.3-7ubuntu1.1 |
| ubuntu 14.04-ESM | bash | 4.3-7ubuntu1.1 |
References
- http://advisories.mageia.org/MGASA-2014-0388.html
- http://archives.neohapsis.com/archives/bugtraq/2014-10/0101.html
- http://jvn.jp/en/jp/JVN55667175/index.html
- http://jvndb.jvn.jp/jvndb/JVNDB-2014-000126
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10673
- http://lcamtuf.blogspot.com/2014/09/quick-notes-about-bash-bug-its-impact.html
- http://linux.oracle.com/errata/ELSA-2014-1293.html
- http://linux.oracle.com/errata/ELSA-2014-1294.html
All 179 references
- http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00028.html
- http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00029.html
- http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00034.html
- http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00037.html
- http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00040.html
- http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00044.html
- http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00049.html
- http://lists.opensuse.org/opensuse-security-announce/2014-10/msg00004.html
- http://lists.opensuse.org/opensuse-updates/2014-10/msg00023.html
- http://lists.opensuse.org/opensuse-updates/2014-10/msg00025.html
- http://marc.info/?l=bugtraq&m=141216207813411&w=2
- http://marc.info/?l=bugtraq&m=141216668515282&w=2
- http://marc.info/?l=bugtraq&m=141235957116749&w=2
- http://marc.info/?l=bugtraq&m=141319209015420&w=2
- http://marc.info/?l=bugtraq&m=141330425327438&w=2
- http://marc.info/?l=bugtraq&m=141330468527613&w=2
- http://marc.info/?l=bugtraq&m=141345648114150&w=2
- http://marc.info/?l=bugtraq&m=141383026420882&w=2
- http://marc.info/?l=bugtraq&m=141383081521087&w=2
- http://marc.info/?l=bugtraq&m=141383138121313&w=2
- http://marc.info/?l=bugtraq&m=141383196021590&w=2
- http://marc.info/?l=bugtraq&m=141383244821813&w=2
- http://marc.info/?l=bugtraq&m=141383304022067&w=2
- http://marc.info/?l=bugtraq&m=141383353622268&w=2
- http://marc.info/?l=bugtraq&m=141383465822787&w=2
- http://marc.info/?l=bugtraq&m=141450491804793&w=2
- http://marc.info/?l=bugtraq&m=141576728022234&w=2
- http://marc.info/?l=bugtraq&m=141577137423233&w=2
- http://marc.info/?l=bugtraq&m=141577241923505&w=2
- http://marc.info/?l=bugtraq&m=141577297623641&w=2
- http://marc.info/?l=bugtraq&m=141585637922673&w=2
- http://marc.info/?l=bugtraq&m=141694386919794&w=2
- http://marc.info/?l=bugtraq&m=141879528318582&w=2
- http://marc.info/?l=bugtraq&m=142113462216480&w=2
- http://marc.info/?l=bugtraq&m=142118135300698&w=2
- http://marc.info/?l=bugtraq&m=142358026505815&w=2
- http://marc.info/?l=bugtraq&m=142358078406056&w=2
- http://marc.info/?l=bugtraq&m=142546741516006&w=2
- http://marc.info/?l=bugtraq&m=142719845423222&w=2
- http://marc.info/?l=bugtraq&m=142721162228379&w=2
- http://marc.info/?l=bugtraq&m=142805027510172&w=2
- http://packetstormsecurity.com/files/128517/VMware-Security-Advisory-2014-0010.html
- http://packetstormsecurity.com/files/128567/CA-Technologies-GNU-Bash-Shellshock.html
- http://packetstormsecurity.com/files/128573/Apache-mod_cgi-Remote-Command-Execution.html
- http://packetstormsecurity.com/files/137376/IPFire-Bash-Environment-Variable-Injection-Shellshock.html
- http://packetstormsecurity.com/files/161107/SonicWall-SSL-VPN-Shellshock-Remote-Code-Execution.html
- http://rhn.redhat.com/errata/RHSA-2014-1293.html
- http://rhn.redhat.com/errata/RHSA-2014-1294.html
- http://rhn.redhat.com/errata/RHSA-2014-1295.html
- http://rhn.redhat.com/errata/RHSA-2014-1354.html
- http://seclists.org/fulldisclosure/2014/Oct/0
- http://secunia.com/advisories/58200
- http://secunia.com/advisories/59272
- http://secunia.com/advisories/59737
- http://secunia.com/advisories/59907
- http://secunia.com/advisories/60024
- http://secunia.com/advisories/60034
- http://secunia.com/advisories/60044
- http://secunia.com/advisories/60055
- http://secunia.com/advisories/60063
- http://secunia.com/advisories/60193
- http://secunia.com/advisories/60325
- http://secunia.com/advisories/60433
- http://secunia.com/advisories/60947
- http://secunia.com/advisories/61065
- http://secunia.com/advisories/61128
- http://secunia.com/advisories/61129
- http://secunia.com/advisories/61188
- http://secunia.com/advisories/61283
- http://secunia.com/advisories/61287
- http://secunia.com/advisories/61291
- http://secunia.com/advisories/61312
- http://secunia.com/advisories/61313
- http://secunia.com/advisories/61328
- http://secunia.com/advisories/61442
- http://secunia.com/advisories/61471
- http://secunia.com/advisories/61485
- http://secunia.com/advisories/61503
- http://secunia.com/advisories/61542
- http://secunia.com/advisories/61547
- http://secunia.com/advisories/61550
- http://secunia.com/advisories/61552
- http://secunia.com/advisories/61565
- http://secunia.com/advisories/61603
- http://secunia.com/advisories/61633
- http://secunia.com/advisories/61641
- http://secunia.com/advisories/61643
- http://secunia.com/advisories/61654
- http://secunia.com/advisories/61676
- http://secunia.com/advisories/61700
- http://secunia.com/advisories/61703
- http://secunia.com/advisories/61711
- http://secunia.com/advisories/61715
- http://secunia.com/advisories/61780
- http://secunia.com/advisories/61816
- http://secunia.com/advisories/61855
- http://secunia.com/advisories/61857
- http://secunia.com/advisories/61873
- http://secunia.com/advisories/62228
- http://secunia.com/advisories/62312
- http://secunia.com/advisories/62343
- http://support.apple.com/kb/HT6495
- http://support.novell.com/security/cve/CVE-2014-6271.html
- http://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20140926-bash
- http://www-01.ibm.com/support/docview.wss?uid=isg3T1021272
- http://www-01.ibm.com/support/docview.wss?uid=isg3T1021279
- http://www-01.ibm.com/support/docview.wss?uid=isg3T1021361
- http://www-01.ibm.com/support/docview.wss?uid=ssg1S1004879
- http://www-01.ibm.com/support/docview.wss?uid=ssg1S1004897
- http://www-01.ibm.com/support/docview.wss?uid=ssg1S1004898
- http://www-01.ibm.com/support/docview.wss?uid=ssg1S1004915
- http://www-01.ibm.com/support/docview.wss?uid=swg21685541
- http://www-01.ibm.com/support/docview.wss?uid=swg21685604
- http://www-01.ibm.com/support/docview.wss?uid=swg21685733
- http://www-01.ibm.com/support/docview.wss?uid=swg21685749
- http://www-01.ibm.com/support/docview.wss?uid=swg21685914
- http://www-01.ibm.com/support/docview.wss?uid=swg21686084
- http://www-01.ibm.com/support/docview.wss?uid=swg21686131
- http://www-01.ibm.com/support/docview.wss?uid=swg21686246
- http://www-01.ibm.com/support/docview.wss?uid=swg21686445
- http://www-01.ibm.com/support/docview.wss?uid=swg21686447
- http://www-01.ibm.com/support/docview.wss?uid=swg21686479
- http://www-01.ibm.com/support/docview.wss?uid=swg21686494
- http://www-01.ibm.com/support/docview.wss?uid=swg21687079
- http://www-947.ibm.com/support/entry/portal/docdisplay?lndocid=MIGR-5096315
- http://www.debian.org/security/2014/dsa-3032
- http://www.kb.cert.org/vuls/id/252743
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:164
- http://www.novell.com/support/kb/doc.php?id=7015701
- http://www.novell.com/support/kb/doc.php?id=7015721
- http://www.oracle.com/technetwork/topics/security/bashcve-2014-7169-2317675.html
- http://www.qnap.com/i/en/support/con_show.php?cid=61
- http://www.securityfocus.com/archive/1/533593/100/0/threaded
- http://www.securityfocus.com/bid/70103
- http://www.ubuntu.com/usn/USN-2362-1
- http://www.us-cert.gov/ncas/alerts/TA14-268A
- http://www.vmware.com/security/advisories/VMSA-2014-0010.html
- http://www.websense.com/support/article/kbarticle/Vulnerabilities-resolved-in-TRITON-APX-Version-8-0
- https://access.redhat.com/articles/1200223
- https://access.redhat.com/node/1200223
- https://access.redhat.com/security/cve/CVE-2014-6271
- https://bugzilla.redhat.com/show_bug.cgi?id=1141597
- https://help.ecostruxureit.com/display/public/UADCO8x/StruxureWare+Data+Center+Operation+Software+Vulnerability+Fixes
- https://kb.bluecoat.com/index?page=content&id=SA82
- https://kb.juniper.net/InfoCenter/index?page=content&id=JSA10648
- https://kc.mcafee.com/corporate/index?page=content&id=SB10085
- https://linux.oracle.com/cve/CVE-2014-6271.html
- https://linux.oracle.com/errata/ELSA-2014-1293.html
- https://nvd.nist.gov/vuln/detail/CVE-2014-6271
- https://securityblog.redhat.com/2014/09/24/bash-specially-crafted-environment-variables-code-injection-attack
- https://securityblog.redhat.com/2014/09/24/bash-specially-crafted-environment-variables-code-injection-attack/
- https://support.apple.com/kb/HT6535
- https://support.citrix.com/article/CTX200217
- https://support.citrix.com/article/CTX200223
- https://support.f5.com/kb/en-us/solutions/public/15000/600/sol15629.html
- https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-c04497075
- https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-c04518183
- https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk102673&src=securityAlerts
- https://ubuntu.com/security/notices/USN-2362-1
- https://www.arista.com/en/support/advisories-notices/security-advisories/1008-security-advisory-0006
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2014-6271
- https://www.cve.org/CVERecord?id=CVE-2014-6271
- https://www.exploit-db.com/exploits/34879/
- https://www.exploit-db.com/exploits/37816/
- https://www.exploit-db.com/exploits/38849/
- https://www.exploit-db.com/exploits/39918/
- https://www.exploit-db.com/exploits/40619/
- https://www.exploit-db.com/exploits/40938/
- https://www.exploit-db.com/exploits/42938/
- https://www.suse.com/support/shellshock/