CVE-2014-6271 in gnu bash

LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.

What the vulnerability is

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 software: gnu bash, arista eos, oracle linux, qnap qts, mageia, redhat gluster storage server for on-premise, redhat virtualization, redhat enterprise linux, redhat enterprise linux desktop, redhat enterprise linux eus

Scores

What LogPulse has for it

How to mitigate it

Update GNU Bash to a release with all Shellshock fixes

Patch or upgrade. Bash before the September-October 2014 updates runs code placed after a function definition in an environment variable, which CGI scripts fill from HTTP headers. The vendor bash updates fix CVE-2014-6271 and the follow-up parser bugs.

Applies to: GNU Bash through 4.3 patch 25 (and the incomplete fixes up to patch 27), on servers that run CGI scripts, DHCP clients or other services that pass outside data in environment variables

  1. Check the version: bash --version, and test with the vendor's published check for CVE-2014-6271.
  2. Install the bash update of your distribution (apt-get install --only-upgrade bash, or yum update bash).
  3. Update embedded devices and appliances that use bash for CGI through their vendor firmware.
  4. Remove or disable CGI scripts that are not needed (mod_cgi, /cgi-bin).

Sources:

Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.

We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.

Start free with LogPulse