CVE-2021-3156
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
References
Published
Community ground truth
Community verdict
2 verdictsIncludes TruePositive's curated baseline from public sources — community verdicts accrue on top.
to add your verdict.
In line with its CVSS base score.
Field notes & remediation
Verdicts are the quick signal — notes are the evidence and fixes behind them.
- 0
Heap overflow in sudo via
sudoeditargv parsing → root. Local, but affects a near-ubiquitous binary and exploits are reliable across many distros. Standard privesc on any shell you land. - 0
Update sudo to 1.9.5p2+. Check
sudoedit -s '\' \perl -e 'print "A" x 65536'`` style PoCs are no longer crashing after patch.