Check System Vulnerability
On each of your systems that run Bash, you may check for Shellshock vulnerability by running the following command at the bash prompt:
env VAR='() { :;}; echo Bash is vulnerable!' bash -c "echo Bash Test"Therefore, if you see the following output, your version of Bash is vulnerable and should be updated:
Bash is vulnerable!Bash TestFix Vulnerability: Update Bash
The easiest way to fix the vulnerability is to use your default package manager to update the version of Bash.
Update Bash to the latest version available via apt-get on Debian/Ubuntu:
sudo apt-get update && sudo apt-get install --only-upgrade bash