Patched sudo privilege escalation vulnerability CVE-2021-3156

sudo patched on macOS

A rather nasty sudo vulnerability has been making news for a couple of weeks now, apparently most of Unix and Unix-like operating systems were affected:

sudo package had heap-based buffer overflow, allowing any user on the system to use sudoedit -s command and become root.

sudo version with CVE-2021-3156 fixed

In most distributions, the updated sudo version is 1.9.5p2.

I have installed macOS update 11.2.1 yesterday that patched the version:

[email protected] $ sudo -V
Sudo version 1.8.31
Sudoers policy plugin version 1.8.31
Sudoers file grammar version 46
Sudoers I/O plugin version 1.8.31

to the expected 1.9.5p2:

[email protected] $ sudo -V
Sudo version 1.9.5p2
Sudoers policy plugin version 1.9.5p2
Sudoers file grammar version 48
Sudoers I/O plugin version 1.9.5p2
Sudoers audit plugin version 1.9.5p2

And also updated my CentOS 8 servers, expected version is sudo-1.8.29-6.el8_3.1

[email protected]:~ # rpm -qa | grep sudo

Stay safe!

See Also

Keep Learning

Follow me on Facebook, Twitter or Telegram:
I learn with Educative: Educative I'm also a fan of SetApp for macOS: SetApp for macOS
IT Consultancy
I'm a principal consultant with Tech Stack Solutions. I help with cloud architectrure, AWS deployments and automated management of Unix/Linux infrastructure. Get in touch!
Recent Articles
31 Jan 2023

Homelab: MacBook Pro M2

17 Nov 2022

Video: awk delimiters

25 Oct 2022

macOS Ventura 13.0

Recent Tweets