Root Access Sudo Bug Found to Affect macOS Big Sur - MacRumors
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 pro tell logo

Apple Launching Five New Products This Friday

Monday November 2, 2026 1:22 am PST by
Apple is releasing five new products this Friday, November 6, following pre-orders that opened last week, including its first touchscreen MacBook Pro models. The following new products will be available from Friday: iPad mini with OLED display and A20 Pro chip iMac with M6 chip 14-inch MacBook Pro with M6 chip 14-inch MacBook Pro with OLED touchscreen 16-inch MacBook Pro with OLED...
iPhone Duo Display Cracking

Apple Alerts Stores to iPhone Duo's Display Cracking Issue

Friday October 30, 2026 3:20 pm PDT by
In a memo shared with Apple Stores and Apple Authorized Service Providers this week, and later obtained by MacRumors, Apple provided technicians with guidance on how to diagnose and address the iPhone Duo's inner display cracking issue. If a customer reports the issue, Apple advised technicians to inspect the iPhone Duo and repair or replace it in accordance with their standard procedures....
Apple Logo Gradient 16x9 1

Apple Isn't Done With 2026: Here's What's Still Coming

Monday November 2, 2026 7:27 am PST by
Apple's busiest season isn't over yet. Far from it. With two hardware launch dates still to come in November, plus software updates and new smart home accessories running into December, there's more on the way from Apple before the end of 2026, so be sure to stick around. Below, we've rounded up what's still coming, along with one date in particular that's worth watching if you're a holiday...

Top Rated Comments

75 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
75 months ago


Attachment Image
Score: 31 Votes (Like | Disagree)
75 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
75 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)
75 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
75 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 Requiring Developers to Disclose Location Sharing and Dating Features in Apps
Apple Requiring Developers to Disclose Location Sharing and Dating Features in Apps
5 hours ago
Apple's Q4 2026 Earnings Call Takeaways
Apple's Q4 2026 Earnings Call Takeaways
5 hours ago
Apple Dodges Question on More Price Hikes as Memory Costs Climb
Apple Dodges Question on More Price Hikes as Memory Costs Climb
6 hours ago
Apple CEO Ternus Says iPhone Duo Shortages Have No End Date in Sight
Apple CEO Ternus Says iPhone Duo Shortages Have No End Date in Sight
8 hours ago
Apple Reports 4Q 2026 Results: $30.7B Profit on $114.5B Revenue
Apple Reports 4Q 2026 Results: $30.7B Profit on $114.5B Revenue
8 hours ago
Early Black Friday Brings Steep Price Drops on Apple's Latest iPhone Cases
Early Black Friday Brings Steep Price Drops on Apple's Latest iPhone Cases
11 hours ago
John Ternus Hosting His First Earnings Call as Apple CEO Today
John Ternus Hosting His First Earnings Call as Apple CEO Today
12 hours ago
Here's What Spotify Looks Like on Apple's HomeView
Here's What Spotify Looks Like on Apple's HomeView
13 hours ago
iOS 27.2.1 Coming Soon, iOS 27.3 Beta Likely Available Tomorrow
iOS 27.2.1 Coming Soon, iOS 27.3 Beta Likely Available Tomorrow
14 hours ago
Mark Gurman: Apple Initially Aimed to Release iPhone Duo in November
Mark Gurman: Apple Initially Aimed to Release iPhone Duo in November
14 hours ago
Best Early Black Friday Deals on Apple Products Available Now
Best Early Black Friday Deals on Apple Products Available Now
14 hours ago
Apple Isn't Done With 2026: Here's What's Still Coming
Apple Isn't Done With 2026: Here's What's Still Coming
14 hours ago
Apple 'HomeView Ultra' With 9-Inch 360º Screen Detailed in New Report
Apple 'HomeView Ultra' With 9-Inch 360º Screen Detailed in New Report
15 hours ago
Apple TV 4K Pre-Order Discount Returns at Amazon
Apple TV 4K Pre-Order Discount Returns at Amazon
15 hours ago
Zoom and These Microsoft Apps Now Optimized for iPhone Duo
Zoom and These Microsoft Apps Now Optimized for iPhone Duo
16 hours ago
Canva Brings Free All-in-One Affinity App to iPad
Canva Brings Free All-in-One Affinity App to iPad
16 hours ago
iPhone Duo: Latest Buyer Wait Times
iPhone Duo: Latest Buyer Wait Times
17 hours ago
iPhone Duo Owners Can't Change Display Zoom After Setup
iPhone Duo Owners Can't Change Display Zoom After Setup
13 hours ago
Apple HomeView Could Double as a Security Camera
Apple HomeView Could Double as a Security Camera
20 hours ago
Apple Launching Five New Products This Friday
Apple Launching Five New Products This Friday
20 hours ago
Nearly Every M5 MacBook Air Now $200 Off on Amazon
Nearly Every M5 MacBook Air Now $200 Off on Amazon
2 days ago
Apple's HomeView Ships With Six-Month-Old Software
Apple's HomeView Ships With Six-Month-Old Software
2 days ago
Three New iPads Rumored to Launch in First Half of 2027
Three New iPads Rumored to Launch in First Half of 2027
2 days ago
Apple Offers Steps to Fix Daylight Saving Time Bug on Apple Watch
Apple Offers Steps to Fix Daylight Saving Time Bug on Apple Watch
2 days ago
Apple Watch Ultra 4 Hits All-Time Low Price With Amazon's $99 Discount
Apple Watch Ultra 4 Hits All-Time Low Price With Amazon's $99 Discount
3 days ago
Reminder: Apple's Big Discount on Beats 360 Ear Cushions Ends Today
Reminder: Apple's Big Discount on Beats 360 Ear Cushions Ends Today
3 days ago
Here's a New Tour of Apple's HomeView Software
Here's a New Tour of Apple's HomeView Software
3 days ago
Apple Reveals New iPad Mini's Battery Capacity
Apple Reveals New iPad Mini's Battery Capacity
3 days ago
Top Stories: Apple's Big MacBook Pro, iPad mini and iMac Updates
Top Stories: Apple's Big MacBook Pro, iPad mini and iMac Updates
3 days ago
'Pluribus' Season 2 Reportedly Starts Production Today
'Pluribus' Season 2 Reportedly Starts Production Today
3 days ago