CVE-2014-6271
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedGNU 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceGNU Bash through version 4.3 improperly processes trailing strings after function definitions in environment variable values. When Bash is invoked, it parses these environment variables and executes any commands following the function definition, allowing remote attackers to inject arbitrary code via crafted environment variables.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 4= 5= 6= 2.1= 3.4= 4.0= 5.0= 6.0= 7.0= 5.0= 6.0= 7.0= 5.9= 6.4= 6.5= 7.3= 7.4= 7.5= 7.6= 7.7= 5.9_s390x= 6.4_s390x= 6.5_s390x= 7.3_s390x= 7.4_s390x= 7.5_s390x= 7.6_s390x= 7.7_s390x= 5.0_ppc= 5.9_ppc= 6.0_ppc64= 6.4_ppc64= 7.0_ppc64CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Determine installed Bash versionRun `bash --version` or `rpm -q bash` to get the exact version numberAffected if Version is 4.3 or earlier (the vulnerable series)
-
Identify if Apache with CGI is in useCheck for mod_cgi/mod_cgid configuration: `httpd -M 2>/dev/null | grep cgi` or inspect Apache config files for 'ScriptAlias' or 'AddHandler cgi-script' directivesAffected if Apache with CGI modules is enabled and Bash is the default shell for CGI scripts
-
Check for OpenSSH ForceCommand usageInspect SSH server config: `grep -r ForceCommand /etc/ssh/sshd_config` or look for 'ForceCommand' in active SSH configurationsAffected if OpenSSH ForceCommand is configured, allowing environment variable injection
-
Test for vulnerable Bash behaviorRun this safe probe: `env X='() { :;}; echo VULNERABLE' bash -c "echo test"` - examine the output for the word VULNERABLE appearingAffected if The word VULNERABLE prints in the output, confirming the vulnerability exists
-
Identify CGI-accessible endpointsReview web server logs or configs for exposed CGI scripts (.cgi, .pl, .sh under cgi-bin), and check if these scripts invoke BashAffected if CGI scripts that invoke Bash are accessible via web
The system is affected if Bash version is 4.3 or earlier AND Bash is invoked through exposed interfaces like CGI, ForceCommand, or other mechanisms that pass environment variables to Bash.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade GNU Bash to a patched version (4.3.25 or later recommended). Audit and restart services that invoke Bash, particularly OpenSSH, Apache with CGI/mod_cgid, and DHCP clients, to ensure the patched Bash is actively used.
Bash version 4.3 or later with security patches applied; for RHEL systems, apply the latest bash errata (e.g., bash-4.1.2-33.el6_7.1 or later for RHEL 6)
- 1. Identify the current Bash version by running: bash --version
- 2. For RHEL-based systems (Red Hat Enterprise Linux 4/5/6/7), run: yum update bash
- 3. For Debian/Ubuntu-based systems, run: apt-get update && apt-get install bash
- 4. For other Linux distributions, obtain a patched version of Bash from your distribution's security repository
- 5. After updating, verify the vulnerability is patched by running: env X='() { :;}; echo vulnerable' bash -c "echo this is a test"
- 6. If the fix is successful, the command should output only "this is a test" and NOT display "vulnerable"
- 7. Alternatively, test using the official Red Hat test: env CVE='() { :;}; echo CVE-2014-6271' bash -c :
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing6.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,600.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2014-6271 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sources- bugzilla.redhat.com
- lcamtuf.blogspot.com
- jvn.jp
- jvndb.jvn.jp
- bugzilla.redhat.com
- advisories.mageia.org
- archives.neohapsis.com
- kb.juniper.net
- lcamtuf.blogspot.com
- linux.oracle.com
- linux.oracle.com
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- marc.info
- packetstormsecurity.com
- packetstormsecurity.com
- packetstormsecurity.com
- packetstormsecurity.com
- packetstormsecurity.com
- rhn.redhat.com
- rhn.redhat.com
- rhn.redhat.com
- rhn.redhat.com
- seclists.org
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- support.apple.com
- support.novell.com
- tools.cisco.com
- www-01.ibm.com
- www-01.ibm.com
- www-01.ibm.com
- www-01.ibm.com
- www-01.ibm.com
- www-01.ibm.com
- www-01.ibm.com
- www-01.ibm.com
- www-01.ibm.com
- www-01.ibm.com
- www-01.ibm.com
- www-01.ibm.com
- www-01.ibm.com
- www-01.ibm.com
- www-01.ibm.com
- www-01.ibm.com
- www-01.ibm.com
- www-01.ibm.com
- www-01.ibm.com
- www-01.ibm.com
- www-947.ibm.com
- www.debian.org
- www.kb.cert.org
- www.mandriva.com
- www.novell.com
- www.novell.com
- www.oracle.com
- www.qnap.com
- www.securityfocus.com
- www.securityfocus.com
- www.ubuntu.com
- www.us-cert.gov
- www.vmware.com
- www.websense.com
- access.redhat.com
- access.redhat.com
- help.ecostruxureit.com
- kb.bluecoat.com
- kb.juniper.net
- kc.mcafee.com
- securityblog.redhat.com
- support.apple.com
- support.citrix.com
- support.f5.com
- support.hpe.com
- support.hpe.com
- supportcenter.checkpoint.com
- www.arista.com
- www.exploit-db.com
- www.exploit-db.com
- www.exploit-db.com
- www.exploit-db.com
- www.exploit-db.com
- www.exploit-db.com
- www.exploit-db.com
- www.suse.com
- support.citrix.com
- www.cisa.gov
- nvd.nist.gov
Practitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2014-6271 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data