The flaw, revealed on Tuesday, also made it possible to access powerful administrator rights of the system, Tech Crunch reported.
"We greatly regret this error and we apologise to all Mac users. When our security engineers became aware of the issue Tuesday afternoon, we immediately began working on an update that closes the security hole," the firm was quoted as saying by BBC.
Apple has pushed out an update to fix the major security hole in its Mac operating system. The latest version of MacOS will automatically download the update.
It is only second time Apple has forcibly updated users' machines and comes in response to widespread concern that millions of Mac computers were at risk, the report said.
Users running older versions of MacOS will see a notification prompting an upgrade.
"Regrettably, we stumbled with this release of MacOS. We are auditing our development processes to help prevent this from happening again," it said.
Disclaimer: No Business Standard Journalist was involved in creation of this content