CVE-2021-3156: Baron Samedit
- Vendors
- NetAppOracle CorporationDebian ProjectSynologyFedora ProjectBeyondtrustSudoMcafee
Baron Samedit is a local privilege-escalation vulnerability in Sudo versions before 1.9.5p2. An off-by-one error in command-line argument processing in set_cmd() can cause a heap-based buffer overflow when sudoedit is invoked in shell mode with a crafted argument ending in a single backslash. A local unprivileged user can exploit the memory corruption to execute arbitrary code as root without authentication, including when the user has no privileges granted by sudo policy.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can fully compromise the affected operating system through arbitrary code execution with root privileges. An attacker can access protected data and credentials, modify system configuration, disable security controls, and install privileged persistence. Malformed exploitation attempts can also cause crashes or denial of service. Exposure extends to appliances and applications that incorporate a vulnerable Sudo package.
Mitigation
If you can’t patch tonight, do this now.
If patching must be deferred, restrict execution of the vulnerable Sudo utility to trusted users and reduce untrusted local access, including access through compromised service accounts. Restricting sudo policy permissions alone does not prevent exploitation because users without authorized sudo privileges can trigger the flaw. For AC2000 versions before 10.6, the vendor recommends removing the Sudo package as an interim measure; assess administrative and application dependencies before doing so. Monitor for suspicious Sudo execution and privilege-escalation activity, but do not treat monitoring as a substitute for patching.
Remediation
Patch, then assume compromise.
Update Sudo to version 1.9.5p2 or later, or install the operating-system vendor's backported security fix. For Amazon Linux and Amazon Linux 2, install the fixed Sudo package from the distribution repositories; for affected Ubuntu-based exacqVision deployments, apply Ubuntu security updates. Product-specific fixes include Tyco AI 1.3, VideoEdge 5.7.0, AC2000 10.6, Tyco Illustra Pro Gen 3 version 2.8.0, Flex Gen 2 version 1.9.4, and Insight version 1.4.0. VideoEdge 5.4.2 and 5.6.0 also have standalone Sudo patches; VideoEdge 5.4.1 and earlier require an upgrade. No fixed version is identified for end-of-life Illustra Pro 2. Verify distribution package advisories rather than relying solely on the upstream version number.
Exploits
28 exploits validated by Mallory's analysis. Hidden: 19 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries. Showing the 25 most capable, earliest first.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-3156 exploited in the wild?
- Yes. As of Nov 25, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Apr 6, 2022.
- Is there a public exploit for CVE-2021-3156?
- Yes. Mallory tracks 28 public exploits or proofs of concept for CVE-2021-3156, the earliest disclosed Jan 26, 2021.
- Is there a patch for CVE-2021-3156?
- Update Sudo to version 1.9.5p2 or later, or install the operating-system vendor's backported security fix. For Amazon Linux and Amazon Linux 2, install the fixed Sudo package from the distribution repositories; for affected Ubuntu-based exacqVision deployments, apply Ubuntu security updates.
- What products are affected by CVE-2021-3156?
- Sudo, NetApp Activeiq Unified Manager, NetApp Cloud Backup, Oracle Corporation Communications Performance Intelligence Center, Debian Project Debian Linux, and at least 19 more.
- How severe is CVE-2021-3156?
- CVE-2021-3156 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 100.0% (100th percentile) as of Nov 25, 2026.
Recent activity
51 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.