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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | bash | 4.3-9.1 | — |
| Debian 13 | bash | 4.3-9.1 | — |
| Debian 12 | bash | 4.3-9.1 | — |
| Debian 7 | bash | 4.2+dfsg-0.1+deb7u1 | DSA-3032-1 |
| Debian 6.0 | bash | 4.1-3+deb6u1 | DLA-59-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | bash | 4.3-7ubuntu1.1 | USN-2362-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | bash +1 | 4.2.45-5.el7_0.2 | RHSA-2014:1293 |
| RHEL 6 | bash +1 | 4.1.2-15.el6_5.1 | RHSA-2014:1293 |
| RHEL 5 | bash | 3.2-33.el5.1 | RHSA-2014:1293 |
Show 8 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Rhev Manager 3 | rhev-hypervisor6 | 6.5-20140930.1.el6ev | RHSA-2014:1354 |
| Red Hat Rhel Sjis 6 | bash +1 | 4.1.2-15.el6_5.1.sjis.1 | RHSA-2014:1295 |
| Red Hat Rhel Sjis 5 | bash | 3.2-33.el5_11.1.sjis.1 | RHSA-2014:1295 |
| Red Hat Rhel Mission Critical 6 | bash +1 | 4.1.2-9.el6_2.1 | RHSA-2014:1294 |
| Red Hat Rhel Mission Critical 5 | bash | 3.2-24.el5_6.1 | RHSA-2014:1294 |
| RHEL 6.4 EUS | bash +1 | 4.1.2-15.el6_4.1 | RHSA-2014:1294 |
| RHEL 5.9 EUS | bash | 3.2-32.el5_9.2 | RHSA-2014:1294 |
| RHEL 4 ELS | bash | 3.0-27.el4.2 | RHSA-2014:1294 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | bash | 7.0-92.1 | openSUSE-SU-2024:10106-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | bash +1 | 4.2.45-5.el7_0.2 | ELSA-2014-1293 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 10 modules
-
DHCP Client Bash Environment Variable Code Injection (Shellshock)
auxiliary/server/dhclient_bash_env
-
Dhclient Bash Environment Variable Injection (Shellshock)
exploit/unix/dhcp/bash_environment
-
CUPS Filter Bash Environment Variable Code Injection (Shellshock)
exploit/multi/http/cups_bash_env_exec
-
Qmail SMTP Bash Environment Variable Injection (Shellshock)
exploit/unix/smtp/qmail_bash_env_exec
-
IPFire Bash Environment Variable Injection (Shellshock)
exploit/linux/http/ipfire_bashbug_exec
-
Pure-FTPd External Authentication Bash Environment Variable Code Injection (Shellshock)
exploit/multi/ftp/pureftpd_bash_env_exec
-
OS X VMWare Fusion Privilege Escalation via Bash Environment Code Injection (Shellshock)
exploit/osx/local/vmware_bash_function_root
-
Apache mod_cgi Bash Environment Variable Injection (Shellshock) Scanner
auxiliary/scanner/http/apache_mod_cgi_bash_env
-
Apache mod_cgi Bash Environment Variable Code Injection (Shellshock)
exploit/multi/http/apache_mod_cgi_bash_env_exec
-
Advantech Switch Bash Environment Variable Code Injection (Shellshock)
exploit/linux/http/advantech_switch_bash_env_exec
Exploit-DB 21
- Qmail SMTP - Bash Environment Variable Injection (Metasploit) EDB-42938 · remote · Oct 2, 2017 · verified
- RedStar 3.0 Server - 'Shellshock' 'BEAM' / 'RSSMON' Command Injection EDB-40938 · local · Dec 18, 2016 · verified
- TrendMicro InterScan Web Security Virtual Appliance - 'Shellshock' Remote Command Injection EDB-40619 · remote · Oct 21, 2016
- IPFire - 'Shellshock' Bash Environment Variable Command Injection (Metasploit) EDB-39918 · remote · Jun 10, 2016 · verified
- Advantech Switch - 'Shellshock' Bash Environment Variable Command Injection (Metasploit) EDB-38849 · remote · Dec 2, 2015 · verified
- Cisco Unified Communications Manager - Multiple Vulnerabilities EDB-37816 · webapps · Aug 18, 2015
- Kemp Load Master 7.1.16 - Multiple Vulnerabilities EDB-36609 · webapps · Apr 2, 2015
- QNAP - Admin Shell via Bash Environment Variable Code Injection (Metasploit) EDB-36503 · remote · Mar 26, 2015
- QNAP - Web Server Remote Code Execution via Bash Environment Variable Code Injection (Metasploit) EDB-36504 · remote · Mar 26, 2015
- PHP < 5.6.2 - 'Shellshock' Safe Mode / disable_functions Bypass / Command Injection EDB-35146 · webapps · Nov 3, 2014
- CUPS Filter - Bash Environment Variable Code Injection (Metasploit) EDB-35115 · remote · Oct 29, 2014 · verified
- Bash CGI - 'Shellshock' Remote Command Injection (Metasploit) EDB-34895 · webapps · Oct 6, 2014 · verified
- Postfix SMTP 4.2.x < 4.2.48 - 'Shellshock' Remote Command Injection EDB-34896 · remote · Oct 6, 2014 · verified
- Apache mod_cgi - 'Shellshock' Remote Command Injection EDB-34900 · remote · Oct 6, 2014 · verified
- OpenVPN 2.2.29 - 'Shellshock' Remote Command Injection EDB-34879 · remote · Oct 4, 2014
- GNU bash 4.3.11 - Environment Variable dhclient EDB-34860 · remote · Oct 2, 2014
- Pure-FTPd - External Authentication Bash Environment Variable Code Injection (Metasploit) EDB-34862 · remote · Oct 2, 2014 · verified
- IPFire - CGI Web Interface (Authenticated) Bash Environment Variable Code Injection EDB-34839 · webapps · Oct 1, 2014 · verified
- GNU Bash - 'Shellshock' Environment Variable Command Injection EDB-34765 · remote · Sep 25, 2014 · verified
- Bash - 'Shellshock' Environment Variables Command Injection EDB-34766 · remote · Sep 25, 2014 · verified
- GNU Bash - Environment Variable Command Injection (Metasploit) EDB-34777 · remote · Sep 25, 2014 · verified
GitHub 96 repositories · most starred shown
-
opsxcq/exploit-CVE-2014-6271 ★ 232 · Dec 7, 2016
Shellshock exploit + vulnerable environment
-
scottjpack/shellshock_scanner ★ 46 · Sep 25, 2014
Python Scanner for "ShellShock" (CVE-2014-6271)
-
hmlio/vaas-cve-2014-6271 ★ 22 · Jul 11, 2015
Vulnerability as a service: showcasing CVS-2014-6271, a.k.a. Shellshock
-
b4keSn4ke/CVE-2014-6271 ★ 15 · Jul 29, 2021
Shellshock exploit aka CVE-2014-6271
-
cj1324/CGIShell ★ 13 · Sep 29, 2014
shellshock CVE-2014-6271 CGI Exploit, Use like Openssh via CGI
-
francisck/shellshock-cgi ★ 12 · Sep 28, 2014
A python script to enumerate CGI scripts vulnerable to CVE-2014-6271 on one specific server
-
indiandragon/Shellshock-Vulnerability-Scan ★ 11 · Oct 3, 2014
Android app to scan for bash Vulnerability - CVE-2014-6271 also known as Shellshock
-
P0cL4bs/ShellShock-CGI-Scan ★ 6 · Jun 26, 2015
A script, in C, to check if CGI scripts are vulnerable to CVE-2014-6271 (The Bash Bug).
-
npm/ansible-bashpocalypse ★ 6 · Sep 24, 2014
Patch for CVE-2014-6271
-
J0hnTh3Kn1ght/CVE-2014-6271 ★ 5 · Jul 1, 2023
Exploitation of "Shellshock" Vulnerability. Remote code execution in Apache with mod_cgi
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- ShellShock - Remote Code Execution http/cves/2014/CVE-2014-6271.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Advisories 11
- RHSA-2014:1354 Red Hat Security Advisory: rhev-hypervisor6 security update Red Hat Security Advisories (RHSA) · Jul 29, 2026
- RHSA-2014:1294 Red Hat Security Advisory: bash security update Red Hat Security Advisories (RHSA) · Jul 29, 2026
- RHSA-2014:1295 Red Hat Security Advisory: bash Shift_JIS security update Red Hat Security Advisories (RHSA) · Jul 29, 2026
- RHSA-2014:1293 Red Hat Security Advisory: bash security update Red Hat Security Advisories (RHSA) · Jul 29, 2026
- DLA-59-1 bash - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3032-1 bash - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-2362-1 bash vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- openSUSE-SU-2024:10106-1 bash-4.4-92.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- ICSA-15-344-01B Advantech EKI Vulnerabilities (Update B) CISA ICS & IT advisories · Jun 9, 2025
- ICSA-14-269-01A Bash Command Injection Vulnerability CISA ICS & IT advisories · Jun 6, 2025
- ELSA-2014-1293 Critical: bash security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Sep 24, 2014
References
- 37816 exploit
- http://packetstormsecurity.com/files/128517/VMware-Security-Advisory-2014-0010.html
- SUSE-SU-2014:1223 vendor-advisory
- http://www-01.ibm.com/support/docview.wss?uid=ssg1S1004897
- http://www-01.ibm.com/support/docview.wss?uid=swg21685749
- HPSBMU03165 vendor-advisory
- SSRT101816 vendor-advisory
- 39918 exploit
- HPSBHF03119 vendor-advisory
- RHSA-2014:1295 vendor-advisory
- openSUSE-SU-2014:1226 vendor-advisory
- https://securityblog.redhat.com/2014/09/24/bash-specially-crafted-environment-variables-code-injection-attack/
- https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk102673&src=securityAlerts
- HPSBST03131 vendor-advisory
- SSRT101819 vendor-advisory
- 20141001 NEW VMSA-2014-0010 - VMware product updates address critical Bash security vulnerabilities mailing-list
- HPSBMU03245 vendor-advisory
- http://www-01.ibm.com/support/docview.wss?uid=swg21686084
- http://www-01.ibm.com/support/docview.wss?uid=swg21686479
- 61188 third-party-advisory
- http://www.websense.com/support/article/kbarticle/Vulnerabilities-resolved-in-TRITON-APX-Version-8-0
- JVN#55667175 third-party-advisory
- 61676 third-party-advisory
- 40619 exploit
- openSUSE-SU-2014:1254 vendor-advisory
- 60433 third-party-advisory
- 38849 exploit
- HPSBMU03143 vendor-advisory
- HPSBMU03182 vendor-advisory
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10673
- SUSE-SU-2014:1260 vendor-advisory
- HPSBST03155 vendor-advisory
- http://www-01.ibm.com/support/docview.wss?uid=swg21685541
- 61715 third-party-advisory
- http://www.oracle.com/technetwork/topics/security/bashcve-2014-7169-2317675.html
- 61816 third-party-advisory
- openSUSE-SU-2014:1310 vendor-advisory
- 61442 third-party-advisory
- HPSBMU03246 vendor-advisory
- HPSBST03195 vendor-advisory
- 61283 third-party-advisory
- SSRT101711 vendor-advisory
- USN-2362-1 vendor-advisory
- https://kc.mcafee.com/corporate/index?page=content&id=SB10085
- openSUSE-SU-2014:1308 vendor-advisory
- 61654 third-party-advisory
- 61542 third-party-advisory
- http://www.novell.com/support/kb/doc.php?id=7015701
- http://www-947.ibm.com/support/entry/portal/docdisplay?lndocid=MIGR-5096315
- 62312 third-party-advisory
- 59272 third-party-advisory
- HPSBST03122 vendor-advisory
- https://support.f5.com/kb/en-us/solutions/public/15000/600/sol15629.html
- HPSBMU03217 vendor-advisory
- http://www-01.ibm.com/support/docview.wss?uid=swg21685604
- SSRT101868 vendor-advisory
- 61703 third-party-advisory
- http://support.apple.com/kb/HT6495
- VU#252743 third-party-advisory
- 61065 third-party-advisory