Known exploited vulnerability

CVE-2021-3156

Sudo Heap-Based Buffer Overflow Vulnerability

What happened

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.

Analyst notes

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

Public proof-of-concept repositories

No matching public repository was found in the scheduled GitHub index. The index refreshes every 30 minutes; a result would be an unverified repository mention, not a safety assessment.

More from Sudo

  • CVE-2025-32463 Sudo Inclusion of Functionality from Untrusted Control Sphere Vulnerability