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.
Who exploits it and how urgent it is
A 0–100 score combining confirmed exploitation, ransomware and APT use, public exploits, EPSS and severity.
How the score was calculated
- Confirmed exploitation (CISA KEV)+35
- Public exploit/PoC (metasploit, exploitdb, github)+20
- EPSS 100% (30-day exploitation probability)+15
- Technical severity (high)+6
The score orders the patch queue; it does not replace your asset context (internet exposure, criticality, compensating controls).
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the sources call it.
CISA SSVC assessment CISA
Three decision points CISA publishes for the CVEs it assesses (SSVC 2.0.3). A stakeholder decision, not a severity score.
Remediation
Fixes and mitigations documented by the sources — linked to the original advisory.
- Documented patch — www.openwall.com (NIST National Vulnerability Database)
- Documented patch — www.oracle.com (NIST National Vulnerability Database)
- Documented patch — www.oracle.com (NIST National Vulnerability Database)
- Documented patch — www.oracle.com (NIST National Vulnerability Database)
CISA required action CISA
Apply updates per vendor instructions.
US federal deadline: Apr 27, 2022 — passed 1632 day(s) ago
First 24 hours
Ordered from the record’s own fields — exposure first, because you cannot patch what you have not found. A rule-generated starting point.
- Identify exposed assets running the affected vendor/product/version combinations (Beyondtrust Privilege Management For Mac, Beyondtrust Privilege Management For Unix/linux, Debian Debian Linux…).
- Treat as emergency remediation: the CVE is in CISA KEV (confirmed exploitation).
- Apply the fixed version or the patch documented under Remediation.
- EPSS ahead of 100% of scored CVEs: prioritize it in the patch queue.
- Search available logs for exploit probes, errors and authentication anomalies.
Affected scope
Vendor, product and versions as the sources word them.
| Vendor | Product | Versions | Status | Source |
|---|---|---|---|---|
| Beyondtrust | Privilege Management For Mac | < 21.1.1 | Vulnerable | NIST National Vulnerability Database |
| Beyondtrust | Privilege Management For Unix/linux | < 10.3.2-10 | Vulnerable | NIST National Vulnerability Database |
| Debian | Debian Linux | version 9.0version 10.0 | Vulnerable | NIST National Vulnerability Database |
| Fedoraproject | Fedora | version 33version 32 | Vulnerable | NIST National Vulnerability Database |
| Mcafee | Web Gateway | version 9.2.8version 10.0.4version 8.2.17 | Vulnerable | NIST National Vulnerability Database |
| Netapp | Active Iq Unified Manager | versions not specified by the source | Vulnerable | NIST National Vulnerability Database |
| Netapp | Cloud Backup | versions not specified by the source | Vulnerable | NIST National Vulnerability Database |
| Netapp | Hci Management Node | versions not specified by the source | Vulnerable | NIST National Vulnerability Database |
| Netapp | Oncommand Unified Manager Core Package | versions not specified by the source | Vulnerable | NIST National Vulnerability Database |
| Netapp | Ontap Select Deploy Administration Utility | versions not specified by the source | Vulnerable | NIST National Vulnerability Database |
| Netapp | Ontap Tools | version 9 | Vulnerable | NIST National Vulnerability Database |
| Netapp | Solidfire | versions not specified by the source | Vulnerable | NIST National Vulnerability Database |
| Oracle | Communications Performance Intelligence Center | ≥ 10.4.0.1.0 and ≤ 10.4.0.3.1≥ 10.3.0.0.0 and ≤ 10.3.0.2.1 | Vulnerable | NIST National Vulnerability Database |
| Oracle | Micros Compact Workstation 3 Firmware | version 310 | Vulnerable | NIST National Vulnerability Database |
| Oracle | Micros Es400 Firmware | ≥ 400 and ≤ 410 | Vulnerable | NIST National Vulnerability Database |
| Oracle | Micros Kitchen Display System Firmware | version 210 | Vulnerable | NIST National Vulnerability Database |
| Oracle | Micros Workstation 5a Firmware | version 5a | Vulnerable | NIST National Vulnerability Database |
| Oracle | Micros Workstation 6 Firmware | ≥ 610 and ≤ 655 | Vulnerable | NIST National Vulnerability Database |
| Oracle | Tekelec Platform Distribution | ≥ 7.4.0 and ≤ 7.7.1 | Vulnerable | NIST National Vulnerability Database |
| Sudo project | Sudo | ≥ 1.8.2 and < 1.8.32≥ 1.9.0 and < 1.9.5version 1.9.5version 1.9.5-patch1 | Vulnerable | NIST National Vulnerability Database |
| Synology | Diskstation Manager | version 6.2 | Vulnerable | NIST National Vulnerability Database |
| Synology | Diskstation Manager Unified Controller | version 3.0 | Vulnerable | NIST National Vulnerability Database |
| Synology | Skynas Firmware | versions not specified by the source | Vulnerable | NIST National Vulnerability Database |
| Synology | Vs960hd Firmware | versions not specified by the source | Vulnerable | NIST National Vulnerability Database |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Every base score collected
Sources score independently and may disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Scored by |
|---|---|---|---|---|---|
| 7.8 | CVSS 3.1 | High | 1.8 | 5.9 | nvd@nist.gov via NIST National Vulnerability Database |
| 7.8 | CVSS 3.1 | High | 1.8 | 5.9 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 via NIST National Vulnerability Database |
| 7.8 | CVSS 3.1 | High | — | — | GitHub, Inc. via GitHub Security Advisories |
| 7.8 | CVSS 3.1 | High | — | — | CISA-ADP via CVE Program (cve.org) e CISA ADP |
| 7.2 | CVSS 2.0 | High | 3.9 | 10.0 | nvd@nist.gov via NIST National Vulnerability Database |
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (score shown at the top: nvd@nist.gov) Weakness MITRE
Weakness class according to MITRE’s CWE catalog.
CISA KEV details CISA
CISA lists a CVE once it has evidence of exploitation against real targets.
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 reference date.
Public exploits, PoCs and detection templates
Public code that demonstrates or tests the flaw raises the odds of mass exploitation — and Nuclei templates help find vulnerable assets in your environment.
- Sudo Heap-Based Buffer Overflow excellent Jan 26, 2021
- blasty/CVE-2021-3156 ★ 1026 Jan 30, 2021
- Sudo Baron Samedit Exploit ★ 809 Mar 15, 2021
- PoC for CVE-2021-3156 (sudo heap overflow) ★ 429 Jan 30, 2021
- CVE-2021-3156 - Sudo Baron Samedit ★ 227 Apr 29, 2021
- CVE-2021-3156非交互式执行命令 ★ 204 Feb 9, 2021
- Root shell PoC for CVE-2021-3156 ★ 158 Feb 3, 2021
- CVE-2021-3156 ★ 112 Jan 27, 2021
- 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. ★ 100 Nov 28, 2022
- CVE-2021-3156: Sudo heap overflow exploit for Debian 10 ★ 51 Feb 8, 2021
- Notes regarding CVE-2021-3156: Heap-Based Buffer Overflow in Sudo ★ 39 Jan 29, 2021
Warning: public PoCs are sometimes disguised malware. Use them only for authorized testing in an isolated environment. This portal does not host exploit code — it only points to the sources.
EPSS over time FIRST
Oct 13, 2026 → Oct 14, 2026 · 2 reading(s) · max 99.96%
Detection
Read off the CVSS vector and the weakness class. Starting points, not tested rules.
- Local/physical vector: focus on endpoint telemetry (EDR) from affected hosts.
- Hunt retroactively in logs from before Apr 6, 2022 (KEV listing): exploitation may have started earlier.
Timeline
What happened to this CVE, newest first.
- 2026
- Fix documented
- Affected products added · sudo project/sudo, fedoraproject/fedora, debian/debian linux, netapp/active iq unified manager, netapp/cloud backup, net
- Source status changed · Published → Analyzed
- Record published
- CVSS changed · 7.8
- Source status changed · → Published
- SSVC assessment updated
- Added to CISA KEV (detected)
- Record created in this database
- 2022
- Added to CISA KEV catalog
- 2021
- CVE published
Source activity
Repeated readings are counted rather than listed.
- 3× References added · Oct 13, 2026 – Oct 13, 2026
- 1× Official description updated · Oct 13, 2026 – Oct 13, 2026
References
43 on the record
- www.oracle.com//security-alerts/cpujul2021.html
- www.oracle.com/security-alerts/cpuoct2021.html
- www.oracle.com/security-alerts/cpuapr2022.html
- www.openwall.com/lists/oss-security/2021/09/14/2
- www.cisa.gov/known-exploited-vulnerabilities-catalog
- www.openwall.com/lists/oss-security/2024/01/30/8
- www.openwall.com/lists/oss-security/2021/01/27/2
- www.debian.org/security/2021/dsa-4839
- packetstormsecurity.com/files/161230/Sudo-Buffer-Overflow-Privilege-Escalation.html
- www.kb.cert.org/vuls/id/794544
- www.openwall.com/lists/oss-security/2021/02/15/1
- tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-sudo-privesc-j
- www.openwall.com/lists/oss-security/2024/01/30/6
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CALA5F
- security.netapp.com/advisory/ntap-20210128-0002/
- packetstormsecurity.com/files/161293/Sudo-1.8.31p2-1.9.5p1-Buffer-Overflow.html
- packetstormsecurity.com/files/161270/Sudo-1.9.5p1-Buffer-Overflow-Privilege-Escalation.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LHXK
- security.gentoo.org/glsa/202101-33
- www.sudo.ws/stable.html
- www.openwall.com/lists/oss-security/2021/01/27/1
- seclists.org/fulldisclosure/2021/Feb/42
- github.com/advisories/GHSA-w5vh-2923-gp5c
- seclists.org/fulldisclosure/2021/Jan/79
- nvd.nist.gov/vuln/detail/CVE-2021-3156
- lists.debian.org/debian-lts-announce/2021/01/msg00022.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CALA
- security.netapp.com/advisory/ntap-20210128-0001/
- security.netapp.com/advisory/ntap-20210128-0001
- www.beyondtrust.com/blog/entry/security-advisory-privilege-management-for-unix-linux-pmul
- support.apple.com/kb/HT212177
- packetstormsecurity.com/files/176932/glibc-syslog-Heap-Based-Buffer-Overflow.html
- www.vicarius.io/vsociety/posts/sudoedit-pwned-cve-2021-3156
- www.openwall.com/lists/oss-security/2021/01/26/3
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LHXK
- seclists.org/fulldisclosure/2024/Feb/3
- packetstormsecurity.com/files/161160/Sudo-Heap-Based-Buffer-Overflow.html
- kc.mcafee.com/corporate/index
- www.synology.com/security/advisory/Synology_SA_21_02
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LHXK6I
- www.openwall.com/lists/oss-security/2021/01/26/3
- security.netapp.com/advisory/ntap-20210128-0002
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CALA
Elsewhere on this site
Related CVEs (same products)
- High CVE-2026-12996 A use-after-free in OpenVPN 2.6.0 through 2.6.20 and 2.7_alpha1 through 2.7.4 allows remote... Jul 30, 2026
- Medium CVE-2026-56968 Use of Uninitialized Resource in Gnu Sasl Jun 23, 2026
- Medium CVE-2026-54231 Abrt: unsanitized systemd journal content written to dump directory files enables content injection Jun 13, 2026
- High CVE-2026-54230 Abrt: event handler scripts follow symlinks when writing output files, allowing arbitrary file overwrites Jun 13, 2026
- High CVE-2026-49975 Apache HTTP Server: mod_http2 denial of service Jun 8, 2026
- Critical CVE-2025-13392 Improper Check for Unusual or Exceptional Conditions in Synology Diskstation Manager May 27, 2026
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.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware 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 record
Text assembled only from the fields above — no additional claims.
What should defenders know first?
CVE-2021-3156 is "Sudo Heap-Based Buffer Overflow Vulnerability", rated High. It affects Privilege Management For Mac (Beyondtrust); versions are in the scope table. It is in CISA KEV: there is evidence of real-world exploitation. CVSS 7.8 describes technical severity. EPSS 99.96% estimates the probability of exploitation in 30 days; neither replaces your asset context. First verify whether exposed or business-critical assets run the affected versions, apply vendor fixes or mitigations, and preserve logs for review.
Comments
Moderated technical discussion. Read the community guidelines.
No comments yet.
Sign in or create an account to comment and suggest corrections.