CVE Tools

CVE-2021-3156

Published: Jan 26, 2021Updated: Nov 10, 2025 Sources: CVE List NVD BDU csafCWE-193

Description

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 Breakdown

AV:LAC:LPR:LUI:NS:UC:HI:HA:H
Exploitability
AV:LAttack Vector
Local
AC:LAttack Complexity
Low
PR:LPrivileges Required
Low
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:HConfidentiality
High
I:HIntegrity
High
A:HAvailability
High

Weaknesses

Affected Products

sudo projectoss-projectUSOperating Systemsaka sudo
fedoraprojectoss-projectUSOperating Systemsaka fedora project
debianoss-projectGBOperating Systemsaka debian gnu/linux
and 36 more affected products View all →

Exploitability

CISA Known Exploited Vulnerability
Added to KEV:Apr 6, 2022
Remediation due:Apr 27, 2022

Required action: Apply updates per vendor instructions.

8 exploit sources identified

Exploit details including PoC links, Metasploit modules, and scanner templates are available after registration.

View exploit details
Official Patch Available

References

and 69 more references View all →

Timeline

Published
Jan 26, 2021
Added to CISA KEV
Apr 6, 2022
Last Updated
Nov 10, 2025

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2021-3156 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows