CVE-2014-6271: GNU Bourne-Again Shell (Bash) Arbitrary Code Execution
GNU Bourne-Again Shell (Bash) · listed in the CISA catalog of actively exploited vulnerabilities since 2022-01-28.
- CVSS v3.1 (CVE record)
- 9.8
- critical
- EPSS (exploit probability, 30 days)
- >99.9%
- among the highest 0.1% of all CVEs
- Added to CISA KEV
- 2022-01-28
- US federal due date 2022-07-28
- Ubuntu priority
- high
CVE-2014-6271 explained
CVE-2014-6271, known as ShellShock, is a flaw in the GNU Bourne-Again Shell through 4.3. The shell processes trailing strings after function definitions in environment variable values, so a crafted environment can run arbitrary code. It matters because many services pass untrusted input into the environment, and CISA lists it as known to be exploited.
Impact
A remote, unauthenticated attacker can execute arbitrary code wherever untrusted data is placed into the environment before the shell runs. Examples include OpenSSH ForceCommand, the Apache HTTP Server mod_cgi and mod_cgid modules, and scripts run by some DHCP clients. No user interaction is needed. Successful attacks fully compromise confidentiality, integrity and availability with the privileges of the affected process.
Who is affected
The facts list one affected release: Ubuntu 14.04 LTS, source package bash, fixed in 4.3-7ubuntu1.1 in the standard archive. Ubuntu 14.04 LTS is end of life. The original upstream fix was incomplete; the remaining flaw is tracked separately as CVE-2014-7169, which should also be checked.
Written with AI from the data on this page and checked against it automatically.
Official 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.
CISA required action: Apply updates per vendor instructions.
CISA notes
Ubuntu and Debian releases
A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.
Ubuntu 14.04 LTS·bash
ESM ended
Fixed: 4.3-7ubuntu1.1
What to do
- Update the source package
bashto4.3-7ubuntu1.1or later on Ubuntu 14.04 LTS systems. - Restart services that spawn shell processes, such as CGI web servers, SSH and DHCP clients, so they stop using old code.
- Plan an upgrade from Ubuntu 14.04 LTS, which is end of life, to a supported Ubuntu release.
- Also verify the fix for CVE-2014-7169, which covers the flaw left by the incomplete original fix.
- Limit network exposure of CGI scripts and other services that pass untrusted input into the environment.
Written with AI from the data on this page and checked against it automatically.
Check and fix on a server
Run on each Ubuntu or Debian server. Replace bash with the source package from the table above.
1. Show installed packages built from the source package, with their versions
dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="bash"'2. Compare each installed version with the fixed version for your release from the table
I=INSTALLED_VERSION; F=FIXED_VERSION # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac3. Install the fix
sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="bash"{print $1}')Services keep running the old code until they are restarted – restart the affected service or check with needrestart.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- Yes – attackers can automate it at scale
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Questions about CVE-2014-6271
- Is this vulnerability exploited in practice?
- Yes. CISA added CVE-2014-6271 to its Known Exploited Vulnerabilities catalog on 2022-01-28 and requires applying updates per vendor instructions. Whether it is used in ransomware campaigns is listed as unknown.
- Is installing the fixed package enough?
- Install
4.3-7ubuntu1.1or later and restart services that launch shell processes. The original upstream fix was incomplete, so also confirm coverage for CVE-2014-7169. Because Ubuntu 14.04 LTS is end of life, upgrading to a supported release is the long-term fix. - Which services are most exposed?
- Any service that sets environment variables from untrusted input and then runs the shell across a privilege boundary. The description names OpenSSH ForceCommand, Apache HTTP Server mod_cgi and mod_cgid, and scripts executed by some DHCP clients.
Written with AI from the data on this page and checked against it automatically.
References
Government
Other advisories
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.