链接:https://bugzilla.redhat.com/show_bug.cgi?id=1141597 https://securityblog.redhat.com/2014/09/24/bash-specially-crafted-environment-variables-code-injection-attack/ *>测试方法:警 告以下程序(方法)可能带有攻击性,仅供安全研究与教学之用。使用者风险自负! 本地验证bash是否受影响的方法:$ env x="() { :;}; echo vulnerable" bash -c "echo this is a test" vulnerable this is a test如果显示上述信息,则受影响。$ env x="() { :;}; echo vulnerable" bash -c "echo this is a test" bash: warning: x: ignoring function definition attempt bash: error importing function definition for `x"如果显示上述信息,则不受影响。建议: 厂商补丁:GNU --- 目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:http://www.gnu.org/software/bash http://ftp.gnu.org/gnu/bash/参考: https://bugzilla.redhat.com/show_bug.cgi?id=1141597 https://securityblog.redhat.com/2014/09/24/bash-specially-crafted-environment-variables-code-injection-attack/ 、 https://bugzilla.redhat.com/attachment.cgi?id=938976