Skip to main content
All vulnerabilities
CVE-2021-3156

Sudo Heap-Based Buffer Overflow Vulnerability

Sudo — Sudo

EPSS (30-day exploitation probability)
100.0% · 99.9th percentile · 20 November 2026
Added to KEV catalog
6 April 2022
Federal remediation due date
27 April 2022
Weakness classification (CWE)
CWE-122, CWE-193

Is CVE-2021-3156 actively exploited?

Yes. CISA added CVE-2021-3156 to its Known Exploited Vulnerabilities catalog on 6 April 2022, which means there is evidence it has been exploited in the wild. FIRST's EPSS model estimates a 100.0% probability of exploitation activity in the next 30 days, placing it in the 99.9th percentile of all scored CVEs.

How do I fix CVE-2021-3156?

CISA's required action for CVE-2021-3156 is: Apply updates per vendor instructions. US federal agencies must remediate it by 27 April 2022; treat that as an outside deadline, not a target.

CISA Description

Sudo contains an off-by-one error that can result in a heap-based buffer overflow, which allows for privilege escalation.

Required action

Apply updates per vendor instructions.

Notes

https://nvd.nist.gov/vuln/detail/CVE-2021-3156

Confirm Your Exposure

Is this vulnerability present in your environment?

CRS delivers independent VAPT assessments that identify exactly which known-exploited vulnerabilities exist in your network, applications, and infrastructure.

Explore VAPT Services