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

M5 MacBook Pro

RIP, MacBook Ultra

Monday October 19, 2026 9:37 am PDT by
Apple today sent out invites for an experience in Los Angeles on Wednesday, October 28, and the "Pro and tell" tagline on the invitation likely means that the rumored MacBook models with touch-enabled OLED displays will stick with MacBook Pro branding instead of the once-rumored "MacBook Ultra" name. The long-rumored "iPhone Ultra" ended up being named iPhone Duo, so speculation that Apple...
iphone duo standby

Apple Retail Staff Told to Warn Against iPhone Duo Walk-In Purchases

Saturday October 17, 2026 2:30 pm PDT by
Some Apple retail employees have been told to warn customers against visiting to purchase an iPhone Duo without a pre-order on Friday, October 23. Apple Store employees told MacRumors that they have been advised that there will likely be no iPhone Duo stock available for walk-in purchases on launch day. Staff have been instructed to discourage customers without pre-orders from coming in...
iphone duo feature

Mark Gurman: Apple Made 'Major Mistake' With iPhone Duo Pre-Orders

Sunday October 18, 2026 7:33 am PDT by
Despite knowing that the iPhone Duo would face "severe supply constraints" due to manufacturing challenges, Apple chose to begin iPhone Duo pre-orders on Friday instead of waiting until it had more inventory ready, according to Bloomberg's Mark Gurman. In his Power On newsletter today, he called this decision a "major mistake." "Let me cut to the chase: Apple made a major mistake here," he...

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's App Store Chief Explains Its Push for Premium Games
Apple's App Store Chief Explains Its Push for Premium Games
6 minutes ago
Apple Could Owe Even More After $5.7 Billion Patent Verdict
Apple Could Owe Even More After $5.7 Billion Patent Verdict
40 minutes ago
Skyrim Comes to Apple Silicon Macs With New Unofficial Installer
Skyrim Comes to Apple Silicon Macs With New Unofficial Installer
1 hour ago
Apple Highlights Mac and iPad Use in Paris Design Exhibition
Apple Highlights Mac and iPad Use in Paris Design Exhibition
2 hours ago
Apple Seeks 6G Modem Engineers as It Plans for Post-5G iPhones
Apple Seeks 6G Modem Engineers as It Plans for Post-5G iPhones
4 hours ago
First iPhone Duo Unboxing Video Appears Ahead of Friday Launch
First iPhone Duo Unboxing Video Appears Ahead of Friday Launch
5 hours ago
Perplexity Computer Can Now Run Fully Locally on Mac
Perplexity Computer Can Now Run Fully Locally on Mac
6 hours ago
Apple's Touchscreen OLED MacBook Pro: Everything We Know
Apple's Touchscreen OLED MacBook Pro: Everything We Know
8 hours ago
iPad Mini 8 Expected Next Week With These 10 New Features
iPad Mini 8 Expected Next Week With These 10 New Features
8 hours ago
Here's What Apple's Apps Look Like on the iPhone Duo
Here's What Apple's Apps Look Like on the iPhone Duo
10 hours ago
iOS 27.3 May Expand RCS Support to Australia's Telstra in December
iOS 27.3 May Expand RCS Support to Australia's Telstra in December
12 hours ago
New Apple TV 4K Features 'Whole Room Audio' With Four HomePods
New Apple TV 4K Features 'Whole Room Audio' With Four HomePods
14 hours ago
Apple Now Sells DIY Repair Parts for iPhone 18 Pro and Two New Macs
Apple Now Sells DIY Repair Parts for iPhone 18 Pro and Two New Macs
14 hours ago
Amazon's HomeView Pre-Order Discount Returns, Plus Save on Apple TV 4K
Amazon's HomeView Pre-Order Discount Returns, Plus Save on Apple TV 4K
15 hours ago
Apple Says Mac Mini Assembly in U.S. to Begin Later This Year
Apple Says Mac Mini Assembly in U.S. to Begin Later This Year
15 hours ago
Apple Says Nearly 100 iPhone Duo and iPhone 18 Pro Parts Made in USA
Apple Says Nearly 100 iPhone Duo and iPhone 18 Pro Parts Made in USA
15 hours ago
Apple Watch Ultra 3 Hits New Low Price With Amazon's $299 Discount [Updated]
Apple Watch Ultra 3 Hits New Low Price With Amazon's $299 Discount [Updated]
15 hours ago
Apple's October 28 'Pro and Tell' Launch: What's Coming
Apple's October 28 'Pro and Tell' Launch: What's Coming
1 day ago
Apple Limiting U.S. iPhone Duo Orders to Two Per Customer
Apple Limiting U.S. iPhone Duo Orders to Two Per Customer
1 day ago
Apple Buys AI Audio Editing App Samplab
Apple Buys AI Audio Editing App Samplab
1 day ago
EFF's Privacy Badger Anti-Tracking Extension Expands to Safari
EFF's Privacy Badger Anti-Tracking Extension Expands to Safari
1 day ago
HomePod 27.2 Adds Sound Glow to Existing HomePod Models
HomePod 27.2 Adds Sound Glow to Existing HomePod Models
1 day ago
Apple Starts Moving Up iPhone Duo Delivery Dates
Apple Starts Moving Up iPhone Duo Delivery Dates
1 day ago
tvOS 27.2 RC Lays Groundwork for HomePod Surround Sound
tvOS 27.2 RC Lays Groundwork for HomePod Surround Sound
1 day ago
Apple Says iPhone Duo Not Available on Walk-In Basis in Three Countries
Apple Says iPhone Duo Not Available on Walk-In Basis in Three Countries
1 day ago
Apple Seeds macOS Golden Gate 27.2 Release Candidate to Developers
Apple Seeds macOS Golden Gate 27.2 Release Candidate to Developers
1 day ago
Apple Releases iOS 27.2 Release Candidate
Apple Releases iOS 27.2 Release Candidate
1 day ago
Apple Seeds watchOS 27.2, tvOS 27.2 and visionOS 27.2 Release Candidates
Apple Seeds watchOS 27.2, tvOS 27.2 and visionOS 27.2 Release Candidates
1 day ago
Samsung Slashes Prices on Frame TVs With Biggest Savings Yet for 2026 Models
Samsung Slashes Prices on Frame TVs With Biggest Savings Yet for 2026 Models
1 day ago
RIP, MacBook Ultra
RIP, MacBook Ultra
1 day ago