Apple has pledged to keep a strong check on its software development process, just a day after a researcher discovered a bug in the latest version of its Mac operating system that could give hackers total control of vulnerable machines.

Apple assured that it had released a patch to fix the bug and in all probability would be automatically installed on vulnerable machines on the later part of the day.

An official statement by Apple also read that “We greatly regret this error and we apologize to all Mac users. Our customers deserve better. We are auditing our development processes to help prevent this from happening again”.

More on the bug:

To exploit this bug, a hacker would need to have physical access to a vulnerable Mac when a user is logged on to the computer. The attacker would then need to change settings on the computer to establish a “root” account, which they could later access. These Root accounts give users complete control over a machine.

The U.S. and German governments have already issued alerts advising Mac users to install the patch.

Apple said that its security engineers learned of the problem on Tuesday afternoon and posted the patch within 24 hours.

Further, in another statement, Apple regarded that, “Security is a top priority for every Apple product, and regrettably we stumbled with this release of Mac OS”.