CVE-2021-3156

Sudo Heap-Based Buffer Overflow Vulnerability

Actively exploited · CISA KEV
7.8 HighCVSS v3.1
100.0%EPSS (30-day exploit probability)
2022-04-06added to KEV
2022-04-27CISA federal due date

Summary

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

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 vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-193
Published
2021-01-26 (last modified 2026-06-17)

What to do

Apply updates per vendor instructions.

  1. Find every instance of Sudo Sudo in your asset inventory, including internet-facing ones.
  2. Apply the vendor fix or mitigation, or isolate/disconnect the asset until you can.
  3. Hunt for signs of compromise from before you patched; exploitation is already happening in the wild.
  4. Ask critical suppliers whether they are affected and when they will be patched.

FAQ

Is CVE-2021-3156 being exploited?

Yes. CISA added CVE-2021-3156 to its Known Exploited Vulnerabilities catalog on 2022-04-06, which means there is reliable evidence of active exploitation.

How do I fix CVE-2021-3156?

CISA required action: Apply updates per vendor instructions.

What is the EPSS score for CVE-2021-3156?

The EPSS score is 99.96%, meaning an estimated 99.96% probability of exploitation activity in the next 30 days (percentile 100).

Other exploited Sudo vulnerabilities

CVE-2025-32463Sudo Inclusion of Functionality from Untrusted Control Sphere Vulnerability2025-09-29

All Sudo exploited CVEs →

Triage many CVEs at once

Paste up to 25 CVEs and get KEV, EPSS and CVSS side by side, with CSV export.

Try Pro CVE triage

Sources: CISA KEV, NIST NVD, FIRST EPSS. This page is informational; verify against the vendor advisory before acting. © CyberStrategiX.