CVE-2021-3156: Vulnerability in sudo Project sudo
Actively exploited. 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.
Exploited in the wild, CWE-193
- Exploitation
- Confirmed 6 Apr 2022
- Severity
- 7.8 of 10
- Attack likelihood
- 100 % in 30 days
- Fix
- Fixed version known
- Patch deadline
- Agencies by 27 Apr 2022
Details
- EU ID
- EUVD-2021-26500
- Vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-193
- Published
- 26 Jan 2021
- Last change
- 17 Jun 2026
- Likelihood rank
- Higher than 100 % of all rated vulnerabilities
- Analysis status
- Analyzed
- Required action
- Apply updates per vendor instructions.
Affected products
Affected versions and the first fixed release
- sudo Project sudo From 1.8.2 before 1.8.32; From 1.9.0 before 1.9.5; Version 1.9.5. Fixed in 1.8.32
- Fedoraproject Fedora Versions 32, 33. No fixed version recorded
- Debian Linux Versions 9.0, 10.0. No fixed version recorded
- Netapp Active Iq Unified Manager All versions. No fixed version recorded
- Netapp Cloud Backup All versions. No fixed version recorded
- Netapp Hci Management Node All versions. No fixed version recorded
- Netapp Oncommand Unified Manager Core Package All versions. No fixed version recorded
- Netapp Ontap Select Deploy Administration Utility All versions. No fixed version recorded
Advisories
Vendor and security advisories
- seclists.org/fulldisclosure/2021/Feb/42
- openwall.com/lists/oss-security/2021/01/27/1
- openwall.com/lists/oss-security/2021/01/27/2
- openwall.com/lists/oss-security/2024/01/30/8
- kc.mcafee.com/corporate/index
- lists.debian.org/debian-lts-announce/2021/01/msg00022.html
- security.gentoo.org/glsa/202101-33
- security.netapp.com/advisory/ntap-20210128-0001/
- security.netapp.com/advisory/ntap-20210128-0002/
- support.apple.com/kb/HT212177
- tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-sudo-privesc-jan...
- beyondtrust.com/blog/entry/security-advisory-privilege-management-for-unix-linux-pmul-b...
Patches and fixes
Updates, commits and release notes
- openwall.com/lists/oss-security/2021/09/14/2
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/messag...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/messag...
- oracle.com//security-alerts/cpujul2021.html
- oracle.com/security-alerts/cpuapr2022.html
- oracle.com/security-alerts/cpuoct2021.html
- sudo.ws/stable.html
Exploit code
Public exploits and proofs of concept, handle with care
- packetstormsecurity.com/files/161160/Sudo-Heap-Based-Buffer-Overflow.html
- packetstormsecurity.com/files/161230/Sudo-Buffer-Overflow-Privilege-Escalation.html
- packetstormsecurity.com/files/161270/Sudo-1.9.5p1-Buffer-Overflow-Privilege-Escalation....
- packetstormsecurity.com/files/161293/Sudo-1.8.31p2-1.9.5p1-Buffer-Overflow.html
- packetstormsecurity.com/files/176932/glibc-syslog-Heap-Based-Buffer-Overflow.html
- seclists.org/fulldisclosure/2021/Jan/79
- seclists.org/fulldisclosure/2024/Feb/3
- openwall.com/lists/oss-security/2021/01/26/3
Related
- sudo vulnerabilities Recent advisories, watch this product
- Exploited vulnerabilities Explorer, exploited only