CVE-2021-3156
CVE-2021-3156
This page contains facts from public vulnerability sources. Check the original advisory before updating.
This page shows selected source facts. See the linked advisories for the complete description and affected versions.
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.
CVSS 7.8 · High · EPSS 100.0% · In KEV · Public exploit · Fix available
- Published
- Updated
Stack: system
Affected products and versions
n/a
- Versions
- n/a: Affected
No fix published
sudo Debian:12
- Affected ranges
- ECOSYSTEM: < 1.9.5p1-1.1
Update to 1.9.5p1-1.1
sudo Debian:13
- Affected ranges
- ECOSYSTEM: < 1.9.5p1-1.1
Update to 1.9.5p1-1.1
sudo Debian:14
- Affected ranges
- ECOSYSTEM: < 1.9.5p1-1.1
Update to 1.9.5p1-1.1
sudo Ubuntu:Pro:14.04:LTS
- Versions
- 1.8.6p3-0ubuntu3
- 1.8.8-2ubuntu1
- 1.8.8-2ubuntu2
- 1.8.9p4-1ubuntu1
- 1.8.9p4-1ubuntu2
- 1.8.9p5-1ubuntu1
- 1.8.9p5-1ubuntu1.1
- 1.8.9p5-1ubuntu1.2
- 1.8.9p5-1ubuntu1.3
- 1.8.9p5-1ubuntu1.4
- 1.8.9p5-1ubuntu1.5+esm1
- 1.8.9p5-1ubuntu1.5+esm2
- 1.8.9p5-1ubuntu1.5+esm3
- 1.8.9p5-1ubuntu1.5+esm5
- Affected ranges
- ECOSYSTEM: < 1.8.9p5-1ubuntu1.5+esm6
Update to 1.8.9p5-1ubuntu1.5+esm6
sudo Ubuntu:16.04:LTS
- Versions
- 1.8.12-1ubuntu3
- 1.8.16-0ubuntu1
- 1.8.16-0ubuntu1.1
- 1.8.16-0ubuntu1.2
- 1.8.16-0ubuntu1.3
- 1.8.16-0ubuntu1.4
- 1.8.16-0ubuntu1.5
- 1.8.16-0ubuntu1.6
- 1.8.16-0ubuntu1.7
- 1.8.16-0ubuntu1.8
- 1.8.16-0ubuntu1.9
- Affected ranges
- ECOSYSTEM: < 1.8.16-0ubuntu1.10
Update to 1.8.16-0ubuntu1.10
sudo Ubuntu:18.04:LTS
- Versions
- 1.8.20p2-1ubuntu1
- 1.8.21p2-2ubuntu1
- 1.8.21p2-3ubuntu1
- 1.8.21p2-3ubuntu1.1
- 1.8.21p2-3ubuntu1.2
- 1.8.21p2-3ubuntu1.3
- Affected ranges
- ECOSYSTEM: < 1.8.21p2-3ubuntu1.4
Update to 1.8.21p2-3ubuntu1.4
sudo Ubuntu:20.04:LTS
- Versions
- 1.8.27-1ubuntu4
- 1.8.29-1ubuntu1
- 1.8.31-1ubuntu1
- 1.8.31-1ubuntu1.1
- Affected ranges
- ECOSYSTEM: < 1.8.31-1ubuntu1.2
Update to 1.8.31-1ubuntu1.2
Original sources
- https://lists.debian.org/debian-lts-announce/2021/01/msg00022.html
- http://seclists.org/fulldisclosure/2021/Jan/79
- http://www.openwall.com/lists/oss-security/2021/01/26/3
- https://security.gentoo.org/glsa/202101-33
- https://www.debian.org/security/2021/dsa-4839
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LHXK6ICO5AYLGFK2TAX5MZKUXTUKWOJY/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CALA5FTXIQBRRYUA2ZQNJXB6OQMAXEII/
- http://www.openwall.com/lists/oss-security/2021/01/27/1
- http://www.openwall.com/lists/oss-security/2021/01/27/2
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-sudo-privesc-jan2021-qnYQfcM
- https://www.kb.cert.org/vuls/id/794544
- http://seclists.org/fulldisclosure/2021/Feb/42
- http://www.openwall.com/lists/oss-security/2021/02/15/1
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.sudo.ws/stable.html#1.9.5p2
- https://www.openwall.com/lists/oss-security/2021/01/26/3
- http://packetstormsecurity.com/files/161160/Sudo-Heap-Based-Buffer-Overflow.html
- https://security.netapp.com/advisory/ntap-20210128-0002/
- https://security.netapp.com/advisory/ntap-20210128-0001/
- http://packetstormsecurity.com/files/161230/Sudo-Buffer-Overflow-Privilege-Escalation.html
- http://packetstormsecurity.com/files/161270/Sudo-1.9.5p1-Buffer-Overflow-Privilege-Escalation.html
- http://packetstormsecurity.com/files/161293/Sudo-1.8.31p2-1.9.5p1-Buffer-Overflow.html
- https://support.apple.com/kb/HT212177
- https://nvd.nist.gov/vuln/detail/CVE-2021-3156