Patchfirst
CVE-2014-6278 KEVPublic exploit High · 8.8 EPSS 99.7%

GNU Bash OS Command Injection Vulnerability

GNU · GNU Bash

Summary

GNU Bash (through 4.3 bash43-026) fails to properly parse function definitions contained in environment variable values, which is an injection flaw in how Bash processes its inherited environment. An attacker with network access can execute arbitrary commands by supplying a crafted environment, as demonstrated through OpenSSH sshd's ForceCommand feature, Apache HTTP Server's mod_cgi and mod_cgid modules, and DHCP client scripts, in any setting where environment variables cross a privilege boundary into Bash execution, and the attack requires user interaction and no authentication.

Official description · NVD

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.

Breakdown
73.0 / 100
Exploited
Yes, in CISA KEV
Reports
1
Tactics
1/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. What they do

First seen exploited 3 years after disclosure. Public exploit code (Metasploit) was available 6 days before disclosure.

  1. Public exploit codeMetasploit6 days before
  2. Disclosedday 0
  3. First seen exploitedVulnCheck KEV evidence+3 yrs
  4. Added to CISA KEVEU database agrees+11 yrs

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

See the family tree

A fix was bypassed or incomplete 3 times over 6 days.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. CVE-2014-6271GNU Bourne-Again Shell (Bash) Arbitrary Code Execution24 Sep 2014KEV
  2. incomplete fixHigh

    Why these are linked:

    • Stated in the CVE textNOTE: 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.
    • Stated in the CVE textNOTE: this vulnerability exists because of an incomplete fix for CVE-2014-6271.
    • Similar weakness in the same product (machine-matched)same product + CWE + description similarity
    CVE-2014-7169GNU Bourne-Again Shell (Bash) Arbitrary Code Execution25 Sep 2014KEV
  3. incomplete fixHigh

    Why these are linked:

    • Stated in the CVE textNOTE: this vulnerability exists because of an incomplete fix for CVE-2014-6271 and CVE-2014-7169.
    CVE-2014-6277GNU Bash through 4.3 bash43-026 does not properly parse function…27 Sep 2014
  4. incomplete fixHigh

    Why these are linked:

    • Stated in the CVE textNOTE: this vulnerability exists because of an incomplete fix for CVE-2014-6271, CVE-2014-7169, and CVE-2014-6277.
    This CVECVE-2014-6278GNU Bash OS Command Injection30 Sep 2014KEV

techniques

1 , grouped by in kill-chain order, 2 cited passages 1

ExecutionTA0002

Unix Shell T1059.004 Medium
AI mapping from the description · primary impact

arbitrary command execution through Bash shell

allows remote attackers to execute arbitrary commands via a crafted environment
From the official description (NVD) Original (opens in a new tab) ↗
Lower-confidence links (2)

These come from early or generic mappings, text matching, or contradict this CVE’s details (for example a public-facing technique on a bug that needs a user to open a file). Shown for completeness.

  • Exploit Public-Facing ApplicationT1190 needs user interaction; not a public-facing exploit
  • Exploitation for Client ExecutionT1203 CTID attack_to_cve Phase 1 "Uncategorized" mapping (not staged by impact)

Detection

0 rules for this CVE · 19 general rules for its techniques

Rules for this CVE

0 that reference CVE-2014-6278 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

General rules for this CVE’s techniques

These detect the technique in general, not this specific vulnerability.

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

What security researchers reported

Named in 1 threat report
1 reportboozallen.com

Reports are matched by finding the exact id CVE-2014-6278 in their text; nobody has reviewed the match. One passage is shown per report, at most 320 characters, linked to the original.

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

111 links, grouped by NVD tag (110 duplicates merged)

Third Party Advisory 69

