SOC status:Duty analyst on shift

UK Cyber Defence
VulnerabilityAnalyzed

CVE-2021-3156

Sudo Heap-Based Buffer Overflow Vulnerability

KEVEXPLOIT ×2HIGH 7.8EPSS 100.0%

Does this matter?

Known to be exploited in the wild (CISA KEV, CISA remediation deadline 27 April 2022). Treat as an emergency change: patch or isolate now, then hunt for prior compromise.

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.

CVSS 3.1
7.8 HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
99.96% probability · 100th percentile
Public exploits
2 in Exploit-DB · first 3 February 2021
CISA KEV
Listed 6 April 2022 · due 27 April 2022
Weakness
CWE-193
Affected
sudo project/sudo · fedoraproject/fedora · debian/debian linux · netapp/active iq unified manager · netapp/cloud backup · netapp/hci management node · netapp/oncommand unified manager core package · netapp/ontap select deploy administration utility · netapp/ontap tools · netapp/solidfire · mcafee/web gateway · synology/diskstation manager unified controller · synology/diskstation manager · synology/skynas firmware · synology/vs960hd firmware · beyondtrust/privilege management for mac · beyondtrust/privilege management for unix\/linux · oracle/micros compact workstation 3 firmware · oracle/micros es400 firmware · oracle/micros kitchen display system firmware · +4 more
Source
cve@mitre.org
EPSS trend
0%50%100%26 October 2026: 99.96%26 October 202626 October 2026

EPSS 100.0% since 26 October 2026; no change recorded yet. The dashed line is the ten per cent mark our analysts treat as “patch before the next change window”. Points are recorded when the score first appears and whenever it moves by a percentage point or more.

CISA notes

Apply updates per vendor instructions. https://nvd.nist.gov/vuln/detail/CVE-2021-3156

Public exploits (2)

Entries in Exploit-DB that cite this CVE. Links go to the Exploit-DB page and to the file in the public repository; nothing is hosted here. A verified tick means the Exploit-DB team confirmed the exploit works against the stated version.

EDB-IDTitleTypePublishedVerified
EDB-49522source ↗Sudo 1.9.5p1 - 'Baron Samedit ' Heap-Based Buffer Overflow Privilege Escalation (2)multiple · nu11secur1tylocal3 February 2021no
EDB-49521source ↗Sudo 1.9.5p1 - 'Baron Samedit ' Heap-Based Buffer Overflow Privilege Escalation (1)multiple · West Shepherdlocal3 February 2021no

References

Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.