GNU Bourne-Again Shell (Bash)
GNU Bourne-Again Shell (Bash) Arbitrary Code Execution Vulnerability
GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed function definitions in the values of environment variables, which allows remote attackers to write to files or possibly have unknown other impact 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.
Timeline
Days relative to CVE publicationFirst public PoC 0 h after publication; added to CISA KEV 7.3 years after publication.
PoC repositories
Found on GitHub.5 PoCs · 1 pending · 6 informational · 2 not a PoC
PoCs 5
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| gina-alaska/bash-cve-2014-7169-cookbook | 30 Sep 2015 +1.0 y | 0 | PoC via PoC Index |
| h0n3yb/poc-development | 17 Dec 2020 +6.2 y | 0 | PoC via PoC Index |
| mrigank-9594/Exploit-Shellshock | 24 Jun 2021 +6.7 y | 0 | PoC via PoC Index |
| securetiger/Exploit-Shellshock | 24 Jun 2021 +6.7 y | 0 | PoC via PoC Index |
| andrewxx007/MyExploit-ShellShock | 11 May 2023 +8.6 y | 1 | PoC |
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| chef-boneyard/bash-shellshock | 31 Oct 2014 +37 d | 5 | Pending · mkdir /quarantine/chef-boneyard__bash-shellshock-631ec325971d: permission denied
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Informational 6
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| UMDTERPS/Shell-Shock-Update | 17 Dec 2014 +84 d | 0 | Informational · detection |
| pbr94/Shellshock-Bash-Remote-Code-Execution-Vulnerability-and-Exploitation | 10 May 2020 +5.6 y | 2 | Informational · write-up |
| Gobinath-B/SHELL-SCHOCK | 24 Jul 2022 +7.8 y | 1 | Informational · write-up |
| timb-machine-mirrors/rcvalle-exploits | 7 Apr 2023 +8.5 y | 0 | Informational · list |
| rcvalle/exploits | 29 Dec 2024 +10.3 y | 3 | Informational · list |
| Kushiro45/shellshock-poc-cve-2014-7169 | 14 Jul 2026 +11.8 y | 0 | Informational · write-up |
Not a PoC 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| opsxcq/exploit-CVE-2014-6271 | 7 Dec 2016 +2.2 y | 232 | Not a PoC · unrelated |
| mritunjay-k/CVE-2014-6271 | 2 Mar 2023 +8.4 y | 0 | Not a PoC · unrelated |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.PoC characteristics
What to hunt for in your logs · from 5 PoC reposGET /cgi-bin/vulnerable
- Ports
- 8080
- PoC User-Agent
() {var}; echo; echo; /bin/bash -c 'cat /etc/passwd'() {var}; echo; echo; /bin/bash -c 'echo "{var}{var}{var}DEFACED</h1></body></html>" > /var/www/index.html'- Seen in
- 3 repos: andrewxx007/MyExploit-ShellShock, mrigank-9594/Exploit-Shellshock, securetiger/Exploit-Shellshock
- Evidence
- andrewxx007/MyExploit-ShellShock/README.md:107 andrewxx007/MyExploit-ShellShock/myexploit-shellshock.sh:30 mrigank-9594/Exploit-Shellshock/README.md:27 mrigank-9594/Exploit-Shellshock/exploit-deface.sh:21 securetiger/Exploit-Shellshock/README.md:27 securetiger/Exploit-Shellshock/exploit-deface.sh:21
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/cgi-bin/vulnerable(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2014-7169 GNU Bourne-Again Shell (Bash) exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/vulnerable"; reference:url,poc.griffinguard.io/cve/CVE-2014-7169; classtype:web-application-attack; sid:9042414; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: GNU Bourne-Again Shell (Bash) exploit attempt (CVE-2014-7169)
id: gg-pocmon-cve-2014-7169-9042414
status: experimental
description: Request pattern taken from public PoCs for CVE-2014-7169. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2014-7169
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/cgi-bin/vulnerable'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2014.7169