CVE-2014-7186 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
The redirection implementation in parse.y in GNU Bash through 4.3 bash43-026 allows remote attackers to cause a denial of service (out-of-bounds array access and application crash) or possibly have unspecified other impact via crafted use of here documents, aka the "redir_stack" issue.
Affected software: gnu bash
Scores
- CVSS: 10.0 (high)
- EPSS: 64.34% chance of exploitation in the next 30 days
- CISA KEV: Not listed
- Published: 2014-09-28
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.