LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

CVE-2014-6271: GNU Bourne-Again Shell (Bash) Arbitrary Code Execution Vulnerability

RBRecent Breaches Vulnerability Intelligence·Jan 28, 2022
High⚠ Actively exploited (CISA KEV)
High
Severity
Active
CISA KEV
No
Ransomware use
Jul 28, 2022
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2014-6271 to its Known Exploited Vulnerabilities catalog on Jan 28, 2022, with a federal patch deadline of Jul 28, 2022 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which allows remote attackers to execute code.

CVE-2014-6271 is an arbitrary code execution vulnerability in the GNU Bourne-Again Shell (Bash). It stems from how Bash handles certain environment variable values, allowing remote attackers to execute code. Because Bash is widely used as a system shell and in contexts that process untrusted input via environment variables, successful abuse can give an attacker control over the affected host. Confirm all version and configuration details against the vendor advisory.

CISA summarizes the issue as GNU Bash through 4.3 processing trailing strings after function definitions in the values of environment variables. The associated weakness is CWE-78 (OS command injection). Known ransomware use is not documented. The required action is to apply updates per vendor instructions.

How it works

This flaw belongs to the OS command injection class (CWE-78). Bash interprets environment variable values that contain function definitions. When those values include trailing strings after the function definition, older Bash behavior can cause those trailing strings to be executed rather than treated as inert data.

An attacker who can influence environment variables seen by a Bash process—commonly through network-facing services, CGI scripts, or other components that pass attacker-controlled data into the environment—may cause Bash to run attacker-chosen commands in the context of that process. Exact exploit mechanics and affected call paths vary by how the service invokes Bash; do not assume a single universal trigger. Confirm the precise conditions in the vendor advisory for your distribution and Bash build.

Am I affected? How to find it in your systems

Bash is the default or common interactive and non-interactive shell on many Linux and Unix-like systems. It appears on servers, workstations, appliances, containers, and embedded devices, and is often invoked by web servers, force-command SSH setups, DHCP clients, and other services that set environment variables from external input.

How to remediate

Patch first. Apply the vendor-supplied Bash update for your operating system or distribution exactly as described in the vendor advisory and in line with CISA’s direction to apply updates per vendor instructions. After updating, restart services or hosts as required so that running processes load the fixed Bash.

If you can't patch immediately

Compensate until you can patch. These measures reduce exposure but do not replace the vendor update.

If your data may have been exposed

Actively exploited code-execution vulnerabilities can lead to full host compromise and subsequent data theft or lateral movement. If you have reason to believe systems were exposed before patching, follow your incident-response process: isolate affected hosts, preserve evidence, rotate credentials that may have been accessible, and assess what data the compromised context could reach. You can run a free exposure scan of your email addresses to check whether they appear in known breach datasets and prioritize further monitoring accordingly.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedGNU · Bourne-Again Shell (Bash)
WeaknessCWE-78
Added to CISA KEVJan 28, 2022
Federal patch deadlineJul 28, 2022
Known ransomware useNot documented
Check if your data is exposed →

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities