patchminder
Exploited in the wildCVE-2021-3156

Baron Samedit.Privilege escalation.

Baron Samedit is the nickname of CVE-2021-3156 in Sudo. 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. CISA: Sudo contains an off-by-one error that can result in a heap-based buffer overflow, which allows for privilege escalation.

Name used by: Qualys

Exploited
Yes
On CISA's exploited list since 6 Apr 2022
Severity
High 7.8
CVSS 3.1 · CISA assessment
Attack likelihood
Very high
EPSS 100.0% chance in 30 days · 4 Dec 2026
Fix
Not confirmed
See the vendor advisory
Timeline

From publication to today

15 Jan 2021
CVE ID reserved by mitre.
26 Jan 2021
Published in the CVE List.
26 Jan 2021
Metasploit module: Sudo Heap-Based Buffer Overflow.
27 Jan 2021
First public proof of concept on GitHub.
6 Apr 2022
Added to CISA's Known Exploited Vulnerabilities list.
21 Oct 2025
CVE record last updated.
What to do

Fix it

  • CISA requires US federal agencies to fix it by 27 Apr 2022.
Affected products

Affected and fixed versions

Product and line
Affected
Fixed in
n/a
Not confirmed
Not confirmed
Everything else

The full page for CVE-2021-3156

Severity details, every source, exploit references with their warnings, and the version check.

Open CVE-2021-3156All named vulnerabilities