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.
CVE-2021-3156
“▲” beside the score: it is higher than NVD's CVSS score.
Score elevated to 9.0 because this CVE is listed on the CISA Known Exploited Vulnerabilities catalog (added 2022-04-06), indicating real-world exploitation has been confirmed by US federal agencies. NVD baseline CVSS 7.8 retained for reference. The 9.0 is the floor for confirmed exploitation, not an impact rating: this CVE's impact severity (EG Severity) is CVSS 7.8 HIGH under GitHub Security Advisory CVSS. Confidence: HIGH.
Also known asEUVD-2021-26500 (ENISA EUVD) · GHSA-w5vh-2923-gp5c (GitHub Security Advisories)Source: ENISA EUVD
- Actively exploited in the wild (CISA-KEV) — the reason this is sooner than the SSVC decision on this page at low or medium mission impact
A fix is available — apply it.
- CVSS v3
- 7.8
- EG Score
- 9.0CRITICALhigh confidence
- EG Risk
- 75EG Risk 75/100
EG Risk is EchelonGraph's 0–100 priority score. It fuses impact severity (EG Severity, the CVSS base score, never the KEV-floored or EPSS-lifted EG Score) with real-world exploitation and automatability, under weights EchelonGraph set by hand, so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner.
How it’s computed (value × EchelonGraph’s weight)Severity78% × 45%Impact severity (EG Severity): CVSS 7.8 of 10. Never the KEV-floored or EPSS-lifted EG Score.Exploitation100% × 40%Fixed at 100% for a CISA KEV listing: EchelonGraph's rule.Automatability0% × 15%CISA's SSVC Automatable value: no (Vulnrichment).SSVC (CISA's decision table, applied by EchelonGraph): Track at low, Attend at medium and Act at high mission impact.Exploitation active (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.Action: A fix is available. Apply it within your standard update timelines at low, sooner than that at medium and as soon as possible at high mission impact. - EPSS PROB
- >99.9%
- EPSS %ILE
- 99th
- KEV
- ⚠ Exploited
What the EG score is made of (scorer v4.0: the three questions the 0–10 score mixes, published apart · methodology)
The EG score (9.0): severity, escalated by confirmed exploitation. This CVE's 9.0 is the CISA KEV floor for confirmed exploitation, not an impact rating: its impact severity (EG Severity) is CVSS 7.8 HIGH.
- EG Severity
- 7.8 HIGHCVSS-B, impact only: no KEV listing, EPSS or EG-KEV tier raises it.GitHub Security Advisory CVSS
- EG Likelihood
- >99.9% within 30 daysSource: FIRST EPSS (model v2026.06.15, score date 2026-11-23). FIRST's exploitation probability, not an EchelonGraph model.
- Confirmed exploitation
- CISA KEV and EG-KEV Tier 1 (exploited in the wild)Reported apart from the likelihood: an observed fact, not a probability.
- EG Priority
- SSVC Attend at medium mission impactTrack at low, Attend at medium and Act at high mission impact.CISA BOD 26-04: 3 days & forensic triage if the affected system is publicly exposed; 14 days if it is not.Each input and its source, and whom BOD 26-04 binds: the SSVC and BOD 26-04 blocks below.
SSVC (CISA's decision table, applied by EchelonGraph)Track at low, Attend at medium and Act at high mission impact.
A fix is available. Apply it within your standard update timelines at low, sooner than that at medium and as soon as possible at high mission impact.
Exploitation active (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table
BOD 26-04 (CISA's remediation timeline, Table 1)3 days & forensic triage if the affected system is publicly exposed; 14 days if it is not.
The score's inputs: In CISA KEV yes (CISA's KEV catalog) · Automatable no (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). Whether your system is publicly exposed is yours to answer. BOD 26-04 binds US Federal Civilian Executive Branch agencies; for anyone else it is CISA's published timeline, a reference rather than an obligation. The directive · how EchelonGraph applies it
CISA required action“Apply updates per vendor instructions.”
Quoted verbatim from CISA's Known Exploited Vulnerabilities catalog. CISA directs it at US federal civilian executive branch agencies under Binding Operational Directive (BOD) 26-04, which replaced BOD 22-01 on 10 June 2026; it is not EchelonGraph's advice. CISA's notes: https://nvd.nist.gov/vuln/detail/CVE-2021-3156
Source timeline
Each source's own date for this CVE, as that source states it, in UTC. For vendor and authority advisories, each publisher's earliest advisory is shown, for at most 12 publishers, and only for publishers whose advisory dates we hold as the publisher's own publication time. The EchelonGraph column shows when our collectors recorded the event, only where that was within 72 hours of the source's date (for a row without one, of the CVE's publication).
| Source | Event | Source's date | Recorded by EchelonGraph | Link |
|---|---|---|---|---|
| CVE.orgMITRE · CVE Program | CVE Record published | 26 Jan 2021 | recorded later, in a bulk import or a late collection | CVE.org record |
| Red Hat Product Security© Red Hat, Inc. (CC BY 4.0)Licence | Vendor advisory publishedRHSA-2021:0226 | 26 Jan 2021, 19:34 UTC | recorded later, in a bulk import or a late collection | Red Hat Product Security advisory |
| CISA KEV | Added to CISA's Known Exploited Vulnerabilities catalogCISA due date: 27 Apr 2022 | 6 Apr 2022 | recorded later, in a bulk import or a late collection | CISA KEV catalog |
| GitHub Advisory DatabaseGitHub Advisory Database (CC BY 4.0)Licence | GitHub advisory publishedGHSA-w5vh-2923-gp5c | 24 May 2022, 17:40 UTC | recorded later, in a bulk import or a late collection | GitHub advisory |
| CVE.orgMITRE · CVE Program | CVE Record last updated | 21 Oct 2025, 23:35 UTC | — | CVE.org record |
Advisory Details (10)
Auto-updated Nov 19, 2026oss-security - Re: Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)
http://www.openwall.com/lists/oss-security/2021/01/27/1oss-security - Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)
http://www.openwall.com/lists/oss-security/2021/01/26/3Full Disclosure: CVE-2023-6246: Heap-based buffer overflow in the glibc's syslog()
http://seclists.org/fulldisclosure/2024/Feb/3Full Disclosure: Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)
http://seclists.org/fulldisclosure/2021/Jan/79Full Disclosure: APPLE-SA-2021-02-09-1 macOS Big Sur 11.2.1, macOS Catalina 10.15.7 Supplemental Update, and macOS Mojave 10.14.6 Security Update 2021-002
http://seclists.org/fulldisclosure/2021/Feb/42Packet Storm
http://packetstormsecurity.com/files/176932/glibc-syslog-Heap-Based-Buffer-Overflow.htmlPacket Storm
http://packetstormsecurity.com/files/161293/Sudo-1.8.31p2-1.9.5p1-Buffer-Overflow.htmlPacket Storm
http://packetstormsecurity.com/files/161270/Sudo-1.9.5p1-Buffer-Overflow-Privilege-Escalation.htmlPacket Storm
http://packetstormsecurity.com/files/161230/Sudo-Buffer-Overflow-Privilege-Escalation.htmlPacket Storm
http://packetstormsecurity.com/files/161160/Sudo-Heap-Based-Buffer-Overflow.htmlVendor Advisories for CVE-2021-3156(13)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- CVE-2021-3156Palo Alto Networks Security Advisories
CVE-2021-3156 Informational: Impact of Sudo Vulnerability CVE-2021-3156
- RHSA-2021:0401Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat Virtualization Host security bug fix and enhancement update [ovirt-4.4.4]
- RHSA-2021:0395Red Hat Product SecurityHigh
Red Hat Security Advisory: RHV-H security, bug fix, enhancement update (redhat-virtualization-host) 4.3.13
- RHSA-2021:0221Red Hat Product SecurityHigh
Red Hat Security Advisory: sudo security update
- RHSA-2021:0223Red Hat Product SecurityHigh
Red Hat Security Advisory: sudo security update
- RHSA-2021:0218Red Hat Product SecurityHigh
Red Hat Security Advisory: sudo security update
- RHSA-2021:0222Red Hat Product SecurityHigh
Red Hat Security Advisory: sudo security update
- RHSA-2021:0224Red Hat Product SecurityHigh
Red Hat Security Advisory: sudo security update
- +5 more
Patch Availability(14)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| ubuntu | sudo-ldap (1.8.16-0ubuntu1.10) @ xenial | 2026-11-20 | ubuntu |
| ubuntu | sudo (1.8.9p5-1ubuntu1.5+esm6) @ trusty | 2026-11-20 | ubuntu |
| redhat | redhat-virtualization-host-0:4.3.13-20210127.0.el7_9 | 2021-02-03 | redhat |
| redhat | redhat-virtualization-host-0:4.4.4-20210201.0.el8_3 | 2021-02-03 | redhat |
| redhat | sudo-0:1.8.23-10.el7_9.1 | 2021-01-27 | redhat |
| redhat | sudo-0:1.8.23-3.el7_6.2 | 2021-01-27 | redhat |
| redhat | sudo-0:1.8.6p7-23.el7_3.3 | 2021-01-26 | redhat |
| redhat | sudo-0:1.8.6p7-17.el7_2.3 | 2021-01-26 | redhat |
| redhat | sudo-0:1.8.23-4.el7_7.3 | 2021-01-26 | redhat |
| redhat | sudo-0:1.8.29-5.el8_2.1 | 2021-01-26 | redhat |
| redhat | sudo-0:1.8.19p2-12.el7_4.2 | 2021-01-26 | redhat |
| redhat | sudo-0:1.8.25p1-8.el8_1.2 | 2021-01-26 | redhat |
| redhat | sudo-0:1.8.6p3-29.el6_10.4 | 2021-01-26 | redhat |
| redhat | sudo-0:1.8.29-6.el8_3.1 | 2021-01-26 | redhat |
These rows come from Ubuntu and Red Hat. Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(21 across 21 ecosystems)
Alpine:v3.10(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Alpine:v3.11(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Alpine:v3.12(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Alpine:v3.13(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Alpine:v3.14(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Alpine:v3.15(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Alpine:v3.16(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Alpine:v3.17(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Alpine:v3.18(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Alpine:v3.19(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Alpine:v3.20(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Alpine:v3.21(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Alpine:v3.22(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Alpine:v3.23(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Alpine:v3.24(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Debian:10(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | 1.8.27-1, 1.8.27-1+deb10u1, 1.8.27-1+deb10u2 |
| — |
Debian:11(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Debian:12(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Debian:13(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Debian:14(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Debian:9(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | 1.8.19p1-2.1, 1.8.19p1-2.1+deb9u1, 1.8.19p1-2.1+deb9u2 |
| — |
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(2)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
Data Freshness Timeline
(refreshed 14× in last 7d / 59× in last 30d)
Each row is a time one of our pipelines fetched, updated or re-scored this CVE. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed its CVE.org record (CNA or CISA ADP). An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). "EchelonGraph re-scored" is our own recompute of this CVE's score, not an update from a source, and is not counted in the refreshes above. Most recent first.
Showing the most recent 100 of 1,793 rows on record for this CVE.
A repeat, a row identical to one the same pipeline wrote less than 10 seconds earlier, is not a separate refresh and is not counted. None are among the latest 100 rows. The 1,693 oldest rows on record are not shown and were not checked, so the counts can still include repeats.
- 2026-11-23 21:44 UTCEchelonGraph re-scored
- 2026-11-23 21:44 UTCVendor advisory
- 2026-11-23 21:44 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-22 19:32 UTCVendor advisory
- 2026-11-22 19:32 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-21 17:19 UTCEchelonGraph re-scored
- 2026-11-21 17:19 UTCVendor advisory
- 2026-11-21 17:19 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-20 15:08 UTCEchelonGraph re-scored
- 2026-11-20 15:08 UTCVendor advisory
- 2026-11-20 15:08 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-19 12:57 UTCEchelonGraph re-scored
- 2026-11-19 12:57 UTCVendor advisory
- 2026-11-19 12:57 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-18 10:45 UTCEchelonGraph re-scored
- 2026-11-18 10:45 UTCVendor advisory
- 2026-11-18 10:45 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-17 08:33 UTCEchelonGraph re-scored
- 2026-11-17 08:33 UTCVendor advisory
- 2026-11-17 08:33 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-16 06:22 UTCEchelonGraph re-scored
- 2026-11-16 06:22 UTCVendor advisory
- 2026-11-16 06:22 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-15 04:08 UTCEchelonGraph re-scored
- 2026-11-15 04:08 UTCVendor advisory
Show 75 moreShow fewer
- 2026-11-15 04:08 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-14 01:53 UTCEchelonGraph re-scored
- 2026-11-14 01:53 UTCVendor advisory
- 2026-11-14 01:53 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-12 23:36 UTCEchelonGraph re-scored
- 2026-11-12 23:36 UTCVendor advisory
- 2026-11-12 23:36 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-11 21:24 UTCEchelonGraph re-scored
- 2026-11-11 21:24 UTCVendor advisory
- 2026-11-11 21:24 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-11 16:31 UTCEPSS rescoreEPSS >99.9% · 99th percentile
- 2026-11-10 19:13 UTCEchelonGraph re-scored
- 2026-11-10 19:13 UTCVendor advisory
- 2026-11-10 19:13 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-09 16:59 UTCEchelonGraph re-scored
- 2026-11-09 16:59 UTCVendor advisory
- 2026-11-09 16:59 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-08 14:47 UTCEchelonGraph re-scored
- 2026-11-08 14:47 UTCVendor advisory
- 2026-11-08 14:47 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-07 12:35 UTCEchelonGraph re-scored
- 2026-11-07 12:35 UTCVendor advisory
- 2026-11-07 12:35 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-06 10:24 UTCEchelonGraph re-scored
- 2026-11-06 10:24 UTCVendor advisory
- 2026-11-06 10:24 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-05 08:13 UTCEchelonGraph re-scored
- 2026-11-05 08:13 UTCVendor advisory
- 2026-11-05 08:13 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-04 16:30 UTCEPSS rescoreEPSS >99.9% · 99th percentile
- 2026-11-04 06:01 UTCEchelonGraph re-scored
- 2026-11-04 06:01 UTCVendor advisory
- 2026-11-04 06:01 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-03 17:55 UTCOSV refresh
- 2026-11-03 03:49 UTCEchelonGraph re-scored
- 2026-11-03 03:49 UTCVendor advisory
- 2026-11-03 03:49 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-11-02 01:36 UTCEchelonGraph re-scored
- 2026-11-02 01:36 UTCVendor advisory
- 2026-11-02 01:36 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-10-31 23:24 UTCEchelonGraph re-scored
- 2026-10-31 23:24 UTCVendor advisory
- 2026-10-31 23:24 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-10-30 21:13 UTCEchelonGraph re-scored
- 2026-10-30 21:13 UTCVendor advisory
- 2026-10-30 21:13 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-10-29 19:02 UTCEchelonGraph re-scored
- 2026-10-29 19:02 UTCVendor advisory
- 2026-10-29 19:02 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-10-28 16:51 UTCEchelonGraph re-scored
- 2026-10-28 16:51 UTCVendor advisory
- 2026-10-28 16:50 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-10-27 14:39 UTCEchelonGraph re-scored
- 2026-10-27 14:39 UTCVendor advisory
- 2026-10-27 14:39 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-10-26 12:28 UTCVendor advisory
- 2026-10-26 12:27 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-10-25 18:28 UTCEchelonGraph re-scored
- 2026-10-25 10:16 UTCEchelonGraph re-scored
- 2026-10-25 10:16 UTCVendor advisory
- 2026-10-25 10:16 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-10-24 08:04 UTCEchelonGraph re-scored
- 2026-10-24 08:04 UTCVendor advisory
- 2026-10-24 08:04 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-10-23 05:51 UTCEchelonGraph re-scored
- 2026-10-23 05:51 UTCVendor advisory
- 2026-10-23 05:51 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-10-22 03:39 UTCEchelonGraph re-scored
- 2026-10-22 03:39 UTCVendor advisory
- 2026-10-22 03:39 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-10-21 01:28 UTCEchelonGraph re-scored
- 2026-10-21 01:28 UTCVendor advisory
- 2026-10-21 01:28 UTCGHSA enrichmentGHSA-w5vh-2923-gp5c · GitHub severity HIGH · GitHub CVSS 7.8
- 2026-10-19 23:16 UTCEchelonGraph re-scored
- 2026-10-19 23:16 UTCVendor advisory
Publicly available exploits
(17 references, 10 shown)Public exploit code is referenced for this CVE (1 Metasploit module, 2 Exploit-DB entries, 14 GitHub PoCs). Defenders should treat patch urgency accordingly.
GitHub repositories: 5 of 14 labelled (4 exploit code, 1 with no code files when read).
- Metasploitexploit/linux/local/sudo_baron_samedit✓ verifiedPublished Feb 4, 2021
Sudo Heap-Based Buffer Overflow
Open source ↗ - GitHub PoCMaalfer/Sudo-CVE-2021-3156Published Jul 18, 2025
Exploit para explotar la vulnerabilidad CVE-2025-32463
Open source ↗ - GitHub PoCPurpleOzone/PE_CVE-CVE-2021-3156Published May 13, 2023
Exploit for Ubuntu 20.04 using CVE-2021-3156 enhanced with post-exploitation scripts
Open source ↗ - GitHub PoC0x4ndy/clifPublished Nov 28, 2022
clif is a command-line interface (CLI) application fuzzer, pretty much what wfuzz or ffuf are for web. It was inspired by sudo vulnerability CVE-2021-3156 and the fact that for some reasons, Google's afl-fuzz doesn't allow for unlimited argument or option specification.
Open source ↗ - GitHub PoCPhuketIsland/CVE-2021-3156-centos7Published Nov 3, 2022
利用sudo提权,只针对cnetos7
Open source ↗ - GitHub PoCredhawkeye/sudo-exploitExploit code (read on 2026-11-22)Published Sep 25, 2021
CVE-2021-3156 - sudo exploit for ubuntu 18.04 & 20.04
Open source ↗ - GitHub PoCLiveOverflow/pwneditPublished Apr 29, 2021
CVE-2021-3156 - Sudo Baron Samedit
Open source ↗ - GitHub PoCworawit/CVE-2021-3156Published Mar 15, 2021
Sudo Baron Samedit Exploit
Open source ↗ - GitHub PoCRvn0xsy/CVE-2021-3156-plusPublished Feb 9, 2021
CVE-2021-3156非交互式执行命令
Open source ↗ - GitHub PoC0xdevil/CVE-2021-3156Exploit code (read on 2026-11-23)Published Feb 8, 2021
CVE-2021-3156: Sudo heap overflow exploit for Debian 10
Open source ↗
Labels marked on GitHub repositories are EchelonGraph's. Gemini (Google Vertex AI) and Claude (Anthropic) read each repository's description, the first 6,000 bytes of its README and up to 200 paths of its file list; where they do not give the same label with every check passing, or the repository's text uses words of both kinds, a second Claude model is asked once. These labels are shown only where at least two of these models gave them (all three where the text uses words of both kinds) and every quote and file those models cited was found in the repository (rule poc-kind-verifier-v4). Each label shows the day its repository was read; it is read again only when those checks change, and is taken down if it no longer passes them. Repository content belongs to its authors.
Related CVEs(same product + same vendor + same CWE)
Same product
10 shownDebian:9:sudo · Alpine:v3.10:sudo · Alpine:v3.18:sudo
Same vendor
4 shownredhat:RHSA-2021:0395 · ubuntu:USN-4705-1
Frequently asked(6)
What is CVE-2021-3156?
When was the CVE record for CVE-2021-3156 published?
Is CVE-2021-3156 actively exploited?
What is the CVSS score of CVE-2021-3156?
Which products are affected by CVE-2021-3156?
How do I remediate CVE-2021-3156?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2021-3156
Is Your Infrastructure Affected by CVE-2021-3156?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.