Skip to main content
CVE Radar
CISA KEVhighMemory Corruptionpublic exploit

CVE-2021-3156

CVE-2021-3156 — Sudo Heap-Based Buffer Overflow Vulnerability

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.

Published Updated Sources: NVD, Sudo (CNA), CISA, FIRST EPSS, GitHub, GitHub Security Advisory, Exploit-DB, Red Hat (VEX), SOCRadar CTI

Triage

Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.

Exploitation

Confirmed

CISA KEV, listed Apr 6, 2022

EPSS

100%

top of FIRST's scoreset

Affects

Sudo

Sudo

CVSS base

7.8

high · 2 sources

CISA SSVC assessment

Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.

CISA

Exploitation

Active

none · proof-of-concept · active

Automatable

No

can an attacker script all four kill-chain steps

Technical impact

Total

partial · total control of the vulnerable component

Remediation

The vendor's own words where we have them.

Upgrade Sudo to a fixed release. Apply vendor patches per advisory and restrict external exposure of the affected component until patched.

CISA required action

Apply updates per vendor instructions.

Federal deadline Apr 27, 2022 — passed 1,682 days ago

Red Hat VEX · CVE-2021-3156

fixed211affected0not affected106

vendor_fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

vendor_fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

vendor_fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

First 24 hours

Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.

  • Identify exposed assets running affected vendor/product/version combinations.
  • Treat as emergency remediation because CISA KEV status is present.
  • Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.

Affected scope

Vendor, product and version as the advisories word them.

Affected vendors, products and versions
VendorProductVersionsStatus
SudoSudon/aVulnerable

Attack characteristics

The CVSS vector, decoded. It describes the attack, not your exposure to it.

Availability

High

Confidentiality

High

Integrity

High

Scope

Unchanged

Attack Complexity

Low

Attack Vector

Local

Privileges Req

Low

User Interaction

None

Every base score collected

Sources score independently and disagree; each row says who scored it and under which version.

Every CVSS base score collected, by source and version
ScoreVersionSeverityExpl.ImpactSource
7.8CVSS 3.1high1.85.9NVD, CNA, GHSA, Red Hat (VEX)
7.2CVSS 2.0high3.910NVD

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

What this weakness leads to

MITRE's own consequences and mitigations for the weakness class — the authority's wording, not guidance derived from the CVSS vector.

MITRE

CWE-193 · Off-by-one Error

  • DoS: Crash, Exit, or Restart
  • DoS: Resource Consumption (CPU)
  • DoS: Resource Consumption (Memory)
  • DoS: Instability

Mitigation: When copying character arrays or using character manipulation methods, the correct size parameter must be used to account for the null terminator that needs to be added at the end of the array. Some examples of functions susceptible to this weakness in C include strcpy(), strncpy(), strcat(), strncat(), printf(), sprintf(), scanf() and sscanf().::

Weakness & attack patterns

  • CWE-193
  • CWE-787Out-of-bounds Write

Inferred from the weakness class — not observed against this CVE.

CAPEC-100 · Overflow BuffersCAPEC-123 · Buffer Manipulation

CISA KEV details

CISA lists a CVE here once it has evidence of exploitation against real targets.

Listed

Apr 6, 2022

Federal deadline

Apr 27, 2022

passed 1,682 days ago

Ransomware use

Unknown

CISA records ransomware use only for campaigns it has confirmed, so “Unknown” means unrecorded, not ruled out. The deadline binds US federal agencies; for everyone else it is a date to argue against.

Public exploit

Capability, not use: code existing is a different claim from anyone running it.

PoC repos

499

2 of the 5 sampled are weaponized

Exploit entries

84

Exploit-DB and CTI exploit indexes

Malware

Families a CTI source ties to this CVE. One named, with the total it tracks.

Families tracked

2

Named

Cobalt Strike

Cobalt Strike

Social mentions

Posts naming this CVE. Attention, not evidence of exploitation — it spikes on disclosure and decays whether or not anything is exploited.

SOCRadar13 more posts on this CVEShowing 5 of 18 · Who is discussing this CVE, and how loudlyUnlock free

Detection rules

