Actively exploited vulnerability / CVE-2021-3156
Sudo on Linux and Unix: an ordinary user can gain full control of the system
This flaw lets an attacker who already has an ordinary account on a server become a full administrator (root). They can then read or change any data, install malicious software and hide their tracks, turning a stolen account or minor breach into a complete compromise. It is on the lists of vulnerabilities used in real attacks kept by both CISA, the US cybersecurity agency, and ENISA, the EU cybersecurity agency.
- Identifier
- CVE-2021-3156 · EUVD-2021-26500
- Severity
- High (7.8/10)
- On the CISA list (US)
- yes, since 6 April 2022
- Deadline given to US federal agencies
- 27 April 2022
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 100.0% (FIRST's estimate for the next 30 days)
Does it concern you?
Sudo is a utility found on almost every Linux or Unix server and computer, letting authorized users run administrative commands. Some products that include it are also affected, such as BeyondTrust Privilege Management for Mac and for Unix/Linux and certain Oracle systems, including MICROS ES400 and Workstation 6 point of sale terminals.
Ask whoever manages your servers to check the Sudo version: versions from 1.8.2 up to but not including 1.9.5p2 are affected. For BeyondTrust, versions before 21.1.1 (Mac) and 10.3.2-10 (Unix/Linux) are affected; for Oracle products, ask your supplier or support partner.
Affected products and versions
- Sudo
- privilege management for mac: before 21.1.1
- privilege management for unix/linux: before 10.3.2-10
- communications performance intelligence center: from 10.3.0.0.0 up to and including 10.3.0.2.1; from 10.4.0.1.0 up to and including 10.4.0.3.1
- tekelec platform distribution: from 7.4.0 up to and including 7.7.1
- sudo: from 1.8.2 before 1.8.32; from 1.9.0 before 1.9.5
- micros es400 firmware: from 400 up to and including 410
- micros workstation 6 firmware: from 610 up to and including 655
What to do
Install the operating system update that brings Sudo 1.9.5p2 or later, and upgrade BeyondTrust to 21.1.1 (Mac) or 10.3.2-10 (Unix/Linux). For Oracle systems, apply updates according to the vendor's instructions.
Versions that contain the fix: 1.8.32, 1.9.5, 10.3.2-10, 21.1.1.
The official description
The text below is the description from the public database.
Sudo before 1.9.5p2 contains an off-by-one error that can result in a heap-based buffer overflow, which allows privilege escalation to root via "sudoedit -s" and a command-line argument that ends with a single backslash character.
Sources
- Debian Security Tracker
- Red Hat Security Data
- CVE Program
- Vendor advisory: nvd.nist.gov
- GitHub Advisory Database
- NVD
- ENISA EUVD
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.