Skip to content

Instantly share code, notes, and snippets.

@Stasevi4
Created September 25, 2014 17:54
Show Gist options
  • Save Stasevi4/1d33d0160f8e5642aadf to your computer and use it in GitHub Desktop.
Save Stasevi4/1d33d0160f8e5642aadf to your computer and use it in GitHub Desktop.
Fix for CVE-2014-6271 bash vulnerability,
mkdir src
cd src
wget http://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz
#download all patches
for i in $(seq -f "%03g" 0 25); do wget http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-$i; done
tar zxvf bash-4.3.tar.gz
cd bash-4.3
#apply all patches
for i in $(seq -f "%03g" 0 25);do patch -p0 < ../bash43-$i; done
#build and install
./configure && make && make install
cd ..
cd ..
rm -r src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment