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

macOS 27 next to MacBook Pro Running macOS 27

Apple Announces 'Full Disk Access' Changes on macOS Due to AI Agents

Friday October 2, 2026 12:59 pm PDT by
In a post on its developer news website today, Apple announced that it will be introducing "additional controls" for the "Full Disk Access" setting on macOS due to new risks posed by AI agents. This announcement comes amid the rise of always-on AI agents like Meta's Muse and OpenAI's Dots, which have prompted privacy concerns. "Some developers are using Full Disk Access in ways that could...
iphone duo colors

Apple Shares Photos Shot on iPhone Duo

Thursday October 1, 2026 1:37 pm PDT by
Apple on Instagram today shared a curated gallery of six photos shot on the iPhone Duo. The photos were shot by American photographers Jake Michaels and Jason Nocito, as part of a project commissioned by Apple. iPhone Duo is equipped with four cameras:A rear 48-megapixel Fusion Main camera A rear 48-megapixel Ultra Wide camera A front 12-megapixel Center Stage camera in the outer display A...
iPhone 18 Pro Max Glacier Camera

Apple Says iPhone 18 Pro Max Users With AT&T Cellular Issue Need to Have Device Replaced

Friday October 2, 2026 8:21 pm PDT by
Apple today confirmed that a "small number" of iPhone 18 Pro Max users on the AT&T network have experienced an issue that causes the device to lose cellular service, thereby preventing phone calls, text messages, and data from working. Thousands of users complained about the issue across the Apple Support Community and other platforms. Apple said it released iOS 27.0.1 earlier this week and...

Top Rated Comments

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


Attachment Image
Score: 31 Votes (Like | Disagree)
74 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
74 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)
74 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
74 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
Amazon Launches Early Prime Day Discounts on AirPods, iPad, MacBook Air, and More
Amazon Launches Early Prime Day Discounts on AirPods, iPad, MacBook Air, and More
5 hours ago
AirPods Pro 3 Hit Record Low $179 Price During Early Prime Day Sale
AirPods Pro 3 Hit Record Low $179 Price During Early Prime Day Sale
6 hours ago
Top Stories: Apple Smart Home Launch on October 13, iPhone Duo Production Issues, and More
Top Stories: Apple Smart Home Launch on October 13, iPhone Duo Production Issues, and More
1 day ago
Apple Says iPhone 18 Pro Max Users With AT&T Cellular Issue Need to Have Device Replaced
Apple Says iPhone 18 Pro Max Users With AT&T Cellular Issue Need to Have Device Replaced
2 days ago
Apple Announces 'Full Disk Access' Changes on macOS Due to AI Agents
Apple Announces 'Full Disk Access' Changes on macOS Due to AI Agents
2 days ago
AT&T and Apple Just Took Steps Toward Fixing iPhone 18 Pro Max Issue
AT&T and Apple Just Took Steps Toward Fixing iPhone 18 Pro Max Issue
2 days ago
AT&T on iPhone 18 Pro Max Issues: 'We Are Working With Apple'
AT&T on iPhone 18 Pro Max Issues: 'We Are Working With Apple'
2 days ago
Upgrading From an Older Apple Watch? Here's How the New Features Stack Up
Upgrading From an Older Apple Watch? Here's How the New Features Stack Up
2 days ago
Beats 360 Cushion Kits and Apple Accessories See Early Prime Day Price Drops
Beats 360 Cushion Kits and Apple Accessories See Early Prime Day Price Drops
2 days ago
Apple Store in UK Reopening on iPhone Duo Launch Day
Apple Store in UK Reopening on iPhone Duo Launch Day
2 days ago
AT&T Acknowledges iPhone 18 Pro Max Issues: Update 'Immediately'
AT&T Acknowledges iPhone 18 Pro Max Issues: Update 'Immediately'
3 days ago
New 'AirFly Drive' Accessory Turns Wired CarPlay Into Wireless CarPlay
New 'AirFly Drive' Accessory Turns Wired CarPlay Into Wireless CarPlay
3 days ago
Apple Shares Photos Shot on iPhone Duo
Apple Shares Photos Shot on iPhone Duo
3 days ago
Apple Says iPhone Duo Has Replaceable 'Cover Layer'
Apple Says iPhone Duo Has Replaceable 'Cover Layer'
3 days ago
Apple's Smart Home Camera Will Apparently Have 'No Video Recording'
Apple's Smart Home Camera Will Apparently Have 'No Video Recording'
3 days ago
Apple TV Just Updated Its Selection of 'Bonus' Movies
Apple TV Just Updated Its Selection of 'Bonus' Movies
3 days ago
iPhone 18 Pro Colors Buyer's Guide: Which Should You Choose?
iPhone 18 Pro Colors Buyer's Guide: Which Should You Choose?
3 days ago
Early Prime Big Deal Days: Best Discounts on Accessories, TVs, and More at Amazon
Early Prime Big Deal Days: Best Discounts on Accessories, TVs, and More at Amazon
3 days ago
MacBook Pro With OLED Touch Screen Rumored to Launch in October or November
MacBook Pro With OLED Touch Screen Rumored to Launch in October or November
3 days ago
Apple's All-New Home Hub Rumored to Launch in These Four Colors
Apple's All-New Home Hub Rumored to Launch in These Four Colors
3 days ago
iPhone 18 Pro Aperture Control Goes Fully Manual in Halide 3.2
iPhone 18 Pro Aperture Control Goes Fully Manual in Halide 3.2
3 days ago
Apple Stores Receive 'Do Not Open' Boxes Ahead of Smart Home Products Launch
Apple Stores Receive 'Do Not Open' Boxes Ahead of Smart Home Products Launch
3 days ago
iPhone 18 Pro Sales Jump in China Ahead of iPhone Duo Launch
iPhone 18 Pro Sales Jump in China Ahead of iPhone Duo Launch
3 days ago
Apple TV Still Down for Some Users Following Apple Services Outage
Apple TV Still Down for Some Users Following Apple Services Outage
3 days ago
Microsoft 365 Work Accounts May Stop Syncing in Apple Mail
Microsoft 365 Work Accounts May Stop Syncing in Apple Mail
2 days ago
Apple's Smart Home Hub: Everything We Know So Far
Apple's Smart Home Hub: Everything We Know So Far
4 days ago
Apple's Home Hub Borrows From the iPhone Duo's StandBy Mode
Apple's Home Hub Borrows From the iPhone Duo's StandBy Mode
4 days ago
Apple Invites App Updated With Three New Features
Apple Invites App Updated With Three New Features
4 days ago
Apple Event on October 13?
Apple Event on October 13?
4 days ago
Apple Watch SE 3 vs. Series 12 Buyer's Guide: Which Should You Buy?
Apple Watch SE 3 vs. Series 12 Buyer's Guide: Which Should You Buy?
4 days ago