CVEBrief

Home / Sudo Project / Sudo / CVE-2021-3156

CVE-2021-3156: is it exploited, and which versions of Sudo Project Sudo are affected and fixed?

CVE-2021-3156 is an off-by-one Error vulnerability in Sudo Project Sudo, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on April 6, 2022, with a federal due date of April 27, 2022. Affected: sudo from 1.8.2 before 1.8.32, sudo from 1.9.0 before 1.9.5, sudo 1.9.5 and 28 more (NVD). Fixed in 1.8.32, 1.9.5, 21.1.1 and 10.3.2-10 (NVD). Severity: High (7.8, CVSS 3.1, from CISA-ADP).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:08 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 08:04 UTC.

Exploited in the wild
Yes, CISA KEV
added April 6, 2022, due April 27, 2022
Affected
sudo from 1.8.2 before 1.8.32, sudo from 1.9.0 before 1.9.5, sudo 1.9.5 and 28 more
NVD
Fixed in
1.8.32, 1.9.5, 21.1.1 and 10.3.2-10
NVD
Severity
High 7.8
CVSS 3.1 from CISA-ADP
Exploit odds (EPSS)
100.0% in 30 days
higher than 100% of CVEs; FIRST, December 2, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2021-3156?

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.

From the CVE record by mitre, last updated October 21, 2025, 23:35 UTC.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
sudo projectsudofrom 1.8.2 before 1.8.32application
sudo projectsudofrom 1.9.0 before 1.9.5application
sudo projectsudo1.9.5application
fedoraprojectfedora32operating system
fedoraprojectfedora33operating system
debiandebian linux9.0operating system
debiandebian linux10.0operating system
netappactive iq unified managerall versionsapplication
netappcloud backupall versionsapplication
netapphci management nodeall versionsapplication
netapponcommand unified manager core packageall versionsapplication
netappontap select deploy administration utilityall versionsapplication
netappontap tools9application
netappsolidfireall versionsapplication
mcafeeweb gateway8.2.17application
mcafeeweb gateway9.2.8application
mcafeeweb gateway10.0.4application
synologydiskstation manager unified controller3.0application
synologydiskstation manager6.2operating system
synologyskynas firmwareall versionsoperating system
synologyvs960hd firmwareall versionsoperating system
beyondtrustprivilege management for macbefore 21.1.1application
beyondtrustprivilege management for unix\/linuxbefore 10.3.2-10application
oraclemicros compact workstation 3 firmware310operating system
oraclemicros es400 firmwarefrom 400 through 410operating system

NVD analysis (status Analyzed), last modified June 17, 2026, 04:04 UTC.

How severe is CVE-2021-3156?

ScoreVersionVectorSource
High 7.8CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCISA-ADP
High 7.8CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD
High 7.2CVSS 2.0AV:L/AC:L/Au:N/C:C/I:C/A:CNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2021-3156 exploited in the wild?

CISA KEV
Listed as Sudo Heap-Based Buffer Overflow Vulnerability, added April 6, 2022; federal agencies must act by April 27, 2022
Required action
Apply updates per vendor instructions.
Ransomware use
Unknown
CISA's summary
Sudo contains an off-by-one error that can result in a heap-based buffer overflow, which allows for privilege escalation.
CISA SSVC
Exploitation: active; automatable: no; technical impact: total (CISA ADP, February 3, 2025)
EPSS
100.0% probability of exploitation activity in the next 30 days, percentile 100.0 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
January 15, 2021
Published
January 26, 2021, 00:00 UTC
CVE record updated
October 21, 2025, 23:35 UTC by mitre
NVD
Analyzed, last modified June 17, 2026, 04:04 UTC
Last checked
CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 08:04 UTC; KEV December 3, 2026, 14:08 UTC; EPSS December 2, 2026
Official record
cve.org · NVD · CISA KEV

What other CVEs affect Sudo?

Every CVE in Sudo

Questions about CVE-2021-3156

Is CVE-2021-3156 exploited in the wild?

Yes. CISA added CVE-2021-3156 to its Known Exploited Vulnerabilities catalog on April 6, 2022 and set federal agencies a due date of April 27, 2022. FIRST's EPSS gives it a 100.0% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of Sudo Project Sudo are affected by CVE-2021-3156?

sudo from 1.8.2 before 1.8.32, sudo from 1.9.0 before 1.9.5, sudo 1.9.5, fedora 32, fedora 33, debian linux 9.0 and 25 more, per the NVD. The tables above give every range the sources list.

Which version fixes CVE-2021-3156?

1.8.32, 1.9.5, 21.1.1 and 10.3.2-10, per the NVD. Check the vendor's advisory before you rely on it.

How severe is CVE-2021-3156?

High (7.8, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.

Where is the official record of CVE-2021-3156?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.