CVE-2014-6277 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 bash43-026 does not properly parse function definitions in the values of environment variables, which allows remote attackers to execute arbitrary code or cause a denial of service (uninitialized memory access, and untrusted-pointer read and write operations) 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 and CVE-2014-7169.

Affected software: gnu bash

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