CVE-2021-3156: Sudo Heap-Based Buffer Overflow Vulnerability
Sudo contains an off-by-one error that can result in a heap-based buffer overflow, which allows for privilege escalation.
Why it matters
CISA added CVE-2021-3156 to its Known Exploited Vulnerabilities (KEV) catalog on 2022-04-06 — meaning it is confirmed to be exploited in the wild, not just theoretically risky. US federal agencies had to remediate it by 2022-04-27, and it is a high priority for everyone else too.
How to fix it
Apply updates per vendor instructions.
Details
- Affected: Sudo Sudo
- Added to CISA KEV: 2022-04-06
- Federal remediation due: 2022-04-27
- Weakness: CWE-122, CWE-193
- EPSS: 100.0% chance of exploitation in the next 30 days, higher than 100% of all CVEs
- Reference: NVD entry for CVE-2021-3156
Is CVE-2021-3156 in your fleet?
SkyShield scans your servers, containers and cloud for vulnerable packages and images (Trivy), ranks them by whether they're on CISA KEV and their EPSS exploit probability, and shows the fix per machine. Start free.