What it is
CVE-2021-3156 is a vulnerability affecting Sudo Project Sudo.
Vulnerability report
Sudo Privilege Escalation
Sudo Project / Sudo
Decision summary
Direct answers before the deeper technical record.
What it is
CVE-2021-3156 is a vulnerability affecting Sudo Project Sudo.
Have exploitation attempts been observed?
Yes. Exploitation attempts have been reported for this vulnerability. Previdian lists it as a known exploited vulnerability. Listed in CISA KEV. Confidence is confirmed.
Who is affected?
Sudo Project / Sudo.
What should we do?
Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
Overview
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.
Exploitation evidence
Third-party attestation and first-party sensor observation are shown separately so teams can judge the evidence chain.
CISA
A trusted third party reported exploitation attempts.
GitHub
Public scanner or PoC coverage increases practical exploitability.
Per-source evidence links for KEV attestations are available through the Previdian API.
Request a Demo| Source | Added |
|---|---|
| CISA First | 2022-04-06 00:00 UTC |
Detection
Make the evidence actionable in scanner, SOC, and edge-control workflows.
Metasploit template detected 28 Apr 2025.
View Metasploit template (opens in new tab)No Previdian virtual patch is currently available. Future rules ship for ModSecurity, Cloudflare, and AWS WAF.
Learn about virtual patches →Scanner and exploit-framework references linked to this CVE.
| Scanner | Reference | Detected |
|---|---|---|
| Metasploit | https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/sudo_baron_samedit.rb | 28 Apr 2025 |
Risk and context
CVSS v3.1
Potential damage if exploited. Separate from whether attackers are using it.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
100.0%
Estimated chance of exploitation in the next 30 days. Previdian's warning comes from evidence, not this score.
Recent mention · RecordedFuture
In August 2026, Insikt Group® identified 73 high-impact vulnerabilities that should be prioritized for remediation, 43 of which had a Very Critical Recorded Future Risk Score. This represents a 14% decrease from last month.
Read full advisoryCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
AV:L/AC:L/Au:N/C:C/I:C/A:C
Recent mention · RecordedFuture
August 2026 CVE LandscapeRecordedFuture · 08 Sep 2026
In August 2026, Insikt Group® identified 73 high-impact vulnerabilities that should be prioritized for remediation, 43 of which had a Very Critical Recorded Future Risk Score. This represents a 14% decrease from last month.
Recent mention · Cisco PSIRT
Sudo Privilege Escalation Vulnerability Affecting Cisco Products: January 2021Cisco PSIRT · 16 Mar 2021
CVE-2021-3156 1.15.0 Updated the list of vulnerable products. Summary A vulnerability in the command line parameter parsing code of Sudo could allow an authenticated, local attacker to execute commands or binaries with root privileges. The vulnerability is due to improper parsing of command line parameters that may result in a heap-based buffer overflow. An attacker could exploit this vulnerability by accessing a Unix shell on an affected device and then invoking the sudoedit command with crafted parameters or by executing a binary exploit. A successful exploit could allow the attacker to...
These PoCs are unverified and could contain malware. Use at your own risk.
github · Created 2021-03-15 17:37:02 UTC · 746 stars · AI assessment 90%
Sudo Baron Samedit Exploit
github · Created 2021-02-09 19:25:18 UTC · 201 stars · AI assessment 90%
CVE-2021-3156非交互式执行命令
github · Created 2021-02-08 18:21:58 UTC · 51 stars · AI assessment 90%
CVE-2021-3156: Sudo heap overflow exploit for Debian 10
github · Created 2021-02-03 19:57:56 UTC · 151 stars · AI assessment 90%
Root shell PoC for CVE-2021-3156
github · Created 2021-01-30 20:39:58 UTC · 975 stars · AI assessment 90%
github · Created 2021-01-30 03:22:04 UTC · 435 stars · AI assessment 90%
PoC for CVE-2021-3156 (sudo heap overflow)
github · Created 2021-01-27 16:03:34 UTC · 111 stars · AI assessment 85%
CVE-2021-3156
Timeline
15:02 UTC
Exploit module available
00:00 UTC
Listed in the CISA Known Exploited Vulnerabilities catalog
16:03 UTC
Public proof-of-concept code published
00:00 UTC
Vulnerability disclosed publicly
00:00 UTC
Identifier reserved by the CNA
API
Confidence, exploit status, sensor telemetry, PoCs, scanner integrations, mentions, and tags are available programmatically for VM, SOC, and CTI workflows.
GET /api/v2/enterprise/kevs/CVE-2021-3156
Sample API response{
"cve_id": "CVE-2021-3156",
"confidence": "Confirmed",
"cvss_score": 7.8,
"cvss_estimated": false,
"epss_score": 0.99962,
"exploit_status": {
"exploited_in_the_wild": true,
"active_exploitation_observed": false
},
"sensor_telemetry": { "attempts": 0, "sensors": 0 }
}