Sigma and YARA rules a source published for this CVE — the only detection content any connected source supplies.

SOCRadar

Detection

Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.

  • Monitor for scanner or exploit-pattern traffic after 583 public PoC repositories were reported.

Groups associated with this CVE

Groups reported in connection with this vulnerability. A reported association, not a confirmed observation of that group using it — and not scoped to any sector or campaign.

Void BlizzardInfyWatchdogAPT 5Shadow Network
SOCRadar9 more threat groups on this CVEShowing 5 of 14 · Attribution, campaigns and the malware each one runsUnlock free
  • ip138.204.196.25477

    Maltiverse URL List · Dec 8, 2023

  • hash3b1329e81739b1ea6acbb4ec4dff11f02ff42570100

    Cyber Threat Alliance (CTA) · Nov 27, 2023

  • hashf34bd1d485de437fe18360d1e850c3fd64415e49d691e610711d8d232071a0b1100

    Cyber Threat Alliance (CTA) · Jul 27, 2023

  • hash89ae36448f1922870f1a09c29f17c775100

    Cyber Threat Alliance (CTA) · Oct 21, 2023

  • hash44e83f84a5d5219e2f7c3cf1e4f02489cae81361227f46946abe4b8d8245b87999

    Kaspersky Public Requests · Aug 18, 2022

SOCRadar5 more indicators on this CVEShowing 5 of 10 · Hashes, addresses and domains from a live threat exchangeUnlock free

Timeline

What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.

  1. 2026
  2. Cve is exploited tkien207/CVE-2021-3156

    Nov 20, 2026 · SOCRadar CTI

  3. Cve is exploited HanaBouikni/Volatility3-Forensics-Incident-Response

    Nov 16, 2026 · SOCRadar CTI

  4. Cve is exploited d4ytox/CVE-2021-3156

    Nov 2, 2026 · SOCRadar CTI

  5. Cve is exploited Kranti08/CVE-2021-3156-Baron-Samedit

    Jun 27, 2026 · SOCRadar CTI

  6. Added · CVSS 3.1 7.8 (AV:L)

    Jun 17, 2026 · NVD

  7. Cve is exploited calonnuotcabe/CVE-2021-3156

    Jun 3, 2026 · SOCRadar CTI

  8. 2022
  9. Added · GHSA-w5vh-2923-gp5c published (high)

    May 24, 2022 · GitHub Security Advisory

  10. Added to CISA KEV catalog

    Apr 6, 2022 · CISA

  11. 2021
  12. Added · local entry: Sudo 1.9.5p1 - 'Baron Samedit ' Heap-Based Buffer Overflow Privilege Escalation (1)

    Feb 3, 2021 · Exploit-DB

  13. Added · local entry: Sudo 1.9.5p1 - 'Baron Samedit ' Heap-Based Buffer Overflow Privilege Escalation (2)

    Feb 3, 2021 · Exploit-DB

  14. Initial · CVE published

    Jan 26, 2021 · NVD

Source activity

Readings a source repeats on a schedule, counted rather than listed.

  • 15×SVRS was changedApr 6, 2026 – Nov 20, 2026 · SOCRadar CTI
  • 12×Github ReposMay 27, 2026 – Nov 14, 2026 · SOCRadar CTI
  • 5×Tweets · 1 time tweeted.Apr 7, 2026 – Jul 28, 2026 · SOCRadar CTI

References

50 on the record

Coverage

9 stories from the feeds we poll

Related CVEs

Same product first, then the same weakness or threat actor.

Elsewhere on this site

Not in any source we poll

Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.

  • Only the 5 indicator(s) reported for this CVE are available; no packet-level or host-forensic artifacts supplied.
  • No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
  • No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1

What should defenders know first?

CVE-2021-3156 is Sudo Heap-Based Buffer Overflow Vulnerability, a high vulnerability affecting Sudo from Sudo. The current evidence lists it in CISA KEV, and the exploit status is: Yes: CISA KEV signal present. Public exploit evidence is: 583 public PoC repositories reported; 2 marked weaponized in current dataset. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 7.8 describes technical severity, while EPSS 100% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.