Patchfirst
CVE-2014-6271 KEVPublic exploit Critical · 9.8 EPSS >99.9%

GNU Bourne-Again Shell (Bash) Arbitrary Code Execution Vulnerability

GNU · Bourne-Again Shell (Bash)

Summary

GNU Bash through version 4.3 mishandles trailing strings after function definitions in environment variable values, a flaw in the Bourne-Again Shell (Bash) component that is known as ShellShock. An attacker who can supply a crafted environment across a privilege boundary, such as through the ForceCommand feature in OpenSSH sshd, the mod_cgi and mod_cgid modules in Apache HTTP Server, or scripts run by certain DHCP clients, can execute arbitrary code, and no authentication or user interaction is needed.

Official description · NVD

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.

Breakdown
76.0 / 100
Exploited
Yes, in CISA KEV
Reports
2
Tactics
3/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

First seen exploited 6 days after disclosure. Public exploit code (PoC-in-GitHub) was available the same day.

  1. DisclosedPublic exploit codePoC-in-GitHubday 0
  2. First seen exploitedVulnCheck KEV evidence+6 days
  3. Named in a threat reportblog.talosintelligence.com+5 yrs
  4. Added to CISA KEVEU database agrees+7 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. This CVECVE-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.
    CVE-2014-6278GNU Bash OS Command Injection30 Sep 2014KEV

techniques

3 , grouped by in kill-chain order 3

Initial AccessTA0001

External Remote Services T1133 Medium also Persistence
MITRE CTID mapping of the KEV entry · how it is exploited

CVE-2014-6271 allows environment variables set from service/HTTP requests on a serve (e.g. HTTP_COOKIE) in Bash shell that allows for spawning a child shell with the authority/privilege level of the parent shell to perform RCE of code provided by the adversary in the request.

Exploit Public-Facing Application T1190 Medium
MITRE CTID mapping of the KEV entry · how it is exploited

ExecutionTA0002

Unix Shell T1059.004 Medium
MITRE CTID mapping of the KEV entry · primary impact

Detection

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

Rules for this CVE

0 that reference CVE-2014-6271 directly.

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

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

What security researchers reported

Named in 2 threat reports
2 reportsCisco Talosboozallen.comApr 2019 · 1 undated

Reports are matched by finding the exact id CVE-2014-6271 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

171 links, grouped by NVD tag (170 duplicates merged)

Third Party Advisory 164

