GNU Bash OS Command Injection
CVE-2014-6278 is a high-severity improper neutralization of special elements used in an OS command vulnerability in Bash from GNU, with a CVSS 2.0 base score of 10.0 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected Bash versions: 1.14.0; 1.14.1; 1.14.2, and others listed below. The record does not name a fixed version, so check the vendor advisory. CISA added it to the Known Exploited Vulnerabilities catalogue on October 2, 2025, which means attacks have been observed in the wild.
Attackers are already exploiting this vulnerability, according to CISA.
What to do
- Check which version of Bash you run against the affected versions below, and install the vendor's latest release.
- CISA's required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| GNU | Bash | 1.14.0; 1.14.1; 1.14.2; 1.14.3; 1.14.4; 1.14.5; 1.14.6; 1.14.7; and 17 more ranges | Not stated |
Version data comes from NVD's product matching. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Access vector
- NetworkCan be exploited remotely over a network.
- Access complexity
- LowNo special conditions are needed.
- Authentication
- NoneNo login is needed.
- Confidentiality
- CompleteAll data can be read.
- Integrity
- CompleteAny data can be modified.
- Availability
- CompleteThe system can be shut down completely.
Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 8.8 | High | CISA (ADP) |
| CVSS 2.0 | 10.0 | High | NVD |
Official description
GNU Bash through 4.3 bash43-026 does not properly parse function definitions in the values of environment variables, which allows remote attackers to execute arbitrary commands 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. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-6271, CVE-2014-7169, and CVE-2014-6277.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Neutralization of Special Elements used in an OS Command
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command before it is sent to a downstream component.
How developers prevent this class of flaw
- If at all possible, use library calls rather than external processes to recreate the desired functionality.
- For any data that will be used to generate a command to be executed, keep as much of that data out of external control as possible. For example, in web applications, this may require storing the data locally in the session's state instead of sending it out to the client in a hidden form field.
- For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
More Improper Neutralization of Special Elements used in an OS Command vulnerabilities (CWE-78)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: active, automatable: no, technical impact: total).
- Added to CISA's Known Exploited Vulnerabilities catalogue.
- Deadline for US federal agencies to remediate, set by CISA.
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- lcamtuf.blogspot.com/2014/09/bash-bug-apply-unofficial-patch-now.htmlThird Party Advisory
Third-party and government advisories
- jvn.jp/en/jp/JVN55667175/index.htmlThird Party Advisory
- jvndb.jvn.jp/jvndb/JVNDB-2014-000126Third Party Advisory
- lcamtuf.blogspot.com/2014/10/bash-bug-how-we-finally-cracked.htmlThird Party Advisory
- linux.oracle.com/errata/ELSA-2014-3093Third Party Advisory
- linux.oracle.com/errata/ELSA-2014-3094Third Party Advisory
- marc.info/?l=bugtraq&m=141330468527613&w=2Third Party Advisory
- marc.info/?l=bugtraq&m=141345648114150&w=2Third Party Advisory
- marc.info/?l=bugtraq&m=141383026420882&w=2Third Party Advisory
- marc.info/?l=bugtraq&m=141383081521087&w=2Third Party Advisory
- marc.info/?l=bugtraq&m=141383196021590&w=2Third Party Advisory
- marc.info/?l=bugtraq&m=141383244821813&w=2Third Party Advisory
- marc.info/?l=bugtraq&m=141383304022067&w=2Third Party Advisory
- marc.info/?l=bugtraq&m=141383353622268&w=2Third Party Advisory
- marc.info/?l=bugtraq&m=141383465822787&w=2Third Party Advisory
- marc.info/?l=bugtraq&m=141450491804793&w=2Third Party Advisory
Other references
Other vulnerabilities in Bash
- 9.8 Critical severity
- 9.8 Critical severity
Spotted an error? Tell us.