Skip to Content

Root Access Sudo Bug Found to Affect macOS Big Sur

A sudo bug that can grant an attacker root access has been discovered to affect macOS Big Sur (via ZDNet).

sudo bug macos

The security vulnerability, identified last week as "CVE-2021-3156" by the Qualys Security Team, affects sudo, which is a program that allows users to run commands with the security privileges of another user, such as an administrator. The bug triggers a "heap overflow" in sudo that changes the current user's privileges to enable root-level access. This can give an attacker access to the entire system. An attacker would need to gain low-level access to a system first to be able to exploit the bug, such as via planted malware.

Sudo is part of many Unix-like systems, including macOS, but it was initially unknown if the vulnerability affected Mac machines since it was only tested by Qualys on Ubuntu, Debian, and Fedora. Security researcher Matthew Hickey has now confirmed that the most recent version of macOS, macOS Big Sur 11.2 can be subject to the sudo attack.

Last week, there was speculation that the macOS Big Sur 11.2 update may address the sudo vulnerability, though it was not definitively known at the time if the bug would affect macOS. While it was found that sudo was left unchanged in macOS Big Sur 11.2, it is now clear that macOS is affected by the exploit.

With some minor modifications, Hickey found that the sudo bug could be used to grant attackers access to macOS root accounts, and the discovery has now been verified by Carnegie Mellon University vulnerability analyst Will Dormann.

Apple has reportedly been notified of the CVE-2021-3156 vulnerability, and due to the severity of the issue, a patch will likely be released soon.

Popular Stories

apple wallet drivers license feature iPhone 15 pro

Apple Wallet Driver's Licenses Coming to These U.S. States

Saturday December 5, 2026 8:20 am PST by
Starting next year, residents of Connecticut will be able to add their driver's license or state ID to the Apple Wallet app on the iPhone and Apple Watch. The digital ID can be used to display proof of identity or age at TSA checkpoints in select airports, at select businesses, and in select iPhone apps, but acceptance is still very limited. Last month, Connecticut released a mobile ID app...
Apple Kukatpally Wallpaper

Apple Just Released Five New Products

Wednesday December 2, 2026 6:12 am PST by
Apple this week released five new (RED) products, which are available online and at Apple Stores in the U.S. and dozens of other countries. The five new products with (RED) editions:AirPods Max 2 ($549) HomePod mini 2 ($149) Apple Watch Series 12 (Titanium) ($699) AirPods Pro 3 with Wrist Strap ($269) AirTag 2 with AirTag FineWoven Key Ring ($59)Apple is now using (RED) branding instead...
AppleCare Bright Red

Apple Raises AppleCare+ Prices for Several Macs

Friday December 4, 2026 1:48 pm PST by
Apple this week adjusted the price of some of its AppleCare+ for Mac plans, changing monthly, yearly, and fixed-term pricing options. While some prices went up, others went down, though most decreases are for fixed-term plans. All subscription plans that went up in price have increased $0.50 per month, or $5 per year. The change brings the AppleCare+ pricing of some older Macs in line with...

Top Rated Comments

76 months ago

Apple rushing beta software to market, again.
This vulnerability has been present for more than a decade in all sorts of UNIXes! It's not something at all limited to Apple's QA...
Score: 34 Votes (Like | Disagree)
Havalo Avatar
76 months ago


Attachment Image
Score: 31 Votes (Like | Disagree)
76 months ago

So, mostly free OSes. That's much of a defense....

Devs knew about the potential, and chose not to address it. They would rather rush a beta product to market.
One day you will learn more about software and you will look back at this comment and say "wow, I was totally clueless back then."
Score: 27 Votes (Like | Disagree)
Gabebear Avatar
76 months ago

Wow I thought this would have been patched out in 11.2. Hopefully we will get a
supplemental patch shortly.
It turns most fairly minor security issues into full-blown root exploits… fairly terrifying.
Score: 9 Votes (Like | Disagree)
76 months ago

I'd think we'd have better tools/procedures for finding bugs like this a lot sooner.

Is there not an automated tool that can look at some code and say "hey, right here it's possible for a heap overflow to occur and there's no error handling code to deal with it"?
Sure there are tools that catch some of these problems via static analysis etc and there are languages where this class of problems might not even occur.

But it is also true that the day that the CVE was released I updated my Linux servers and got a fixed/patched sudo, while even macOS 11.3 beta1 still has the issue, so this is also indicative of Apple release engineering capabilities, or lack of them.
Score: 8 Votes (Like | Disagree)
justperry Avatar
76 months ago

So is this a zero day, drive-by vulnerability? Or does the attacker have to have physical access?
Nope

