Vulnerability report

Trusted Third Party Report Confirmed Confidence In CISA KEV

CVE-2021-3156

Sudo Privilege Escalation

Sudo Project / Sudo

Severity
CVSS 7.8 · High
Confidence
Confirmed
Exploit status
Trusted Third Party Report
EPSS
100.0%
First observed
—
Last observed
—

Decision summary

What security teams need to know first

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 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.

View vendor advisory (opens in new tab)
Published
26 Jan 2021
Exploitation Attempts Reported
06 Apr 2022
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None

Tags

cisa metasploit metasploit_scanner

CVE References

Exploitation evidence

Evidence of exploitation attempts

Third-party attestation and first-party sensor observation are shown separately so teams can judge the evidence chain.

Exploitation Attempts Observed in the Wild

CISA

Recorded 06 Apr 2022

A trusted third party reported exploitation attempts.

Proof of concept available

GitHub

Recorded 27 Jan 2021

Public scanner or PoC coverage increases practical exploitability.

Known exploited vulnerability sources

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

Operational artifacts and observed signals

Make the evidence actionable in scanner, SOC, and edge-control workflows.

Virtual patch status

No Previdian virtual patch is currently available. Future rules ship for ModSecurity, Cloudflare, and AWS WAF.

Learn about virtual patches →

Scanner Artifacts

Scanner and exploit-framework references linked to this CVE.

Risk and context

Severity, weaknesses, and research context

CVSS v3.1

7.8 High

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

August 2026 CVE Landscape

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 advisory

All CVSS Scores

CVSS v3.1 7.8 High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v2.0 7.2 High

AV:L/AC:L/Au:N/C:C/I:C/A:C

All Mentions

Recent mention · RecordedFuture

August 2026 CVE Landscape

RecordedFuture · 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 2021

Cisco 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...

Potential Proof of Concepts

These PoCs are unverified and could contain malware. Use at your own risk.

worawit/CVE-2021-3156

github · Created 2021-03-15 17:37:02 UTC · 746 stars · AI assessment 90%

Sudo Baron Samedit Exploit

Rvn0xsy/CVE-2021-3156-plus

github · Created 2021-02-09 19:25:18 UTC · 201 stars · AI assessment 90%

CVE-2021-3156非交互式执行命令

0xdevil/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

CptGibbon/CVE-2021-3156

github · Created 2021-02-03 19:57:56 UTC · 151 stars · AI assessment 90%

Root shell PoC for CVE-2021-3156

blasty/CVE-2021-3156

github · Created 2021-01-30 20:39:58 UTC · 975 stars · AI assessment 90%

stong/CVE-2021-3156

github · Created 2021-01-30 03:22:04 UTC · 435 stars · AI assessment 90%

PoC for CVE-2021-3156 (sudo heap overflow)

reverse-ex/CVE-2021-3156

github · Created 2021-01-27 16:03:34 UTC · 111 stars · AI assessment 85%

CVE-2021-3156

sudo_baron_samedit

metasploit · Created Unknown

Metasploit module for CVE-2021-3156

Timeline

From disclosure to observed exploitation attempts

  1. 15:02 UTC

    Metasploit module available

    Exploit module available

  2. 00:00 UTC

    Added to CISA KEV

    Listed in the CISA Known Exploited Vulnerabilities catalog

  3. 16:03 UTC

    Public PoC available

    Public proof-of-concept code published

  4. 00:00 UTC

    CVE published

    Vulnerability disclosed publicly

  5. 00:00 UTC

    CVE ID reserved

    Identifier reserved by the CNA

API

Automate this intelligence

Confidence, exploit status, sensor telemetry, PoCs, scanner integrations, mentions, and tags are available programmatically for VM, SOC, and CTI workflows.

  • Evidence confidence and provenance
  • First-party sensor telemetry
  • PoC and scanner references
  • Affected versions and enrichment
  • Automation-ready JSON delivery

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 }
}