CyberSecBulletin
CVE-2014-6271Exploited in the wildNVD status: Analyzed

GNU Bourne-Again Shell (Bash) Arbitrary Code Execution

CVE-2014-6271 is a critical-severity improper neutralization of special elements used in an OS command vulnerability in Bash from GNU, with a CVSS 3.1 base score of 9.8 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected Bash versions: 4.3 and earlier. The record does not name a fixed version, so check the vendor advisory. CISA added it to the Known Exploited Vulnerabilities catalogue on January 28, 2022, which means attacks have been observed in the wild.

Patch now

Attackers are already exploiting this vulnerability, according to CISA.

What to do

  1. Update Eos to 4.9.12 or 4.10.9 or 4.11.11 or 4.12.9, whichever matches your release line, or a later version.
  2. Update Qts to 4.1.1 or a later version.
  3. Update Software Defined Network For Virtual Environments to 1.2.1 or a later version.
  4. CISA's required action: Apply updates per vendor instructions.
  5. Read the advisory on jvn.jp for workarounds and exact fixed builds.
  6. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
GNUBash4.3 and earlierNot stated
AristaEos4.9.0 up to, but not including, 4.9.12; 4.10.0 up to, but not including, 4.10.9; 4.11.0 up to, but not including, 4.11.11; 4.12.0 up to, but not including, 4.12.9; 4.13.0 up to, but not including, 4.13.9; 4.14.0 up to, but not including, 4.14.4f4.9.12, 4.10.9, 4.11.11, 4.12.9, 4.13.9, 4.14.4f
OracleLinux4; 5; 6Not stated
QNAPQtsbefore 4.1.1; 4.1.14.1.1
MageiaMageia3.0; 4.0Not stated
Red HatGluster Storage Server For On-premise2.1Not stated
Red HatVirtualization3.4Not stated
Red HatEnterprise Linux4.0; 5.0; 6.0; 7.0Not stated
Red HatEnterprise Linux Desktop5.0; 6.0; 7.0Not stated
Red HatEnterprise Linux EUS5.9; 6.4; 6.5; 7.3; 7.4; 7.5; 7.6; 7.7Not stated
Red HatEnterprise Linux For IBM Z Systems5.9_s390x; 6.4_s390x; 6.5_s390x; 7.3_s390x; 7.4_s390x; 7.5_s390x; 7.6_s390x; 7.7_s390xNot stated
Red HatEnterprise Linux For Power Big Endian5.0_ppc; 5.9_ppc; 6.0_ppc64; 6.4_ppc64; 7.0_ppc64Not stated
Red HatEnterprise Linux For Power Big Endian EUS6.5_ppc64; 7.3_ppc64; 7.4_ppc64; 7.5_ppc64; 7.6_ppc64; 7.7_ppc64Not stated
Red HatEnterprise Linux For Scientific Computing6.0; 7.0Not stated
Red HatEnterprise Linux Server5.0; 6.0; 7.0Not stated
Red HatEnterprise Linux Server AUS5.6; 5.9; 6.2; 6.4; 6.5; 7.3; 7.4; 7.6; and 1 more rangesNot stated
Red HatEnterprise Linux Server From Rhui5.0; 6.0; 7.0Not stated
Red HatEnterprise Linux Server TUS6.5; 7.3; 7.6; 7.7Not stated
Red HatEnterprise Linux Workstation5.0; 6.0; 7.0Not stated
SUSEStudio Onsite1.3Not stated
openSUSEOpensuse12.3; 13.1; 13.2Not stated
SUSELinux Enterprise Desktop11; 12Not stated
SUSELinux Enterprise Server10; 11; 12Not stated
SUSELinux Enterprise Software Development Kit11; 12Not stated
DebianDebian Linux7.0Not stated

Version data comes from NVD's product matching; 35 further products are omitted here. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
NoneNo account or login is needed.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.19.8CriticalNVD
CVSS 3.19.8CriticalCISA (ADP)
CVSS 2.010.0HighNVD

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.

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

  1. CVE record published.
  2. Added to CISA's Known Exploited Vulnerabilities catalogue.
  3. Deadline for US federal agencies to remediate, set by CISA.
  4. CISA published its SSVC assessment (exploitation: active, automatable: yes, technical impact: total).
  5. Record last changed materially (score, affected products, status or references).

References

Third-party and government advisories

Other vulnerabilities in Bash

All Bash vulnerabilities

Spotted an error? Tell us.