Name | CVE-2021-3156 |
Description | 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-2534-1, DSA-4839-1 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
sudo (PTS) | bullseye (security), bullseye | 1.9.5p2-3+deb11u1 | fixed |
bookworm | 1.9.13p3-1+deb12u1 | fixed | |
sid, trixie | 1.9.16p1-1 | 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