CVEdetails.com the ultimate security vulnerability data source
(e.g.: CVE-2009-1234 or 2010-1234 or 20101234)
Log In   Register
Vulnerability Feeds & WidgetsNew   www.itsecdb.com  

Vulnerability Details : CVE-2014-6271

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.
Publish Date : 2014-09-24 Last Update Date : 2019-10-09
Search Twitter   Search YouTube   Search Google

- CVSS Scores & Vulnerability Types

CVSS Score
10.0
Confidentiality Impact Complete (There is total information disclosure, resulting in all system files being revealed.)
Integrity Impact Complete (There is a total compromise of system integrity. There is a complete loss of system protection, resulting in the entire system being compromised.)
Availability Impact Complete (There is a total shutdown of the affected resource. The attacker can render the resource completely unavailable.)
Access Complexity Low (Specialized access conditions or extenuating circumstances do not exist. Very little knowledge or skill is required to exploit. )
Authentication Not required (Authentication is not required to exploit the vulnerability.)
Gained Access None
Vulnerability Type(s) Execute Code
CWE ID 78

- Related OVAL Definitions

Title Definition Id Class Family
DSA-3032-1 bash - security update oval:org.mitre.oval:def:26642 unix
DSA-3035-1 bash - security update oval:org.mitre.oval:def:26665 unix
ELSA-2014-1293 -- bash security update (Critical) oval:org.mitre.oval:def:26923 unix
ELSA-2014-1294 -- bash security update (Critical) oval:org.mitre.oval:def:26685 unix
ELSA-2014-1306 -- bash security update (Important) oval:org.mitre.oval:def:27118 unix
RHSA-2014:1293: bash security update (Critical) oval:org.mitre.oval:def:26521 unix
RHSA-2014:1293: bash security update (Critical) oval:com.redhat.rhsa:def:20141293 unix
SUSE-SU-2014:1259-1 -- bash (important) oval:org.mitre.oval:def:27981 unix
SUSE-SU-2014:1247-1 -- Security update for bash oval:org.mitre.oval:def:26631 unix
SUSE-SU-2014:1260-1 -- bash (critical) oval:org.mitre.oval:def:27830 unix
SUSE-SU-2014:1214-1 -- Security update for bash oval:org.mitre.oval:def:26821 unix
SUSE-SU-2014:1213-1 -- Security update for bash oval:org.mitre.oval:def:26797 unix
USN-2362-1 -- bash vulnerability oval:org.mitre.oval:def:26539 unix
VMware product updates address critical Bash security vulnerabilities oval:org.mitre.oval:def:28331 unix
Vulnerability affecting GNU Bash oval:org.mitre.oval:def:26764 unix
OVAL (Open Vulnerability and Assessment Language) definitions define exactly what should be done to verify a vulnerability or a missing patch. Check out the OVAL definitions if you want to learn what you should do to verify a vulnerability.

- Products Affected By CVE-2014-6271

# Product Type Vendor Product Version Update Edition Language
1 Application GNU Bash 1.14.0 Version Details Vulnerabilities
2 Application GNU Bash 1.14.1 Version Details Vulnerabilities
3 Application GNU Bash 1.14.2 Version Details Vulnerabilities
4 Application GNU Bash 1.14.3 Version Details Vulnerabilities
5 Application GNU Bash 1.14.4 Version Details Vulnerabilities
6 Application GNU Bash 1.14.5 Version Details Vulnerabilities
7 Application GNU Bash 1.14.6 Version Details Vulnerabilities
8 Application GNU Bash 1.14.7 Version Details Vulnerabilities
9 Application GNU Bash 2.0 Version Details Vulnerabilities
10 Application GNU Bash 2.01 Version Details Vulnerabilities
11 Application GNU Bash 2.01.1 Version Details Vulnerabilities
12 Application GNU Bash 2.02 Version Details Vulnerabilities
13 Application GNU Bash 2.02.1 Version Details Vulnerabilities
14 Application GNU Bash 2.03 Version Details Vulnerabilities
15 Application GNU Bash 2.04 Version Details Vulnerabilities
16 Application GNU Bash 2.05 Version Details Vulnerabilities
17 Application GNU Bash 2.05 A Version Details Vulnerabilities
18 Application GNU Bash 2.05 B Version Details Vulnerabilities
19 Application GNU Bash 3.0 Version Details Vulnerabilities
20 Application GNU Bash 3.0.16 Version Details Vulnerabilities
21 Application GNU Bash 3.1 Version Details Vulnerabilities
22 Application GNU Bash 3.2 Version Details Vulnerabilities
23 Application GNU Bash 3.2.48 Version Details Vulnerabilities
24 Application GNU Bash 4.0 Version Details Vulnerabilities
25 Application GNU Bash 4.0 RC1 Version Details Vulnerabilities
26 Application GNU Bash 4.1 Version Details Vulnerabilities
27 Application GNU Bash 4.2 Version Details Vulnerabilities
28 Application GNU Bash 4.3 Version Details Vulnerabilities

