How To Patch the ShellShock bash Bug on Older or Beta AWS Linux AMI’s

Published Date Author: , Posted October 1st, 2014 at 3:07:49pm

This is the standard upgrade method for AWS Linux AMI’s:

Or use this for the version 2012.09, 2012.03, or 2011.09 repositories:

For older AWS Linux AMI’s, you may not be able to use the standard upgrade method as described in this link:
https://alas.aws.amazon.com/ALAS-2014-419.html

These are the steps needed to manually patch bash 4.1:

Here is the bash-multipatch.sh script you will need for bash 4.1. Be sure to check the ftp.gnu.org patch directories and update the lastpatch variable to match the latest patch number! Edit this for other bash versions like 3.2…

All credit goes to Steve Jenkins for these two posts which I read carefully and worked through the steps from:
http://stevejenkins.com/blog/2014/09/how-to-manually-update-bash-to-patch-shellshock-bug-on-older-fedora-based-systems/
http://stevejenkins.com/blog/2014/09/shellshock-warning-even-after-patching-your-old-vulnerable-bash-binary-could-be-resurrected-from-memory/

These are the links to the bash repos I needed:
https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/
https://ftp.gnu.org/pub/gnu/bash/bash-4.1-patches/

Comments reader  One Reader Comment

René - Gravatar

René said on October 9, 2014, 11:37 am:

Thanks for this post, really helped me out when i saw that one of my machines is Amazon Linux Image 1 (beta). Worked like a charm and i really liked the “security” measures (im not the fan of stupid c&p).

Leave Your Comment  Leave a comment

All fields marked with "*" are required.