CVE-2014-6278: GNU Bash OS Command Injection Vulnerability
GNU · GNU Bash · NVD published 2014-09-30 · posted 2025-10-02 · last modified 2026-06-17
What it is
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 commands 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, CVE-2014-7169, and CVE-2014-6277.
| Weakness | CWE-78 |
|---|---|
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (source: 134c704f-9b21-4f2e-91b3-4a467353bcc0) |
| CISA due date | 2025-10-23 (for US federal agencies under BOD; a good deadline for everyone) |
| ATT&CK tactics | Initial Access → Execution |
Exploitation evidence
First exploit evidence seen: 2014-09-24 (earliest date across the sources below).
Exploited in the wild
- CISA KEV: listed since 2025-10-02. Source
Public exploit code
Metasploit
auxiliary/scanner/http/apache_mod_cgi_bash_env: Apache mod_cgi Bash Environment Variable Injection (Shellshock) Scanner (disclosure 2014-09-24)exploit/multi/http/apache_mod_cgi_bash_env_exec: Apache mod_cgi Bash Environment Variable Code Injection (Shellshock) (disclosure 2014-09-24)exploit/multi/http/cups_bash_env_exec: CUPS Filter Bash Environment Variable Code Injection (Shellshock) (disclosure 2014-09-24)
Exploit-DB
- EDB-36933: dhclient 4.1 - Bash Environment Variable Command Injection (Shellshock) (2014-09-29, verified)
- EDB-34860: GNU bash 4.3.11 - Environment Variable dhclient (2014-10-02)
- EDB-34900: Apache mod_cgi - 'Shellshock' Remote Command Injection (2014-10-06, verified)
- EDB-39568: Cisco UCS Manager 2.1(1b) - Remote Command Injection (Shellshock) (2016-03-16)
- EDB-39887: Sun Secure Global Desktop and Oracle Global Desktop 4.61.915 - Command Injection (Shellshock) (2016-06-06)
Sources: CISA KEV · Rapid7 Metasploit Framework module metadata · Exploit-DB (OffSec).
Defend the Chain
The attack chain for CVE-2014-6278 laid across the MITRE ATT&CK Enterprise tactics. Solid cards come from the MITRE CTID KEV mappings; dashed cards are inferred by CVERadar from the CWE or description. Correct defences are real ATT&CK mitigations for that technique.
Pick a red technique card on the board, then choose the defence that stops it.
Defend against T1190 Exploit Public-Facing Application Inferred
Inferred from CWE CWE-78
How to fix it
CISA required action
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. (source: CISA KEV)
Fixed versions
NVD does not list a fixed version for this CVE. Use the vendor advisory below.
Derived from the NVD CPE configuration (versionEndExcluding / versionEndIncluding). Always confirm with the vendor advisory.
Vendor advisories and patches
- http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-027 (CISA KEV notes)
- https://support.broadcom.com/web/ecx/support-content-notification/-/external/content/SecurityAdvisories/0/23467 (CISA KEV notes)
- https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20140926-bash (CISA KEV notes)
- https://www.ibm.com/support/pages/security-bulletin-update-vulnerabilities-bash-affect-aix-toolbox-linux-applications-cve-2014-6271-cve-2014-6277-cve-2014-6278-cve-2014-7169-cve-2014-7186-and-cve-2014-7187 (CISA KEV notes)
- http://lcamtuf.blogspot.com/2014/09/bash-bug-apply-unofficial-patch-now.html (Patch, Third Party Advisory)
- https://www.suse.com/support/shellshock/ (Vendor Advisory)
MITRE ATT&CK mitigations for this chain
- M1048 Application Isolation and Sandboxing (for T1190) : Application isolation will limit what other processes and system features the exploited target can access.
- M1037 Filter Network Traffic (for T1190) : Restrict outbound network traffic from public-facing servers to prevent unauthorized connections from initiating communications with attacker-controlled infrastructure. While this may not prevent the initial exploitation, it limits the attacker's ability to verify and control the compromised server post-exploit, reduci
- M1030 Network Segmentation (for T1190) : Segment externally facing servers and services from the rest of the network with a DMZ or on separate hosting infrastructure.
- M1016 Vulnerability Scanning (for T1190) : Regularly scan externally facing systems for vulnerabilities and establish procedures to rapidly patch systems when critical vulnerabilities are discovered through scanning and through public disclosure.
- M1026 Privileged Account Management (for T1190, T1059) : Use least privilege for service accounts will limit what permissions the exploited process gets on the rest of the system.
- M1050 Exploit Protection (for T1190) : Web Application Firewalls may be used to limit exposure of applications to prevent exploit traffic from reaching the application.
- M1035 Limit Access to Resource Over Network (for T1190) : Ensure that all publicly exposed services are actually intended to be so, and restrict access to any that should only be available internally.
- M1051 Update Software (for T1190) : Update software regularly by employing patch management for externally exposed applications.
- M1033 Limit Software Installation (for T1059) : Prevent user installation of unrequired command and scripting interpreters.
- M1045 Code Signing (for T1059) : Where possible, only permit execution of signed scripts.
Detection Generic guidance
- Initial Access: Alert on unusual requests to the affected service (odd paths, oversized payloads, exploit strings) in WAF, reverse-proxy and application logs.
- Execution: Watch for the service process spawning shells or script interpreters (cmd.exe, powershell, sh, bash, python) via EDR process-tree rules.
Response checklist Generic guidance
- Inventory: find every instance of the affected product and version (include internet-facing and forgotten ones).
- Patch or mitigate per the vendor advisory; if you cannot patch, remove internet exposure or apply the vendor workaround.
- Assume compromise if the system was exposed before patching: hunt for the indicators in the advisory and review logs back to the disclosure date.
- Rotate credentials and secrets stored on or used by the affected system if compromise cannot be ruled out.
Sources
- NVD: CVE-2014-6278
- CVE.org record
- CISA Known Exploited Vulnerabilities catalog
- FIRST EPSS (2026-10-24)
- http://jvn.jp/en/jp/JVN55667175/index.html (Third Party Advisory)
- http://jvndb.jvn.jp/jvndb/JVNDB-2014-000126 (Third Party Advisory)
- http://lcamtuf.blogspot.com/2014/10/bash-bug-how-we-finally-cracked.html (Third Party Advisory)
- http://linux.oracle.com/errata/ELSA-2014-3093 (Third Party Advisory)
- http://linux.oracle.com/errata/ELSA-2014-3094 (Third Party Advisory)
- http://lists.opensuse.org/opensuse-security-announce/2014-10/msg00004.html (Mailing List)
- http://lists.opensuse.org/opensuse-updates/2014-10/msg00025.html (Mailing List)
- http://marc.info/?l=bugtraq&m=141330468527613&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=141345648114150&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=141383026420882&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=141383081521087&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=141383196021590&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=141383244821813&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=141383304022067&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=141383353622268&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=141383465822787&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=141450491804793&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=141576728022234&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=141577137423233&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=141577241923505&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=141577297623641&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=141585637922673&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=141879528318582&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=142118135300698&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=142358026505815&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=142358078406056&w=2 (Third Party Advisory)
- http://marc.info/?l=bugtraq&m=142721162228379&w=2 (Third Party Advisory)
- http://packetstormsecurity.com/files/128567/CA-Technologies-GNU-Bash-Shellshock.html (Third Party Advisory)
- http://packetstormsecurity.com/files/137344/Sun-Secure-Global-Desktop-Oracle-Global-Desktop-Shellshock.html (Third Party Advisory)
- http://secunia.com/advisories/58200 (Broken Link)