Apple has released OS X Bash Update 1.0, a security update for Mac OS X that patches the Shellshock vulnerability. The Shellshock flaw affects the Bash shell used across many Unix-based systems including Mac OS X and variants of Linux.
"This update fixes a security flaw in the bash UNIX shell," according to Apple.
Apple's OS X Bash Update 1.0 is available for: OS X Lion 10.7.5, OS X Lion Server 10.7.5, OS X Mountain Lion 10.8.5, and OS X Mavericks 10.9.5.
Apple's security announcement on Monday described the Bash bug fixes as follows:
CVE-2014-6271, CVE-2014-7169 : In certain configurations, a remote attacker may be able to execute arbitrary shell commands. An issue existed in Bash's parsing of environment variables. This issue was addressed through improved environment variable parsing by better detecting the end of the function statement. This update also incorporated the suggested CVE-201407169 change, which resets the parser state. In addition, this update added a new namespace for exported functions by creating a function decorator to prevent unintended header passthrough to Bash. The names of all environment variables that introduce function definitions are required to have prefix "__BASH_FUNC<" and suffix ">()" to prevent unintended function passing via HTTP headers.
Apple's OS X Bash Update 1.0 may be obtained from the following webpages:
- OS X Lion users can go here to download OS X Bash Update 1.0.
- OS X Mountain Lion users can go here to download OS X Bash Update 1.0.
- OS X Mavericks users can go here to download OS X Bash Update 1.0.
How to Tell If You're Protected
After applying the security updates, here's how to check that Bash has been updated:
Open Terminal, and execute this command:
The Bash version after applying this security update will be:
- OS X Lion: GNU bash, version 3.2.53(1)-release (x86_64-apple-darwin11)
- OS X Mountain Lion: GNE bash, version 3.2.53(1)-release (x86_64-apple-darwin12)
- OS X Mavericks: GNU bash, version 3.2.53(1)-release (x86_64-apple-darwin13)
If you have the latest version, check to see if your Mac is vulnerable following the steps outlined last week. After you update, upon running the test it should no longer return the word "vulnerable" as an answer.