CVE-2021-3156 Detail

Current 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.


View Analysis Description

Severity



CVSS 3.x Severity and Metrics:

NIST CVSS score
NIST: NVD
Base Score:  7.8 HIGH
Vector:  CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H


NVD Analysts use publicly available information to associate vector strings and CVSS scores. We also display any CVSS information provided within the CVE List from the CNA.

Note: NVD Analysts have published a CVSS score for this CVE based on publicly available information at the time of analysis. The CNA has not provided a score within the CVE List.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
http://packetstormsecurity.com/files/161160/Sudo-Heap-Based-Buffer-Overflow.html Third Party Advisory  VDB Entry 
http://packetstormsecurity.com/files/161230/Sudo-Buffer-Overflow-Privilege-Escalation.html Exploit  Third Party Advisory  VDB Entry 
http://packetstormsecurity.com/files/161270/Sudo-1.9.5p1-Buffer-Overflow-Privilege-Escalation.html Exploit  Third Party Advisory  VDB Entry 
http://packetstormsecurity.com/files/161293/Sudo-1.8.31p2-1.9.5p1-Buffer-Overflow.html Exploit  Third Party Advisory  VDB Entry 
http://seclists.org/fulldisclosure/2021/Feb/42 Mailing List  Third Party Advisory 
http://seclists.org/fulldisclosure/2021/Jan/79 Exploit  Mailing List  Third Party Advisory 
http://www.openwall.com/lists/oss-security/2021/01/26/3 Exploit  Mailing List  Third Party Advisory 
http://www.openwall.com/lists/oss-security/2021/01/27/1 Mailing List  Third Party Advisory 
http://www.openwall.com/lists/oss-security/2021/01/27/2 Mailing List  Third Party Advisory 
http://www.openwall.com/lists/oss-security/2021/02/15/1 Exploit  Mailing List  Third Party Advisory 
https://kc.mcafee.com/corporate/index?page=content&id=SB10348 Third Party Advisory 
https://lists.debian.org/debian-lts-announce/2021/01/msg00022.html Mailing List  Third Party Advisory 
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CALA5FTXIQBRRYUA2ZQNJXB6OQMAXEII/ Mailing List  Third Party Advisory 
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LHXK6ICO5AYLGFK2TAX5MZKUXTUKWOJY/ Mailing List  Third Party Advisory 
https://security.gentoo.org/glsa/202101-33 Third Party Advisory 
https://security.netapp.com/advisory/ntap-20210128-0001/ Third Party Advisory 
https://security.netapp.com/advisory/ntap-20210128-0002/ Third Party Advisory 
https://support.apple.com/kb/HT212177 Third Party Advisory 
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-sudo-privesc-jan2021-qnYQfcM Third Party Advisory 
https://www.beyondtrust.com/blog/entry/security-advisory-privilege-management-for-unix-linux-pmul-basic-and-privilege-management-for-mac-pmm-affected-by-sudo-vulnerability Patch  Third Party Advisory 
https://www.debian.org/security/2021/dsa-4839 Third Party Advisory 
https://www.kb.cert.org/vuls/id/794544 Third Party Advisory  US Government Resource 
https://www.openwall.com/lists/oss-security/2021/01/26/3 Exploit  Mailing List  Third Party Advisory 
https://www.sudo.ws/stable.html#1.9.5p2 Release Notes  Vendor Advisory 
https://www.synology.com/security/advisory/Synology_SA_21_02 Third Party Advisory 

Weakness Enumeration

CWE-ID CWE Name Source
CWE-193 Off-by-one Error cwe source acceptance level NIST  

Known Affected Software Configurations Switch to CPE 2.2

CPEs loading, please wait.

Denotes Vulnerable Software
Are we missing a CPE here? Please let us know.

Change History

26 change records found show changes

Quick Info

CVE Dictionary Entry:
CVE-2021-3156
NVD Published Date:
01/26/2021
NVD Last Modified:
03/26/2021
Source:
MITRE