Lack of data validation In bash

Description

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.

Mitigation

Update Impact

Minimal update. May introduce new vulnerabilities or breaking changes.

Ecosystem
Package
Affected version
Patched versions

References

1. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2014-62712. https://www.exploit-db.com/exploits/388493. https://www.exploit-db.com/exploits/347774. https://www.exploit-db.com/exploits/399185. https://www.exploit-db.com/exploits/348956. https://www.exploit-db.com/exploits/348397. https://www.exploit-db.com/exploits/409388. https://www.exploit-db.com/exploits/349009. https://www.exploit-db.com/exploits/3476610. https://www.exploit-db.com/exploits/3511511. https://www.exploit-db.com/exploits/3476512. https://www.exploit-db.com/exploits/3489613. https://www.exploit-db.com/exploits/3486214. https://www.exploit-db.com/exploits/4293815. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2014/CVE-2014-6271.yaml16. https://github.com/dlitz/bash-cve-2014-6271-fixes17. https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/dhcp/bash_environment.rb18. https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/smtp/qmail_bash_env_exec.rb19. https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/osx/local/vmware_bash_function_root.rb20. https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/ftp/pureftpd_bash_env_exec.rb21. https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/apache_mod_cgi_bash_env_exec.rb22. https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/cups_bash_env_exec.rb23. https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/advantech_switch_bash_env_exec.rb24. https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/ipfire_bashbug_exec.rb