advisories.mageia.org/MGASA-2014-0388.htmlarchives.neohapsis.com/archives/bugtraq/2014-10/0101.htmlkb.juniper.net/InfoCenter/index?page=content&id=JSA10673lcamtuf.blogspot.com/2014/09/quick-notes-about-bash-bug-its-impact.htmllinux.oracle.com/errata/ELSA-2014-1293.htmllinux.oracle.com/errata/ELSA-2014-1294.htmllists.opensuse.org/opensuse-security-announce/2014-09/msg00028.htmllists.opensuse.org/opensuse-security-announce/2014-09/msg00029.html
Show 156 moreShow fewerlists.opensuse.org/opensuse-security-announce/2014-09/msg00034.htmllists.opensuse.org/opensuse-security-announce/2014-09/msg00037.htmllists.opensuse.org/opensuse-security-announce/2014-09/msg00040.htmllists.opensuse.org/opensuse-security-announce/2014-09/msg00044.htmllists.opensuse.org/opensuse-security-announce/2014-09/msg00049.htmllists.opensuse.org/opensuse-security-announce/2014-10/msg00004.htmllists.opensuse.org/opensuse-updates/2014-10/msg00023.htmllists.opensuse.org/opensuse-updates/2014-10/msg00025.htmlmarc.info/?l=bugtraq&m=141216207813411&w=2marc.info/?l=bugtraq&m=141216668515282&w=2marc.info/?l=bugtraq&m=141235957116749&w=2marc.info/?l=bugtraq&m=141319209015420&w=2marc.info/?l=bugtraq&m=141330425327438&w=2marc.info/?l=bugtraq&m=141330468527613&w=2marc.info/?l=bugtraq&m=141345648114150&w=2marc.info/?l=bugtraq&m=141383026420882&w=2marc.info/?l=bugtraq&m=141383081521087&w=2marc.info/?l=bugtraq&m=141383138121313&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=141694386919794&w=2marc.info/?l=bugtraq&m=141879528318582&w=2marc.info/?l=bugtraq&m=142113462216480&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=142546741516006&w=2marc.info/?l=bugtraq&m=142719845423222&w=2marc.info/?l=bugtraq&m=142721162228379&w=2marc.info/?l=bugtraq&m=142805027510172&w=2packetstormsecurity.com/files/128517/VMware-Security-Advisory-2014-0010.htmlpacketstormsecurity.com/files/128567/CA-Technologies-GNU-Bash-Shellshock.htmlpacketstormsecurity.com/files/128573/Apache-mod_cgi-Remote-Command-Execution.htmlpacketstormsecurity.com/files/137376/IPFire-Bash-Environment-Variable-Injection-Shellshock.htmlpacketstormsecurity.com/files/161107/SonicWall-SSL-VPN-Shellshock-Remote-Code-Execution.htmlrhn.redhat.com/errata/RHSA-2014-1293.htmlrhn.redhat.com/errata/RHSA-2014-1294.htmlrhn.redhat.com/errata/RHSA-2014-1295.htmlrhn.redhat.com/errata/RHSA-2014-1354.htmlseclists.org/fulldisclosure/2014/Oct/0secunia.com/advisories/58200secunia.com/advisories/59272secunia.com/advisories/59737secunia.com/advisories/59907secunia.com/advisories/60024secunia.com/advisories/60034secunia.com/advisories/60044secunia.com/advisories/60055secunia.com/advisories/60063secunia.com/advisories/60193secunia.com/advisories/60325secunia.com/advisories/60433secunia.com/advisories/60947secunia.com/advisories/61065secunia.com/advisories/61128secunia.com/advisories/61129secunia.com/advisories/61188secunia.com/advisories/61283secunia.com/advisories/61287secunia.com/advisories/61291secunia.com/advisories/61312secunia.com/advisories/61313secunia.com/advisories/61328secunia.com/advisories/61442secunia.com/advisories/61471secunia.com/advisories/61485secunia.com/advisories/61503secunia.com/advisories/61542secunia.com/advisories/61547secunia.com/advisories/61550secunia.com/advisories/61552secunia.com/advisories/61565secunia.com/advisories/61603secunia.com/advisories/61633secunia.com/advisories/61641secunia.com/advisories/61643secunia.com/advisories/61654secunia.com/advisories/61676secunia.com/advisories/61700secunia.com/advisories/61703secunia.com/advisories/61711secunia.com/advisories/61715secunia.com/advisories/61780secunia.com/advisories/61816secunia.com/advisories/61855secunia.com/advisories/61857secunia.com/advisories/61873secunia.com/advisories/62228secunia.com/advisories/62312secunia.com/advisories/62343support.apple.com/kb/HT6495support.novell.com/security/cve/CVE-2014-6271.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=swg21686084www-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=swg21686447www-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-5096315debian.org/security/2014/dsa-3032mandriva.com/security/advisories?name=MDVSA-2015:164novell.com/support/kb/doc.php?id=7015701novell.com/support/kb/doc.php?id=7015721oracle.com/technetwork/topics/security/bashcve-2014-7169-2317675.htmlqnap.com/i/en/support/con_show.php?cid=61securityfocus.com/archive/1/533593/100/0/threadedsecurityfocus.com/bid/70103ubuntu.com/usn/USN-2362-1vmware.com/security/advisories/VMSA-2014-0010.htmlwebsense.com/support/article/kbarticle/Vulnerabilities-resolved-in-TRITON-APX-Version-8-0access.redhat.com/articles/1200223access.redhat.com/node/1200223help.ecostruxureit.com/display/public/UADCO8x/StruxureWare+Data+Center+Operation+Software+Vulnerability+Fixeskb.bluecoat.com/index?page=content&id=SA82kb.juniper.net/InfoCenter/index?page=content&id=JSA10648kc.mcafee.com/corporate/index?page=content&id=SB10085securityblog.redhat.com/2014/09/24/bash-specially-crafted-environment-variables-code-injection-attack/support.apple.com/kb/HT6535support.citrix.com/article/CTX200217support.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/34879/exploit-db.com/exploits/37816/exploit-db.com/exploits/38849/exploit-db.com/exploits/39918/exploit-db.com/exploits/40619/exploit-db.com/exploits/40938/exploit-db.com/exploits/42938/suse.com/support/shellshock/
↑ ↓ chooseEnter openEsc close