- Number Of Affected Versions By Product

Vendor Product Vulnerable Versions
GNU Bash 28

- References For CVE-2014-6271

https://www.suse.com/support/shellshock/ CONFIRM
https://www.exploit-db.com/exploits/40938/
EXPLOIT-DB 40938
http://seclists.org/fulldisclosure/2014/Oct/0
FULLDISC 20141001 FW: NEW VMSA-2014-0010 - VMware product updates address critical Bash security vulnerabilities
https://www.exploit-db.com/exploits/39918/
EXPLOIT-DB 39918
https://www.exploit-db.com/exploits/34879/
EXPLOIT-DB 34879
https://www.exploit-db.com/exploits/37816/
EXPLOIT-DB 37816
http://advisories.mageia.org/MGASA-2014-0388.html CONFIRM
http://archives.neohapsis.com/archives/bugtraq/2014-10/0101.html
APPLE APPLE-SA-2014-10-16-1
http://jvn.jp/en/jp/JVN55667175/index.html
JVN JVN#55667175
http://lists.opensuse.org/opensuse-security-announce/2014-10/msg00004.html
SUSE SUSE-SU-2014:1287
https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk102673&src=securityAlerts CONFIRM
https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-c04518183 CONFIRM
https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-c04497075 CONFIRM
https://support.f5.com/kb/en-us/solutions/public/15000/600/sol15629.html CONFIRM
https://support.citrix.com/article/CTX200223 CONFIRM
https://support.citrix.com/article/CTX200217 CONFIRM
https://support.apple.com/kb/HT6535 CONFIRM
https://securityblog.redhat.com/2014/09/24/bash-specially-crafted-environment-variables-code-injection-attack/ CONFIRM
https://kc.mcafee.com/corporate/index?page=content&id=SB10085 CONFIRM
https://kb.juniper.net/InfoCenter/index?page=content&id=JSA10648 CONFIRM
https://kb.bluecoat.com/index?page=content&id=SA82 CONFIRM
https://help.ecostruxureit.com/display/public/UADCO8x/StruxureWare+Data+Center+Operation+Software+Vulnerability+Fixes CONFIRM
https://bugzilla.redhat.com/show_bug.cgi?id=1141597 CONFIRM
https://access.redhat.com/node/1200223 CONFIRM
https://access.redhat.com/articles/1200223 CONFIRM
http://www-01.ibm.com/support/docview.wss?uid=swg21686246 CONFIRM
http://www-01.ibm.com/support/docview.wss?uid=swg21686445 CONFIRM
http://www-01.ibm.com/support/docview.wss?uid=swg21686447 CONFIRM
http://www-01.ibm.com/support/docview.wss?uid=swg21686479 CONFIRM
http://www-01.ibm.com/support/docview.wss?uid=swg21686494 CONFIRM
http://www-01.ibm.com/support/docview.wss?uid=swg21687079 CONFIRM
http://www-947.ibm.com/support/entry/portal/docdisplay?lndocid=MIGR-5096315 CONFIRM
http://www.securityfocus.com/archive/1/533593/100/0/threaded
BUGTRAQ 20141001 NEW VMSA-2014-0010 - VMware product updates address critical Bash security vulnerabilities
http://www.securityfocus.com/bid/70103
BID 70103 GNU Bash CVE-2014-6271 Remote Code Execution Vulnerability Release Date:2016-01-12
http://www.ubuntu.com/usn/USN-2362-1
UBUNTU USN-2362-1
http://www.us-cert.gov/ncas/alerts/TA14-268A
CERT TA14-268A
http://www.vmware.com/security/advisories/VMSA-2014-0010.html CONFIRM
http://www.websense.com/support/article/kbarticle/Vulnerabilities-resolved-in-TRITON-APX-Version-8-0 CONFIRM
http://www-01.ibm.com/support/docview.wss?uid=isg3T1021272 CONFIRM
http://www-01.ibm.com/support/docview.wss?uid=isg3T1021279 CONFIRM
http://www-01.ibm.com/support/docview.wss?uid=swg21686131 CONFIRM
http://www-01.ibm.com/support/docview.wss?uid=swg21686084 CONFIRM
http://www-01.ibm.com/support/docview.wss?uid=swg21685541 CONFIRM
http://marc.info/?l=bugtraq&m=141383081521087&w=2
HP HPSBMU03144
http://marc.info/?l=bugtraq&m=141383138121313&w=2
HP HPSBST03131
http://marc.info/?l=bugtraq&m=141383196021590&w=2
HP HPSBST03129
http://marc.info/?l=bugtraq&m=141383244821813&w=2
HP HPSBGN03142
http://www-01.ibm.com/support/docview.wss?uid=swg21685749 CONFIRM
http://marc.info/?l=bugtraq&m=141216668515282&w=2
HP HPSBHF03119
http://marc.info/?l=bugtraq&m=141235957116749&w=2
HP HPSBHF03124
http://marc.info/?l=bugtraq&m=141319209015420&w=2
HP HPSBST03122
http://www-01.ibm.com/support/docview.wss?uid=ssg1S1004897 CONFIRM
http://www-01.ibm.com/support/docview.wss?uid=ssg1S1004898 CONFIRM
http://www-01.ibm.com/support/docview.wss?uid=ssg1S1004879 CONFIRM
http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00028.html
SUSE SUSE-SU-2014:1212
http://www-01.ibm.com/support/docview.wss?uid=isg3T1021361 CONFIRM
http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00040.html
SUSE openSUSE-SU-2014:1238
http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00044.html
SUSE openSUSE-SU-2014:1254
http://www.qnap.com/i/en/support/con_show.php?cid=61 CONFIRM
http://www-01.ibm.com/support/docview.wss?uid=swg21685733 CONFIRM
http://www.novell.com/support/kb/doc.php?id=7015721 CONFIRM
http://www.oracle.com/technetwork/topics/security/bashcve-2014-7169-2317675.html CONFIRM
http://www.mandriva.com/security/advisories?name=MDVSA-2015:164
MANDRIVA MDVSA-2015:164
http://www.novell.com/support/kb/doc.php?id=7015701 CONFIRM
http://www.kb.cert.org/vuls/id/252743
CERT-VN VU#252743
http://www.debian.org/security/2014/dsa-3032
DEBIAN DSA-3032
http://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20140926-bash
CISCO 20140926 GNU Bash Environmental Variable Command Injection Vulnerability
http://support.novell.com/security/cve/CVE-2014-6271.html CONFIRM
http://secunia.com/advisories/62228
SECUNIA 62228
http://support.apple.com/kb/HT6495 CONFIRM
http://secunia.com/advisories/61542
SECUNIA 61542
http://secunia.com/advisories/61547
SECUNIA 61547
http://rhn.redhat.com/errata/RHSA-2014-1295.html
REDHAT RHSA-2014:1295
http://rhn.redhat.com/errata/RHSA-2014-1294.html
REDHAT RHSA-2014:1294
http://secunia.com/advisories/59272
SECUNIA 59272
http://rhn.redhat.com/errata/RHSA-2014-1354.html
REDHAT RHSA-2014:1354
http://rhn.redhat.com/errata/RHSA-2014-1293.html
REDHAT RHSA-2014:1293
http://packetstormsecurity.com/files/137376/IPFire-Bash-Environment-Variable-Injection-Shellshock.html
http://marc.info/?l=bugtraq&m=142113462216480&w=2
HP SSRT101711
http://marc.info/?l=bugtraq&m=142118135300698&w=2
HP SSRT101868
http://marc.info/?l=bugtraq&m=142358026505815&w=2
HP HPSBMU03245
http://marc.info/?l=bugtraq&m=142358078406056&w=2
HP HPSBMU03246
http://marc.info/?l=bugtraq&m=142546741516006&w=2
HP HPSBST03265
http://marc.info/?l=bugtraq&m=142719845423222&w=2
HP SSRT101816
http://marc.info/?l=bugtraq&m=142721162228379&w=2
HP SSRT101819
http://marc.info/?l=bugtraq&m=142805027510172&w=2
HP HPSBST03195
http://packetstormsecurity.com/files/128517/VMware-Security-Advisory-2014-0010.html
http://packetstormsecurity.com/files/128567/CA-Technologies-GNU-Bash-Shellshock.html
http://marc.info/?l=bugtraq&m=141577137423233&w=2
HP HPSBMU03165
http://marc.info/?l=bugtraq&m=141577241923505&w=2
HP HPSBST03181
http://packetstormsecurity.com/files/128573/Apache-mod_cgi-Remote-Command-Execution.html
http://marc.info/?l=bugtraq&m=141577297623641&w=2
HP HPSBST03154
http://marc.info/?l=bugtraq&m=141585637922673&w=2
HP HPSBMU03182
http://marc.info/?l=bugtraq&m=141576728022234&w=2
HP HPSBST03155
http://marc.info/?l=bugtraq&m=141330468527613&w=2
HP HPSBGN03138
http://marc.info/?l=bugtraq&m=141694386919794&w=2
HP HPSBST03148
http://marc.info/?l=bugtraq&m=141450491804793&w=2
HP HPSBST03157
http://marc.info/?l=bugtraq&m=141383353622268&w=2
HP HPSBHF03146
http://marc.info/?l=bugtraq&m=141383465822787&w=2
HP HPSBHF03145
http://lists.opensuse.org/opensuse-updates/2014-10/msg00025.html
SUSE openSUSE-SU-2014:1310
http://marc.info/?l=bugtraq&m=141383026420882&w=2
HP HPSBMU03143
http://marc.info/?l=bugtraq&m=141345648114150&w=2
HP HPSBHF03125
http://marc.info/?l=bugtraq&m=141330425327438&w=2
HP HPSBMU03133
http://marc.info/?l=bugtraq&m=141383304022067&w=2
HP HPSBGN03141
http://marc.info/?l=bugtraq&m=141216207813411&w=2
HP HPSBGN03117
http://lists.opensuse.org/opensuse-updates/2014-10/msg00023.html
SUSE openSUSE-SU-2014:1308
http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00037.html
SUSE openSUSE-SU-2014:1226
http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00049.html
SUSE SUSE-SU-2014:1260
https://www.exploit-db.com/exploits/38849/
EXPLOIT-DB 38849
http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00034.html
SUSE SUSE-SU-2014:1223
http://marc.info/?l=bugtraq&m=141879528318582&w=2
HP HPSBMU03217
http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10673 CONFIRM
https://www.exploit-db.com/exploits/40619/
EXPLOIT-DB 40619
http://www-01.ibm.com/support/docview.wss?uid=ssg1S1004915 CONFIRM
http://lcamtuf.blogspot.com/2014/09/quick-notes-about-bash-bug-its-impact.html
http://linux.oracle.com/errata/ELSA-2014-1293.html CONFIRM
http://www-01.ibm.com/support/docview.wss?uid=swg21685604 CONFIRM
http://lists.opensuse.org/opensuse-security-announce/2014-09/msg00029.html
SUSE SUSE-SU-2014:1213
http://jvndb.jvn.jp/jvndb/JVNDB-2014-000126
JVNDB JVNDB-2014-000126
http://www-01.ibm.com/support/docview.wss?uid=swg21685914 CONFIRM
https://www.exploit-db.com/exploits/42938/
EXPLOIT-DB 42938
http://linux.oracle.com/errata/ELSA-2014-1294.html CONFIRM

