Unrated severityCISA KEVNVD Advisory· Published Jan 26, 2021· Updated Oct 21, 2025
CVE-2021-3156
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.
Affected products
1- Sudo/Sudodescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
34- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CALA5FTXIQBRRYUA2ZQNJXB6OQMAXEII/mitrevendor-advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LHXK6ICO5AYLGFK2TAX5MZKUXTUKWOJY/mitrevendor-advisory
- security.gentoo.org/glsa/202101-33mitrevendor-advisory
- tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-sudo-privesc-jan2021-qnYQfcMmitrevendor-advisory
- www.debian.org/security/2021/dsa-4839mitrevendor-advisory
- www.kb.cert.org/vuls/id/794544mitrethird-party-advisory
- seclists.org/fulldisclosure/2021/Feb/42mitremailing-list
- seclists.org/fulldisclosure/2021/Jan/79mitremailing-list
- seclists.org/fulldisclosure/2024/Feb/3mitremailing-list
- www.openwall.com/lists/oss-security/2021/01/26/3mitremailing-list
- www.openwall.com/lists/oss-security/2021/01/27/1mitremailing-list
- www.openwall.com/lists/oss-security/2021/01/27/2mitremailing-list
- www.openwall.com/lists/oss-security/2021/02/15/1mitremailing-list
- www.openwall.com/lists/oss-security/2021/09/14/2mitremailing-list
- www.openwall.com/lists/oss-security/2024/01/30/6mitremailing-list
- www.openwall.com/lists/oss-security/2024/01/30/8mitremailing-list
- lists.debian.org/debian-lts-announce/2021/01/msg00022.htmlmitremailing-list
- packetstormsecurity.com/files/161160/Sudo-Heap-Based-Buffer-Overflow.htmlmitre
- packetstormsecurity.com/files/161230/Sudo-Buffer-Overflow-Privilege-Escalation.htmlmitre
- packetstormsecurity.com/files/161270/Sudo-1.9.5p1-Buffer-Overflow-Privilege-Escalation.htmlmitre
- packetstormsecurity.com/files/161293/Sudo-1.8.31p2-1.9.5p1-Buffer-Overflow.htmlmitre
- packetstormsecurity.com/files/176932/glibc-syslog-Heap-Based-Buffer-Overflow.htmlmitre
- kc.mcafee.com/corporate/indexmitre
- security.netapp.com/advisory/ntap-20210128-0001/mitre
- security.netapp.com/advisory/ntap-20210128-0002/mitre
- support.apple.com/kb/HT212177mitre
- www.beyondtrust.com/blog/entry/security-advisory-privilege-management-for-unix-linux-pmul-basic-and-privilege-management-for-mac-pmm-affected-by-sudo-vulnerabilitymitre
- www.openwall.com/lists/oss-security/2021/01/26/3mitre
- www.oracle.com//security-alerts/cpujul2021.htmlmitre
- www.oracle.com/security-alerts/cpuapr2022.htmlmitre
- www.oracle.com/security-alerts/cpuoct2021.htmlmitre
- www.sudo.ws/stable.htmlmitre
- www.synology.com/security/advisory/Synology_SA_21_02mitre
- www.vicarius.io/vsociety/posts/sudoedit-pwned-cve-2021-3156mitre
News mentions
0No linked articles in our index yet.