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:

These are the steps needed to manually patch bash 4.1:

Here is the script you will need for bash 4.1. Be sure to check the 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:

These are the links to the bash repos I needed:

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.