Name | CVE-2021-3156 |
Description | Sudo before 1.9.5p2 has a Heap-based Buffer Overflow, allowing privilege escalation to root via "sudoedit -s" and a command-line argument that ends with a single backslash character. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more) |
References | DLA-2534-1, DSA-4839-1 |
NVD severity | high |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
sudo (PTS) | stretch | 1.8.19p1-2.1+deb9u2 | vulnerable |
stretch (security) | 1.8.19p1-2.1+deb9u3 | fixed | |
buster, buster (security) | 1.8.27-1+deb10u3 | fixed | |
bullseye | 1.9.5p2-2 | fixed | |
sid | 1.9.5p2-3 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
sudo | source | stretch | 1.8.19p1-2.1+deb9u3 | DLA-2534-1 | ||
sudo | source | buster | 1.8.27-1+deb10u3 | DSA-4839-1 | ||
sudo | source | (unstable) | 1.9.5p1-1.1 |
https://www.sudo.ws/alerts/unescape_overflow.html
https://www.sudo.ws/repos/sudo/rev/9b97f1787804
https://www.sudo.ws/repos/sudo/rev/a97dc92eae6b
https://www.sudo.ws/repos/sudo/rev/049ad90590be
https://www.sudo.ws/repos/sudo/rev/09f98816fc89
https://www.sudo.ws/repos/sudo/rev/c125fbe68783
https://www.openwall.com/lists/oss-security/2021/01/26/3