Criticical BASH vulnerability discovered – update BASH on your CentOS7

[rprasad@vm ~]$ sudo env x='() { :;}; echo vulnerable' bash -c "echo this is a test"         //Run following command to check. If it outputs vulnerable then our bash is vulnerable
vulnerable
this is a test
[rprasad@vm ~]$sudo su -                                               //Become root
[root@vm ~]# yum clean all && yum update bash
Loaded plugins: fastestmirror
Cleaning repos: base extras updates
Cleaning up everything
Loaded plugins: fastestmirror
base                                                     | 3.6 kB     00:00
extras                                                   | 3.4 kB     00:00
updates                                                  | 3.4 kB     00:00
(1/4): base/7/x86_64/group_gz                              | 154 kB   00:00
(2/4): extras/7/x86_64/primary_db                          |  41 kB   00:00
(3/4): updates/7/x86_64/primary_db                         | 956 kB   00:01
(4/4): base/7/x86_64/primary_db                            | 5.1 MB   00:03
Determining fastest mirrors
 * base: mirror.upsi.edu.my
 * extras: mirror.upsi.edu.my
 * updates: mirror.upsi.edu.my
Resolving Dependencies
--> Running transaction check
---> Package bash.x86_64 0:4.2.45-5.el7 will be updated
---> Package bash.x86_64 0:4.2.46-12.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package        Arch             Version                   Repository      Size
================================================================================
Updating:
 bash           x86_64           4.2.46-12.el7             base           1.0 M

Transaction Summary
================================================================================
Upgrade  1 Package

Total download size: 1.0 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
bash-4.2.46-12.el7.x86_64.rpm                              | 1.0 MB   00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : bash-4.2.46-12.el7.x86_64                                    1/2
  Cleanup    : bash-4.2.45-5.el7.x86_64                                     2/2
  Verifying  : bash-4.2.46-12.el7.x86_64                                    1/2
  Verifying  : bash-4.2.45-5.el7.x86_64                                     2/2

Updated:
  bash.x86_64 0:4.2.46-12.el7

Complete!
[root@vm ~]#
[root@vm ~]# env x='() { :;}; echo vulnerable' bash -c "echo this is a test"                  //Run again command to check
this is a test
[root@vm ~]#

Ref: Centos Blog

Comments

Popular posts from this blog

Xmanager RHEL 6 xclock :command not found -- Resolved

Racktable on ubuntu installation

RPM Tit-Bits ;-)