CVE-2014-6271
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.
What to do
This CVE is being exploited in the wild (CISA Known Exploited Vulnerabilities, added 2022-01-28). If you run an affected version, patch or mitigate now.
Fixed builds are available from Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 14.04 | bash | Fixed | 4.3-7ubuntu1.1 | UBUNTU-CVE-2014-6271 |
| Debian 14 | bash | Fixed | 4.3-9.1 | DEBIAN-CVE-2014-6271 |
| Debian 13 | bash | Fixed | 4.3-9.1 | DEBIAN-CVE-2014-6271 |
| Debian 12 | bash | Fixed | 4.3-9.1 | DEBIAN-CVE-2014-6271 |
| Red Hat Enterprise Linux 7 | bash | Fixed | 0:4.2.45-5.el7_0.2 | RHSA-2014:1293 |
| Red Hat Enterprise Linux 7 | bash-doc | Fixed | 0:4.2.45-5.el7_0.2 | RHSA-2014:1293 |
| Red Hat Enterprise Linux 6 | bash | Fixed | 0:4.1.2-15.el6_5.1 | RHSA-2014:1293 |
| Red Hat Enterprise Linux 6 | bash-doc | Fixed | 0:4.1.2-15.el6_5.1 | RHSA-2014:1293 |
| Red Hat Enterprise Linux 5 | bash | Fixed | 0:3.2-33.el5.1 | RHSA-2014:1293 |
What the vendor says
As published in the CVE record by debian, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00034.html (vendor-advisory)
- http://marc.info/?l=bugtraq&m=141577137423233&w=2 (vendor-advisory)
- http://marc.info/?l=bugtraq&m=142719845423222&w=2 (vendor-advisory)
- http://marc.info/?l=bugtraq&m=141216668515282&w=2 (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2014-1295.html (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00037.html (vendor-advisory)
References
- https://www.exploit-db.com/exploits/37816/
- http://packetstormsecurity.com/files/128517/VMware-Security-Advisory-2014-0010.html
- http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00034.html
- http://www-01.ibm.com/support/docview.wss?uid=ssg1S1004897
- http://www-01.ibm.com/support/docview.wss?uid=swg21685749
- http://marc.info/?l=bugtraq&m=141577137423233&w=2
- http://marc.info/?l=bugtraq&m=142719845423222&w=2
- https://www.exploit-db.com/exploits/39918/
- http://marc.info/?l=bugtraq&m=141216668515282&w=2
- http://rhn.redhat.com/errata/RHSA-2014-1295.html
- http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00037.html
- https://securityblog.redhat.com/2014/09/24/bash-specially-crafted-environment-variables-code-injection-attack/
- https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk102673&src=securityAlerts
- http://marc.info/?l=bugtraq&m=141383138121313&w=2
- http://marc.info/?l=bugtraq&m=142721162228379&w=2
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.