"An attacker would need to gain low-level access to a system first to be able to exploit the bug, such as via planted malware."
Score: 8 Votes (Like | Disagree)
Latest Stories
Apple's (RED) AirPods Max 2 Drop $100 as MacBook and iPhone Black Friday Deals Stick Around
Apple's (RED) AirPods Max 2 Drop $100 as MacBook and iPhone Black Friday Deals Stick Around
11 hours ago
Amazon Just Beat Black Friday: M6 MacBook Pro Drops to New Record Low
Amazon Just Beat Black Friday: M6 MacBook Pro Drops to New Record Low
11 hours ago
Apple Wallet Driver's Licenses Coming to These U.S. States
Apple Wallet Driver's Licenses Coming to These U.S. States
11 hours ago
Top Stories: Five New (RED) Apple Products, iPhone Rumors, and More
Top Stories: Five New (RED) Apple Products, iPhone Rumors, and More
13 hours ago
15 More iPhone Duo Apps Worth Trying
15 More iPhone Duo Apps Worth Trying
1 day ago
Apple Raises AppleCare+ Prices for Several Macs
Apple Raises AppleCare+ Prices for Several Macs
1 day ago
Review: BMX's SolidSafe Duo is a Power Bank Tailor-Made for the iPhone Duo
Review: BMX's SolidSafe Duo is a Power Bank Tailor-Made for the iPhone Duo
1 day ago
Apple's New (RED) AirPods Max 2 Now Available for $100 Off
Apple's New (RED) AirPods Max 2 Now Available for $100 Off
1 day ago
The MacRumors Show: Apple's New (RED) Products and Siri AI Problems
The MacRumors Show: Apple's New (RED) Products and Siri AI Problems
1 day ago
Disney+ App Now Optimized for iPhone Duo
Disney+ App Now Optimized for iPhone Duo
1 day ago
AirPods 5 Drop to $99 for the First Time Ever on Amazon
AirPods 5 Drop to $99 for the First Time Ever on Amazon
2 days ago
Apple Loses Early Appeal Bid in Apple Pay Fees Lawsuit
Apple Loses Early Appeal Bid in Apple Pay Fees Lawsuit
2 days ago
WhatsApp Strengthens Built-In Spam Protections for Usernames
WhatsApp Strengthens Built-In Spam Protections for Usernames
2 days ago
Jon Prosser Pushes for Year-Long Delay in iOS 26 Leaks Case
Jon Prosser Pushes for Year-Long Delay in iOS 26 Leaks Case
2 days ago
BBC iPlayer App Gains UHD Streaming Support on Apple TV 4K
BBC iPlayer App Gains UHD Streaming Support on Apple TV 4K
2 days ago
iPhone 18 Delays Linked to Memory Costs and Ternus Decisions
iPhone 18 Delays Linked to Memory Costs and Ternus Decisions
2 days ago
WhatsApp Group Chats Now Work With Third-Party App in Europe
WhatsApp Group Chats Now Work With Third-Party App in Europe
2 days ago
Apple Says More Than 400,000 Apps Now Optimized for iPhone Duo
Apple Says More Than 400,000 Apps Now Optimized for iPhone Duo
2 days ago
Apple's iPhone Game of the Year Isn't Optimized for iPhone Duo
Apple's iPhone Game of the Year Isn't Optimized for iPhone Duo
2 days ago
Four New Apple Arcade Games Available Today
Four New Apple Arcade Games Available Today
2 days ago
YouTube TV Price Climbs Again, Now Nearly $90 a Month
YouTube TV Price Climbs Again, Now Nearly $90 a Month
2 days ago
Some M5 Macs Have a Studio Display XDR Problem
Some M5 Macs Have a Studio Display XDR Problem
2 days ago
Cyber Week iPhone Deals: Get an iPhone Duo at No Cost for the Holidays
Cyber Week iPhone Deals: Get an iPhone Duo at No Cost for the Holidays
2 days ago
Apple's Former Software Design Chief Alan Dye on Why He Joined Meta
Apple's Former Software Design Chief Alan Dye on Why He Joined Meta
2 days ago
Meta Considers iPhone Rival and Revives Smartwatch Plans
Meta Considers iPhone Rival and Revives Smartwatch Plans
2 days ago
iPhone 20 Pro Titanium Rumors Grow as Material Orders Rise
iPhone 20 Pro Titanium Rumors Grow as Material Orders Rise
2 days ago
Apple Announces 'The Morning Show' Season 5 Release Date
Apple Announces 'The Morning Show' Season 5 Release Date
3 days ago
Apple Pay Promo Offers $25 Gift Card at Gorjana
Apple Pay Promo Offers $25 Gift Card at Gorjana
3 days ago
Apple Announces 2026 iPhone App of the Year and More
Apple Announces 2026 iPhone App of the Year and More
3 days ago
M6 MacBook Pro Cyber Week Deal Takes $250 Off Select Models
M6 MacBook Pro Cyber Week Deal Takes $250 Off Select Models
3 days ago