Vulnerabilities / CVE-2014-6271

critical

CVE-2014-6271

bash: specially-crafted environment variables can be used to inject shell commands

Published Modified CWE 78
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat7.5AV:N/AC:L/Au:N/C:P/I:P/A:P

Trivy's own label is CRITICAL. Rated critical by NVD, Red Hat, Amazon, Oracle. Rated lower by Ubuntu (high).

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 packages and fixed versions

SourcePackageFixed in
amazon linux 1bash, bash-debuginfo, bash-doc4.1.2-15.19.amzn1
Oracle Linux 5bash3.2-33.el5.1
Oracle Linux 6bash, bash-doc4.1.2-15.el6_5.1
Oracle Linux 7bash, bash-doc4.2.45-5.el7_0.2
debian 11bash4.3-9.1
debian 12bash4.3-9.1
debian 13bash4.3-9.1
debian 14bash4.3-9.1
debian 7bash4.2+dfsg-0.1+deb7u1
echobash4.3-9.1
root.io debian 11rootio-bash4.3-9.1
ubuntu 12.04bash4.2-2ubuntu2.2
Show all 18 entries from 14 sources
SourcePackageFixed in
amazon linux 1bash4.1.2-15.19.amzn1
amazon linux 1bash-debuginfo4.1.2-15.19.amzn1
amazon linux 1bash-doc4.1.2-15.19.amzn1
Oracle Linux 5bash3.2-33.el5.1
Oracle Linux 6bash4.1.2-15.el6_5.1
Oracle Linux 6bash-doc4.1.2-15.el6_5.1
Oracle Linux 7bash4.2.45-5.el7_0.2
Oracle Linux 7bash-doc4.2.45-5.el7_0.2
debian 11bash4.3-9.1
debian 12bash4.3-9.1
debian 13bash4.3-9.1
debian 14bash4.3-9.1
debian 7bash4.2+dfsg-0.1+deb7u1
echobash4.3-9.1
root.io debian 11rootio-bash4.3-9.1
ubuntu 12.04bash4.2-2ubuntu2.2
ubuntu 14.04bash4.3-7ubuntu1.1
ubuntu 14.04-ESMbash4.3-7ubuntu1.1

References

All 179 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.