Hexret
CVE-2021-3156high 7.8PoC available

Sudo 'Baron Samedit' heap overflow (CVE-2021-3156)

A shell-mode argument-unescaping loop skips its string-terminator check, so an argument ending in a lone backslash makes sudo read past the end of the string and copy adjacent heap into a fixed buffer, a heap overflow that yields local root.

Product
Sudo (sudoers plugin)
Vendor
Sudo project (Todd C. Miller)
Affected
1.8.2 through 1.8.31p2, and 1.9.0 through 1.9.5p1
Fixed in
1.9.5p2
Weakness
CWE-193
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
26 Jan 2021

Practice this CVE, free

Classified as

References

Related CVEs