How to switch Homebrew formulas to older version

How to fix “Shell Shock” bash bug on OS X

Prevent Heartbleed - upgrade openssl with brew on your mac