CVE-2014-6271GNU Bourne-Again Shell (Bash) Arbitrary Code Execution Vulnerability
CVSS score
9.8
Critical
CVSS 3.1 from NVD
Exploit probability (EPSS)
100.0%
100.0% chance of exploitation in the next 30 days, higher than 100.0% of all CVEs.
CISA KEV
Actively exploited
Added to KEV on 28 Jan 2022.
US federal deadline to fix: 28 Jul 2022.
Official 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.
Source: NVD · CNA: security@debian.org
How to fix it, step by step
Treat it as urgent
Attackers are already exploiting this flaw: CISA added it to its Known Exploited Vulnerabilities list on 28 Jan 2022.
US federal agencies must fix it by 28 Jul 2022. It's a sensible deadline for everyone else too.
CISA's full instruction
Apply updates per vendor instructions.
Check whether you're affected
Find every system running GNU Bash, Arista Eos, SUSE Linux Enterprise Desktop, QNAP Qts, Mageia and compare its version with the affected versions.
Update to a fixed version
- Update Eos to 4.9.12, 4.10.9, 4.11.11, 4.12.9 or later, on the branch you run.
- Update Qts to 4.1.1 or later.
If you can't update right away
Apply the workaround or mitigation in the vendor's advisory until you can update:
Check for signs of compromise
Updating closes the flaw but doesn't remove an attacker who got in earlier. Review affected systems for unknown accounts, unusual logins and configuration changes, and use any indicators of compromise the vendor or CISA publish.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
| Affected products | Versions |
|---|---|
| GNU Bash | ≤ 4.3 |
| Arista Eos | ≥ 4.9.0, < 4.9.12 · ≥ 4.10.0, < 4.10.9 · ≥ 4.11.0, < 4.11.11 · ≥ 4.12.0, < 4.12.9 · ≥ 4.13.0, < 4.13.9 · ≥ 4.14.0, < 4.14.4f |
| Oracle Linux | 4 · 5 · 6 |
| QNAP Qts | < 4.1.1 · 4.1.1 |
| mageia Mageia | 3.0 · 4.0 |
| Red Hat Gluster Storage Server For On-premise | 2.1 |
| Red Hat Virtualization | 3.4 |
| Red Hat Enterprise Linux | 4.0 · 5.0 · 6.0 · 7.0 |
| Red Hat Enterprise Linux Desktop | 5.0 · 6.0 · 7.0 |
| Red Hat Enterprise Linux Eus | 5.9 · 6.4 · 6.5 · 7.3 · 7.4 · 7.5 |
| Red Hat Enterprise Linux For Ibm Z Systems | 5.9_s390x · 6.4_s390x · 6.5_s390x · 7.3_s390x · 7.4_s390x · 7.5_s390x |
| Red Hat Enterprise Linux For Power Big Endian | 5.0_ppc · 5.9_ppc · 6.0_ppc64 · 6.4_ppc64 · 7.0_ppc64 |
| Red Hat Enterprise Linux For Power Big Endian Eus | 6.5_ppc64 · 7.3_ppc64 · 7.4_ppc64 · 7.5_ppc64 · 7.6_ppc64 · 7.7_ppc64 |
| Red Hat Enterprise Linux For Scientific Computing | 6.0 · 7.0 |
| Red Hat Enterprise Linux Server | 5.0 · 6.0 · 7.0 |
| Red Hat Enterprise Linux Server Aus | 5.6 · 5.9 · 6.2 · 6.4 · 6.5 · 7.3 |
| Red Hat Enterprise Linux Server From Rhui | 5.0 · 6.0 · 7.0 |
| Red Hat Enterprise Linux Server Tus | 6.5 · 7.3 · 7.6 · 7.7 |
| Red Hat Enterprise Linux Workstation | 5.0 · 6.0 · 7.0 |
| SUSE Studio Onsite | 1.3 |
| opensuse Opensuse | 12.3 · 13.1 · 13.2 |
| SUSE Linux Enterprise Desktop | 11 · 12 |
| SUSE Linux Enterprise Server | 10 · 11 · 12 |
| SUSE Linux Enterprise Software Development Kit | 11 · 12 |
| Debian Debian Linux | 7.0 |
Weakness
- CWE-78 OS command injection
Timeline
- Published:
- Added to CISA KEV:
- Last modified:
Frequently asked questions
Is CVE-2014-6271 being exploited?
Yes. CISA added CVE-2014-6271 to its Known Exploited Vulnerabilities catalog on 28 Jan 2022, which means there is evidence of exploitation in the wild. Its EPSS score estimates a 100.0% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2014-6271?
CVE-2014-6271 has a CVSS 3.1 base score of 9.8 (critical).
Which versions are affected?
Gnu Bash (≤ 4.3), Arista Eos (≥ 4.9.0, < 4.9.12; ≥ 4.10.0, < 4.10.9; ≥ 4.11.0, < 4.11.11; ≥ 4.12.0, < 4.12.9; ≥ 4.13.0, < 4.13.9; ≥ 4.14.0, < 4.14.4f), Oracle Linux (4; 5; 6), QNAP Qts (< 4.1.1; 4.1.1), Mageia Mageia (3.0; 4.0), Red Hat Gluster Storage Server For On-premise (2.1)
Is there a patch for CVE-2014-6271?
The official record links to vendor advisories or patches; see “What to do” above.
References
- jvn.jp/en/jp/JVN55667175/index.html(Vendor Advisory)
- jvndb.jvn.jp/jvndb/JVNDB-2014-000126(Third Party Advisory, VDB Entry, Vendor Advisory)
- bugzilla.redhat.com/show_bug.cgi?id=1141597(Issue Tracking, Patch)
- lcamtuf.blogspot.com/2014/09/quick-notes-about-bash-bug-its-impact.html(Exploit, Issue Tracking, Third Party Advisory)
- packetstormsecurity.com/files/128517/VMware-Security-Advisory-2014-0010.html(Exploit, Third Party Advisory, VDB Entry)
- packetstormsecurity.com/files/128567/CA-Technologies-GNU-Bash-Shellshock.html(Exploit, Third Party Advisory, VDB Entry)
- packetstormsecurity.com/files/128573/Apache-mod_cgi-Remote-Command-Execution.html(Exploit, Third Party Advisory, VDB Entry)
- packetstormsecurity.com/files/137376/IPFire-Bash-Environment-Variable-Injection-Shellshock.html(Exploit, Third Party Advisory, VDB Entry)
- access.redhat.com/articles/1200223(Exploit, Third Party Advisory)
- access.redhat.com/node/1200223(Exploit, Third Party Advisory)
- securityblog.redhat.com/2014/09/24/bash-specially-crafted-environment-variables-code-injection-attack/(Exploit, Third Party Advisory)
- www.exploit-db.com/exploits/34879/(Exploit, Third Party Advisory, VDB Entry)
- www.exploit-db.com/exploits/37816/(Exploit, Third Party Advisory, VDB Entry)
- www.exploit-db.com/exploits/38849/(Exploit, Third Party Advisory, VDB Entry)
- www.exploit-db.com/exploits/39918/(Exploit, Third Party Advisory, VDB Entry)
- www.exploit-db.com/exploits/40619/(Exploit, Third Party Advisory, VDB Entry)
- www.exploit-db.com/exploits/40938/(Exploit, Third Party Advisory, VDB Entry)
- www.exploit-db.com/exploits/42938/(Exploit, Third Party Advisory, VDB Entry)
- advisories.mageia.org/MGASA-2014-0388.html(Third Party Advisory)
- archives.neohapsis.com/archives/bugtraq/2014-10/0101.html(Broken Link, Third Party Advisory)
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.