CVE-2014-6271
GNU Bourne-Again Shell (Bash) Arbitrary Code Execution Vulnerability
Does this matter?
Known to be exploited in the wild (CISA KEV, CISA remediation deadline 28 July 2022). Treat as an emergency change: patch or isolate now, then hunt for prior compromise.
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.
- CVSS 3.1
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 100.00% probability · 100th percentile
- Public exploits
- 21 in Exploit-DB · verified · first 25 September 2014
- CISA KEV
- Listed 28 January 2022 · due 28 July 2022
- Weakness
- CWE-78
- Affected
- gnu/bash · arista/eos · oracle/linux · qnap/qts · mageia/mageia · redhat/gluster storage server for on-premise · redhat/virtualization · redhat/enterprise linux · redhat/enterprise linux desktop · redhat/enterprise linux eus · redhat/enterprise linux for ibm z systems · redhat/enterprise linux for power big endian · redhat/enterprise linux for power big endian eus · redhat/enterprise linux for scientific computing · redhat/enterprise linux server · redhat/enterprise linux server aus · redhat/enterprise linux server from rhui · redhat/enterprise linux server tus · redhat/enterprise linux workstation · suse/studio onsite · +40 more
- Source
- security@debian.org
EPSS 100.0% since 30 October 2026; no change recorded yet. The dashed line is the ten per cent mark our analysts treat as “patch before the next change window”. Points are recorded when the score first appears and whenever it moves by a percentage point or more.
CISA notes
Apply updates per vendor instructions. https://nvd.nist.gov/vuln/detail/CVE-2014-6271
Public exploits (21)
Entries in Exploit-DB that cite this CVE. Links go to the Exploit-DB page and to the file in the public repository; nothing is hosted here. A verified tick means the Exploit-DB team confirmed the exploit works against the stated version.
| EDB-ID | Title | Type | Published | Verified |
|---|---|---|---|---|
| EDB-42938source ↗ | Qmail SMTP - Bash Environment Variable Injection (Metasploit)linux · Metasploit | remote | 2 October 2017 | yes |
| EDB-40938source ↗ | RedStar 3.0 Server - 'Shellshock' 'BEAM' / 'RSSMON' Command Injectionlinux · Hacker Fantastic | local | 18 December 2016 | yes |
| EDB-40619source ↗ | TrendMicro InterScan Web Security Virtual Appliance - 'Shellshock' Remote Command Injectionhardware · Hacker Fantastic | remote | 21 October 2016 | no |
| EDB-39918source ↗ | IPFire - 'Shellshock' Bash Environment Variable Command Injection (Metasploit)cgi · Metasploit | remote | 10 June 2016 | yes |
| EDB-38849source ↗ | Advantech Switch - 'Shellshock' Bash Environment Variable Command Injection (Metasploit)cgi · Metasploit | remote | 2 December 2015 | yes |
| EDB-37816source ↗ | Cisco Unified Communications Manager - Multiple Vulnerabilitiesmultiple · Bernhard Mueller | webapps | 18 August 2015 | no |
| EDB-36609source ↗ | Kemp Load Master 7.1.16 - Multiple Vulnerabilitiesmultiple · Roberto Suggi Liverani | webapps | 2 April 2015 | no |
| EDB-36504source ↗ | QNAP - Web Server Remote Code Execution via Bash Environment Variable Code Injection (Metasploit)hardware · Patrick Pellegrino | remote | 26 March 2015 | no |
| EDB-36503source ↗ | QNAP - Admin Shell via Bash Environment Variable Code Injection (Metasploit)hardware · Patrick Pellegrino | remote | 26 March 2015 | no |
| EDB-35146source ↗ | PHP < 5.6.2 - 'Shellshock' Safe Mode / disable_functions Bypass / Command Injectionphp · Ryan King (Starfall) | webapps | 3 November 2014 | no |
| EDB-35115source ↗ | CUPS Filter - Bash Environment Variable Code Injection (Metasploit)linux · Metasploit | remote | 29 October 2014 | yes |
| EDB-34900source ↗ | Apache mod_cgi - 'Shellshock' Remote Command Injectionlinux · Federico Galatolo | remote | 6 October 2014 | yes |
| EDB-34896source ↗ | Postfix SMTP 4.2.x < 4.2.48 - 'Shellshock' Remote Command Injectionlinux · Phil Blank | remote | 6 October 2014 | yes |
| EDB-34895source ↗ | Bash CGI - 'Shellshock' Remote Command Injection (Metasploit)cgi · Fady Mohammed Osman | webapps | 6 October 2014 | yes |
| EDB-34879source ↗ | OpenVPN 2.2.29 - 'Shellshock' Remote Command Injectionlinux · hobbily plunt | remote | 4 October 2014 | no |
| EDB-34862source ↗ | Pure-FTPd - External Authentication Bash Environment Variable Code Injection (Metasploit)linux · Metasploit | remote | 2 October 2014 | yes |
| EDB-34860source ↗ | GNU bash 4.3.11 - Environment Variable dhclientlinux · @0x00string | remote | 2 October 2014 | no |
| EDB-34839source ↗ | IPFire - CGI Web Interface (Authenticated) Bash Environment Variable Code Injectioncgi · Claudio Viviani | webapps | 1 October 2014 | yes |
| EDB-34777source ↗ | GNU Bash - Environment Variable Command Injection (Metasploit)cgi · Shaun Colley | remote | 25 September 2014 | yes |
| EDB-34766source ↗ | Bash - 'Shellshock' Environment Variables Command Injectionlinux · Prakhar Prasad & Subho Halder | remote | 25 September 2014 | yes |
| EDB-34765source ↗ | GNU Bash - 'Shellshock' Environment Variable Command Injectionlinux · Stephane Chazelas | remote | 25 September 2014 | yes |
References
- http://advisories.mageia.org/MGASA-2014-0388.htmlThird Party Advisory
- http://archives.neohapsis.com/archives/bugtraq/2014-10/0101.htmlBroken Link, Third Party Advisory
- http://jvn.jp/en/jp/JVN55667175/index.htmlVendor Advisory
- http://jvndb.jvn.jp/jvndb/JVNDB-2014-000126Third Party Advisory, VDB Entry, Vendor Advisory
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10673Third Party Advisory
- http://lcamtuf.blogspot.com/2014/09/quick-notes-about-bash-bug-its-impact.htmlExploit, Issue Tracking, Third Party Advisory
- http://linux.oracle.com/errata/ELSA-2014-1293.htmlThird Party Advisory
- http://linux.oracle.com/errata/ELSA-2014-1294.htmlThird Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00028.htmlMailing List, Third Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00029.htmlMailing List, Third Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00034.htmlMailing List, Third Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00037.htmlMailing List, Third Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00040.htmlMailing List, Third Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00044.htmlMailing List, Third Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00049.htmlMailing List, Third Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2014-10/msg00004.htmlMailing List, Third Party Advisory
- http://lists.opensuse.org/opensuse-updates/2014-10/msg00023.htmlMailing List, Third Party Advisory
- http://lists.opensuse.org/opensuse-updates/2014-10/msg00025.htmlMailing List, Third Party Advisory
- http://marc.info/?l=bugtraq&m=141216207813411&w=2Mailing List, Third Party Advisory
- http://marc.info/?l=bugtraq&m=141216668515282&w=2Mailing List, Third Party Advisory
- http://marc.info/?l=bugtraq&m=141235957116749&w=2Mailing List, Third Party Advisory
- http://marc.info/?l=bugtraq&m=141319209015420&w=2Mailing List, Third Party Advisory
- http://marc.info/?l=bugtraq&m=141330425327438&w=2Mailing List, Third Party Advisory
- http://marc.info/?l=bugtraq&m=141330468527613&w=2Mailing List, Third Party Advisory
- http://marc.info/?l=bugtraq&m=141345648114150&w=2Mailing List, Third Party Advisory
- http://marc.info/?l=bugtraq&m=141383026420882&w=2Mailing List, Third Party Advisory
- http://marc.info/?l=bugtraq&m=141383081521087&w=2Mailing List, Third Party Advisory
- http://marc.info/?l=bugtraq&m=141383138121313&w=2Mailing List, Third Party Advisory
- http://marc.info/?l=bugtraq&m=141383196021590&w=2Mailing List, Third Party Advisory
- http://marc.info/?l=bugtraq&m=141383244821813&w=2Mailing List, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.