Ultimate Solution to CentOS Bash Vulnerabilities

Source: Internet
Author: User

Ultimate Solution to CentOS Bash Vulnerabilities

Software and systems that have been successfully used: All Linux operating systems that have installed GNU bash versions earlier than or equal to 4.3.
 
Bash vulnerability Description: This vulnerability is caused by the special environment variables created before the bash shell you call. These variables can contain code and will be executed by bash.
 
[Vulnerability Detection Method]

Use the Vulnerability Detection command in server commands: env-I X = '() {(a) => \ 'bash-C' echo date'; cat echo
 
The current system time is displayed before the fix, indicating that the server vulnerability has not been fixed. please fix it in time. The following is a Linux system fix solution, which includes the Final Solution for CentOS and Ubuntu.

I. CentOS final Bash vulnerability Fixing Solution

In the server command box, type the following command to upgrade to fix the vulnerability:

Yum clean all
Yum makecache
Yum-y update bash

Ii. Ubuntu finally fixes the Bash vulnerability. Run the following command:

Apt-cache gencaches
Apt-get-y install -- only-upgrade bash

After the above method is fixed, run the detection command again: env-I X = '() {(a) => \ 'bash-C' echo date'; cat echo

If you use the fix scheme to fix the vulnerability, output: date, that is, if the output result contains the date string, the vulnerability fix is successful.

Bash vulnerability latest patch installation tutorial [Download]

Gitlab-shell is affected by Bash CVE-2014-6271 Vulnerability

Linux security vulnerability exposure Bash is more serious than heartbleed

The solution is to upgrade Bash. Please refer to this article.

Linux Bash Security Vulnerability repair

This article permanently updates the link address:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.