Live: Amazon Product Event Prime Sale Lenovo Duet 3 Windows 11 Update HP OLED Laptop Gift Card Deal Bluetooth Boom Boxes Huawei Mate XS 2
Want CNET to notify you of price drops and the latest stories?
No, thank you

Apple patches Bash vulnerability on Macs

The company said previously that the vast majority of Macs were "safe by default" from the new security vulnerability known as the Bash or Shellshock bug.

Phil Schiller, Apple's head of marketing, talks about the company's Mac line during a recent event.

All of Apple's recent Mac computers are now safe from a security flaw that could potentially allow hackers to take over an operating system.

Known as the , the latest vulnerability for the world's computers involves the execution of malicious code within a bash shell -- a command-line shell used in many Linux and Unix operating systems, and by Apple's Mac OS X operating system.

Apple on Monday said it has now patched the Bash vulnerability for its OS X Lion, Mountain Lion and Mavericks software. The company also created a site for users to download the Bash update.

The move followed a statement by Apple late last week that most Mac users were safe from the security flaw, but it was "working to quickly provide a software update for our advanced UNIX users."

"Bash, a UNIX command shell and language included in OS X, has a weakness that could allow unauthorized users to remotely gain control of vulnerable systems," Apple said last week. "With OS X, systems are safe by default and not exposed to remote exploits of bash unless users configure advanced UNIX services."

The Bash glitch is reminiscent of the Heartbleed security flaw that left information stored on data servers potentially vulnerable to hackers. Heartbleed was first identified in April, and an estimated 300,000 servers were still exposed two months later.

Some security experts have said the Bash bug is bigger than Hearbleed because it "interacts with other software in unexpected ways" and because an "enormous percentage" of software interacts with the shell.

Bash, a quarter-century-old security flaw, allows malicious code execution within the bash shell (commonly accessed through Command Prompt on PC or Mac's Terminal application) to take over an operating system and access confidential information.