- Metasploit Modules Related To CVE-2014-6271

Advantech Switch Bash Environment Variable Code Injection (Shellshock)
This module exploits the Shellshock vulnerability, a flaw in how the Bash shell handles external environment variables. This module targets the 'ping.sh' CGI script, accessible through the Boa web server on Advantech switches. This module was tested against firmware version 1322_D1.98.
Module type : exploit Rank : excellent Platforms : Unix
IPFire Bash Environment Variable Injection (Shellshock)
IPFire, a free linux based open source firewall distribution, version <= 2.15 Update Core 82 contains an authenticated remote command execution vulnerability via shellshock in the request headers.
Module type : exploit Rank : excellent Platforms : Linux,Unix
Pure-FTPd External Authentication Bash Environment Variable Code Injection (Shellshock)
This module exploits the Shellshock vulnerability, a flaw in how the Bash shell handles external environment variables. This module targets the Pure-FTPd FTP server when it has been compiled with the --with-extauth flag and an external Bash script is used for authentication. If the server is not set up this way, the exploit will fail, even if the version of Bash in use is vulnerable.
Module type : exploit Rank : excellent
Apache mod_cgi Bash Environment Variable Code Injection (Shellshock)
This module exploits the Shellshock vulnerability, a flaw in how the Bash shell handles external environment variables. This module targets CGI scripts in the Apache web server by setting the HTTP_USER_AGENT environment variable to a malicious function definition.
Module type : exploit Rank : excellent
CUPS Filter Bash Environment Variable Code Injection (Shellshock)
This module exploits the Shellshock vulnerability, a flaw in how the Bash shell handles external environment variables. This module targets CUPS filters through the PRINTER_INFO and PRINTER_LOCATION variables. A valid username and password is required to exploit this vulnerability through CUPS.
Module type : exploit Rank : excellent Platforms : Unix
OS X VMWare Fusion Privilege Escalation via Bash Environment Code Injection (Shellshock)
This module exploits the Shellshock vulnerability, a flaw in how the Bash shell handles external environment variables. This module targets the VMWare Fusion application, allowing an unprivileged local user to get root access.
Module type : exploit Rank : normal Platforms : OSX
Dhclient Bash Environment Variable Injection (Shellshock)
This module exploits the Shellshock vulnerability, a flaw in how the Bash shell handles external environment variables. This module targets dhclient by responding to DHCP requests with a malicious hostname, domainname, and URL which are then passed to the configuration scripts as environment variables, resulting in code execution. Due to length restrictions and the unusual networking scenario at the time of exploitation, this module achieves code execution by writing the payload into /etc/crontab and then cleaning it up after a session is created.
Module type : exploit Rank : excellent Platforms : Unix
Qmail SMTP Bash Environment Variable Injection (Shellshock)
This module exploits a shellshock vulnerability on Qmail, a public domain MTA written in C that runs on Unix systems. Due to the lack of validation on the MAIL FROM field, it is possible to execute shell code on a system with a vulnerable BASH (Shellshock). This flaw works on the latest Qmail versions (qmail-1.03 and netqmail-1.06). However, in order to execute code, /bin/sh has to be linked to bash (usually default configuration) and a valid recipient must be set on the RCPT TO field (usually [email protected]). The exploit does not work on the "qmailrocks" community version as it ensures the MAILFROM field is well-formed.
Module type : exploit Rank : normal Platforms : Unix
Apache mod_cgi Bash Environment Variable Injection (Shellshock) Scanner
This module scans for the Shellshock vulnerability, a flaw in how the Bash shell handles external environment variables. This module targets CGI scripts in the Apache web server by setting the HTTP_USER_AGENT environment variable to a malicious function definition. PROTIP: Use exploit/multi/handler with a PAYLOAD appropriate to your CMD, set ExitOnSession false, run -j, and then run this module to create sessions on vulnerable hosts. Note that this is not the recommended method for obtaining shells. If you require sessions, please use the apache_mod_cgi_bash_env_exec exploit module instead.
Module type : auxiliary Rank : normal
DHCP Client Bash Environment Variable Code Injection (Shellshock)
This module exploits the Shellshock vulnerability, a flaw in how the Bash shell handles external environment variables. This module targets dhclient by responding to DHCP requests with a malicious hostname, domainname, and URL which are then passed to the configuration scripts as environment variables, resulting in code execution.
Module type : auxiliary Rank : normal


CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site. OVAL is a registered trademark of The MITRE Corporation and the authoritative source of OVAL content is MITRE's OVAL web site.
Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.