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
- CVSS: 9.8 (critical)
- EPSS: 100.00% chance of exploitation in the next 30 days
- CISA KEV: Known exploited, listed 2022-01-28
- Published: 2014-09-24
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): No
- Mitigation: Yes, see below
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
- Check the version: bash --version, and test with the vendor's published check for CVE-2014-6271.
- Install the bash update of your distribution (apt-get install --only-upgrade bash, or yum update bash).
- Update embedded devices and appliances that use bash for CGI through their vendor firmware.
- 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.