jvn.jp/en/jp/JVN55667175/index.htmljvndb.jvn.jp/jvndb/JVNDB-2014-000126lcamtuf.blogspot.com/2014/10/bash-bug-how-we-finally-cracked.htmllinux.oracle.com/errata/ELSA-2014-3093linux.oracle.com/errata/ELSA-2014-3094marc.info/?l=bugtraq&m=141330468527613&w=2marc.info/?l=bugtraq&m=141345648114150&w=2marc.info/?l=bugtraq&m=141383026420882&w=2
Show 61 moreShow fewermarc.info/?l=bugtraq&m=141383081521087&w=2marc.info/?l=bugtraq&m=141383196021590&w=2marc.info/?l=bugtraq&m=141383244821813&w=2marc.info/?l=bugtraq&m=141383304022067&w=2marc.info/?l=bugtraq&m=141383353622268&w=2marc.info/?l=bugtraq&m=141383465822787&w=2marc.info/?l=bugtraq&m=141450491804793&w=2marc.info/?l=bugtraq&m=141576728022234&w=2marc.info/?l=bugtraq&m=141577137423233&w=2marc.info/?l=bugtraq&m=141577241923505&w=2marc.info/?l=bugtraq&m=141577297623641&w=2marc.info/?l=bugtraq&m=141585637922673&w=2marc.info/?l=bugtraq&m=141879528318582&w=2marc.info/?l=bugtraq&m=142118135300698&w=2marc.info/?l=bugtraq&m=142358026505815&w=2marc.info/?l=bugtraq&m=142358078406056&w=2marc.info/?l=bugtraq&m=142721162228379&w=2packetstormsecurity.com/files/128567/CA-Technologies-GNU-Bash-Shellshock.htmlpacketstormsecurity.com/files/137344/Sun-Secure-Global-Desktop-Oracle-Global-Desktop-Shellshock.htmlsecunia.com/advisories/62343support.novell.com/security/cve/CVE-2014-6278.htmltools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20140926-bashwww-01.ibm.com/support/docview.wss?uid=isg3T1021272www-01.ibm.com/support/docview.wss?uid=isg3T1021279www-01.ibm.com/support/docview.wss?uid=isg3T1021361www-01.ibm.com/support/docview.wss?uid=ssg1S1004879www-01.ibm.com/support/docview.wss?uid=ssg1S1004897www-01.ibm.com/support/docview.wss?uid=ssg1S1004898www-01.ibm.com/support/docview.wss?uid=ssg1S1004915www-01.ibm.com/support/docview.wss?uid=swg21685541www-01.ibm.com/support/docview.wss?uid=swg21685604www-01.ibm.com/support/docview.wss?uid=swg21685733www-01.ibm.com/support/docview.wss?uid=swg21685749www-01.ibm.com/support/docview.wss?uid=swg21685914www-01.ibm.com/support/docview.wss?uid=swg21686131www-01.ibm.com/support/docview.wss?uid=swg21686246www-01.ibm.com/support/docview.wss?uid=swg21686445www-01.ibm.com/support/docview.wss?uid=swg21686479www-01.ibm.com/support/docview.wss?uid=swg21686494www-01.ibm.com/support/docview.wss?uid=swg21687079www-947.ibm.com/support/entry/portal/docdisplay?lndocid=MIGR-5096315mandriva.com/security/advisories?name=MDVSA-2015:164novell.com/support/kb/doc.php?id=7015721oracle.com/technetwork/topics/security/bashcve-2014-7169-2317675.htmlqnap.com/i/en/support/con_show.php?cid=61ubuntu.com/usn/USN-2380-1vmware.com/security/advisories/VMSA-2014-0010.htmlbugzilla.redhat.com/show_bug.cgi?id=1147414kb.bluecoat.com/index?page=content&id=SA82kb.juniper.net/InfoCenter/index?page=content&id=JSA10648kc.mcafee.com/corporate/index?page=content&id=SB10085security-tracker.debian.org/tracker/CVE-2014-6278support.citrix.com/article/CTX200217support.citrix.com/article/CTX200223support.f5.com/kb/en-us/solutions/public/15000/600/sol15629.htmlsupport.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-c04497075support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-c04518183supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk102673&src=securityAlertsarista.com/en/support/advisories-notices/security-advisories/1008-security-advisory-0006exploit-db.com/exploits/39568/exploit-db.com/exploits/39887/
↑ ↓ chooseEnter openEsc close