CVE-2014-6271 — Oracle
CRITICALCVE-2014-6271 is a critical-severity (CVSS 9.8) OS Command Injection vulnerability. It is in CISA's Known Exploited Vulnerabilities catalog (added 2022-01-28) — treat it as actively exploited and patch now. The records list no fixed version yet; check the vendor advisory below and apply the mitigations in the meantime.
Exploitation Status
Actively exploited in the wild
- Confirmed by CISA's Known Exploited Vulnerabilities catalog on 2022-01-28. Federal agencies were required to remediate by 2022-07-28.
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- A successful exploit gives an attacker total control of the affected component, not partial access.
Exploitation and automatability from CISA (KEV catalog and SSVC triage) for CVE-2014-6271.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
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.
Affected Products
mac os xappleeosaristaubuntu linuxcanonicalsecurity gatewaycheckpointnetscaler sdx firmwarecitrixdebian linuxdebianResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Kemp Load Master 7.1.16 - Multiple Vulnerabilities
by Roberto Suggi Liverani · Apr 2, 2015
PHP < 5.6.2 - 'Shellshock' Safe Mode / disable_functions Bypass / Command Injection
by Ryan King (Starfall) · Nov 3, 2014
Bash CGI - 'Shellshock' Remote Command Injection (Metasploit)
by Fady Mohammed Osman · Oct 6, 2014
Qmail SMTP - Bash Environment Variable Injection (Metasploit)
by Metasploit · Oct 2, 2017
TrendMicro InterScan Web Security Virtual Appliance - 'Shellshock' Remote Command Injection
by Hacker Fantastic · Oct 21, 2016
OpenVPN 2.2.29 - 'Shellshock' Remote Command Injection
by hobbily plunt · Oct 4, 2014
IPFire - CGI Web Interface (Authenticated) Bash Environment Variable Code Injection
by Claudio Viviani · Oct 1, 2014
IPFire - 'Shellshock' Bash Environment Variable Command Injection (Metasploit)
by Metasploit · Jun 10, 2016
Apache mod_cgi - 'Shellshock' Remote Command Injection
by Federico Galatolo · Oct 6, 2014
GNU Bash - 'Shellshock' Environment Variable Command Injection
by Stephane Chazelas · Sep 25, 2014
Detection & mitigation playbook
VulnerabilityDetect
Identify every host running the affected component and compare the installed build against the fixed version below — for source-built or distro-packaged software the version string, not a lockfile, is the source of truth (`dpkg -l`, `rpm -q`, or the binary's own `--version`).
Remediation status
The records we use list no fixed release for CVE-2014-6271. Check the upstream advisory for a patched version, and apply the exposure-reduction steps below in the meantime.
Mitigate without a patch
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
How to detect CVE-2014-6271
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2014-6271 -u https://target- Template
- ShellShock - Remote Code Execution
- Severity
- critical
- Impact
- Remote code execution can lead to unauthorized access, data theft, and system compromise.
- Remediation
- Apply the necessary patches and updates provided by the vendor to fix the vulnerability.
Template by ProjectDiscovery nuclei-templates (pentest_swissky, 0xelkomy), MIT licensed. View the full template. Scan only systems you are authorised to test.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Enterprise Linux 4 Extended Lifecycle Support | bash-0:3.0-27.el4.2 | RHSA-2014:1294 |
| Red Hat Enterprise Linux 5 | bash-0:3.2-33.el5.1 | RHSA-2014:1293 |
| RHEV Manager version 3.4 | rhev-hypervisor6-0:6.5-20140930.1.el6ev | RHSA-2014:1354 |
| S-JIS for Red Hat Enteprise Linux 5 | bash-0:3.2-33.el5_11.1.sjis.1 | RHSA-2014:1295 |
Frequently Asked Questions
Is CVE-2014-6271 in your dependencies?
Find it across your dependency tree, including transitive dependencies.