CVE-2021-3156 Sudo
| Affected software | Sudo |
|---|---|
| Severity | 7.8 High CVSS 3.1 3 scores |
| Weakness | CWE-193 |
| Published | 26 Jan 2021 |
| Updated | 17 Jun 2026 |
Description
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.
Exploitation status
Exploited
Confirmed real-world exploitation.
Exploitation status
- CISA KEV listed Confirmed exploitation in the wild. Added 2022-04-06 · remediation due 2022-04-27 · ransomware use: unknown
- VulnCheck KEV listed Exploitation reported in the wild. 11 citations · 82 exploits · earliest 2022-04-06.
- CISA Vulnrichment exploitation: active CISA records active exploitation. Automatable: no, technical impact: total.
- Indexed PoC 78 indexed Published artifacts you can open, in Exploit-DB, GitHub PoC, Metasploit, Nuclei; first seen 2021-01-26.
- EPSS 99.9% chance in 30 days A model's forecast, not a report of exploitation. Higher than 99.9% of all scored CVEs.
VulnCheck KEV
Exploitation evidence from VulnCheck Known Exploited Vulnerabilities (VulnCheck KEV), used under VulnCheck's community terms. View CVE-2021-3156 in VulnCheck (free account), which lists 6 more citations and 77 more exploit references not shown here.
| Evidence | Source | Detail | Date |
|---|---|---|---|
| Reported exploitation | cisa.gov | /sites/default/files/feeds/known_exploited_vulnerabilities.json | 2022-04-06 |
| Reported exploitation | cisa.gov | /news-events/alerts/2022/04/27/2021-top-routinely-exploited-vulnerabilities | 2022-04-28 |
| Reported exploitation | cisa.gov | /news-events/cybersecurity-advisories/aa22-117a | 2022-04-28 |
| Reported exploitation | ptsecurity.com | /ru-ru/research/pt-esc-threat-intelligence/ex-cobalt-go-red-tehnika-skrytogo-tunnelya | 2024-06-06 |
| Reported exploitation | ptsecurity.com | /ww-en/analytics/pt-esc-threat-intelligence/excobalt-gored-the-hidden-tunnel-technique | 2024-06-19 |
| Exploit reference | VulnCheck XDB 8486488deafe | Exploit type: local | 2021-01-29 |
| Exploit reference | VulnCheck XDB 3ee223200973 | Exploit type: local | 2021-01-30 |
| Exploit reference | VulnCheck XDB 9fbcde6203e1 | Exploit type: local | 2021-01-30 |
| Exploit reference | VulnCheck XDB b2ee85cf4e76 | Exploit type: local | 2021-01-31 |
| Exploit reference | VulnCheck XDB b72767d3ef0b | Exploit type: local | 2021-01-31 |
| Index | Artifact | Stars | First seen |
|---|---|---|---|
| GitHub PoC | blasty/CVE-2021-3156 | 1,032 | 2021-01-30 |
| Nuclei | Sudo Baron Samedit - Local Privilege Escalation | ||
| Exploit-DB | Sudo 1.9.5p1 - 'Baron Samedit ' Heap-Based Buffer Overflow Privilege Escalation (1) | 2021-02-03 | |
| Metasploit | Sudo Heap-Based Buffer Overflow (excellent rank) | ||
| GitHub PoC | Sudo Baron Samedit Exploit | 812 | 2021-03-15 |
| Exploit-DB | Sudo 1.9.5p1 - 'Baron Samedit ' Heap-Based Buffer Overflow Privilege Escalation (2) | 2021-02-03 | |
| GitHub PoC | PoC for CVE-2021-3156 (sudo heap overflow) | 429 | 2021-01-30 |
| GitHub PoC | CVE-2021-3156 - Sudo Baron Samedit | 226 | 2021-04-29 |
| GitHub PoC | CVE-2021-3156非交互式执行命令 | 204 | 2021-02-09 |
| GitHub PoC | Root shell PoC for CVE-2021-3156 | 158 | 2021-02-03 |
Waratek protection
A Java vulnerability, but not one Waratek protects. It affects only Java on a user's desktop (applets, Web Start, JavaFX, the installer), sits in a product the Waratek agent can't be installed into, or is in a package we don't expect in business applications. The decision below says which.
- Protection none
- Action not pursued none
- Review human Researcher
- Record active
| Decided by | Manual classification of this CVE in the legacy dataset |
|---|---|
| Finding | A manual classification set this CVE's status to Outside Waratek scope, but the CVE names a tracked product. |
CVSS
7.8 HIGH
v3.1 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3 metrics
CVSS
7.8 HIGH v3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3 metrics
We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.
| Version | Score | Band | Vector | Assigner | Type | |
|---|---|---|---|---|---|---|
| CVSS 3.1 | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
NVD | Primary | published |
| CVSS 3.1 | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
CISA-ADP | Secondary | |
| CVSS 2.0 | 7.2 | none | AV:L/AC:L/Au:N/C:C/I:C/A:C |
NVD | Primary |
Affected software and releases
Oracle advisories
| Advisory | Type | Quarter | Products Oracle names in its risk matrix |
|---|---|---|---|
| Oracle Critical Patch Update April 2022 ↗ | CPU | 2022-Q2 | Oracle Communications / Platform (Sudo) (10.3.0.0.0-10.3.0.2.1, 10.4.0.1.0-10.4.0.3.1) |
| Oracle Critical Patch Update October 2021 ↗ | CPU | 2021-Q4 | Oracle Communications / Storage Management (Sudo) (7.4.0-7.7.1) |
| Oracle Critical Patch Update July 2021 ↗ | CPU | 2021-Q3 | Oracle Food and Beverage Applications / Express Station 4 (Sudo) (400-410) Oracle Food and Beverage Applications / Kitchen Display System 210 (Sudo) (210) Oracle Food and Beverage Applications / Workstation 310 (Sudo) (310) Oracle Food and Beverage Applications / Workstation 5A (Sudo) (5A) Oracle Food and Beverage Applications / Workstation 6 (Sudo) (610-655) |
Oracle components and versions
| Family | Component | Versions, as Oracle lists them | Read as |
|---|---|---|---|
| Oracle Communications | Platform (Sudo) | 10.3.0.0.0-10.3.0.2.1, 10.4.0.1.0-10.4.0.3.1 | |
| Oracle Communications | Storage Management (Sudo) | 7.4.0-7.7.1 | |
| Oracle Food and Beverage Applications | Express Station 4 (Sudo) | 400-410 | |
| Oracle Food and Beverage Applications | Kitchen Display System 210 (Sudo) | 210 | 210 |
| Oracle Food and Beverage Applications | Workstation 310 (Sudo) | 310 | 310 |
| Oracle Food and Beverage Applications | Workstation 5A (Sudo) | 5A | 5 |
| Oracle Food and Beverage Applications | Workstation 6 (Sudo) | 610-655 |
Products and versions
24 products, 32 version entries| Source | Vendor | Product | Scheme | Affected versions |
|---|---|---|---|---|
| nvd | beyondtrust | privilege management for mac | generic | < 21.1.1 |
| nvd | beyondtrust | privilege management for unix\/linux | generic | < 10.3.2.10 |
| nvd | debian | debian linux | generic | 9.0 · 10.0 |
| nvd | fedoraproject | fedora | generic | 32 · 33 |
| nvd | mcafee | web gateway | generic | 8.2.17 · 9.2.8 · 10.0.4 |
| nvd | netapp | active iq unified manager | generic | any version |
| nvd | netapp | cloud backup | generic | any version |
| nvd | netapp | hci management node | generic | any version |
| nvd | netapp | oncommand unified manager core package | generic | any version |
| nvd | netapp | ontap select deploy administration utility | generic | any version |
| nvd | netapp | ontap tools | generic | 9 |
| nvd | netapp | solidfire | generic | any version |
| nvd | oracle | communications performance intelligence center | generic | ≥ 10.3.0.0.0 and ≤ 10.3.0.2.1 · ≥ 10.4.0.1.0 and ≤ 10.4.0.3.1 |
| nvd | oracle | micros compact workstation 3 firmware | generic | 310 |
| nvd | oracle | micros es400 firmware | generic | ≥ 400 and ≤ 410 |
| nvd | oracle | micros kitchen display system firmware | generic | 210 |
| nvd | oracle | micros workstation 5a firmware | generic | 5a |
| nvd | oracle | micros workstation 6 firmware | generic | ≥ 610 and ≤ 655 |
| nvd | oracle | tekelec platform distribution | generic | ≥ 7.4.0 and ≤ 7.7.1 |
| nvd | sudo project | sudo | generic | ≥ 1.8.2 and < 1.8.32 · ≥ 1.9.0 and < 1.9.5 · 1.9.5 · 1.9.5:patch1 |
| nvd | synology | diskstation manager | generic | 6.2 |
| nvd | synology | diskstation manager unified controller | generic | 3.0 |
| nvd | synology | skynas firmware | generic | any version |
| nvd | synology | vs960hd firmware | generic | any version |
Earlier manual review
A reviewer classified this CVE in an older dataset. We kept the labels and products below, but not the reviewer's reasoning.
## Manual Classification Context **Labels:** EXPRESS STATION 4 (SUDO), WORKSTATION 6 (SUDO), WORKSTATION 5A (SUDO), WORKSTATION 310 (SUDO), KITCHEN DISPLAY SYSTEM 210 (SUDO), STORAGE MANAGEMENT (SUDO) **Products:** ORACLE FOOD AND BEVERAGE APPLICATIONS, MICROS WORKSTATION 6, MICROS COMPACT WORKSTATION 3, MICROS WORKSTATION 5A, MICROS ES400 SERIES, MICROS KITCHEN DISPLAY SYSTEM HARDWARE, TEKELEC PLATFORM DISTRIBUTION, ORACLE COMMUNICATIONS
References
Timeline
Timeline
| Published | 2021-01-26 | By the CVE Program. |
|---|---|---|
| Added to CISA KEV | 2022-04-06 | Listed in CISA's Known Exploited Vulnerabilities catalog. |
| VulnCheck KEV: earliest evidence | 2022-04-06 | Date of the oldest evidence of exploitation in VulnCheck KEV's record. VulnCheck does not publish the date it listed the CVE. |
| NVD record modified | 2026-06-17 | NVD's own last-modified date for this record. |
| VulnCheck KEV: latest evidence | 2026-10-31 | Date of the newest report, exploit reference or honeypot sighting in VulnCheck KEV's record. |