PRIOn Logo

CVE-2021-3156 Heap overflow

Immediate
Remediate Within 48 Hours

CVE Information

Original CVE data

Published:
Updated:

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.

CWE: CWE-193
CVSS v27.2
AV:L/AC:L/AU:N/C:C/I:C/A:C
CVSS v37.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
https://www.openwall.com/lists/oss-security/2021/01/26/3
https://www.sudo.ws/stable.html
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
http://www.openwall.com/lists/oss-security/2021/01/27/1
http://www.openwall.com/lists/oss-security/2021/01/27/2
http://packetstormsecurity.com/files/161160/Sudo-Heap-Based-Buffer-Overflow.html
https://security.netapp.com/advisory/ntap-20210128-0001/
https://security.netapp.com/advisory/ntap-20210128-0002/
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-sudo-privesc-jan2021-qnYQfcM
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
https://www.kb.cert.org/vuls/id/794544
http://packetstormsecurity.com/files/161293/Sudo-1.8.31p2-1.9.5p1-Buffer-Overflow.html
https://support.apple.com/kb/HT212177
http://seclists.org/fulldisclosure/2021/Feb/42
https://kc.mcafee.com/corporate/index?page=content&id=SB10348
http://www.openwall.com/lists/oss-security/2021/02/15/1
https://lists.debian.org/debian-lts-announce/2021/01/msg00022.html
http://seclists.org/fulldisclosure/2021/Jan/79
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
https://www.synology.com/security/advisory/Synology_SA_21_02
https://www.oracle.com//security-alerts/cpujul2021.html
http://www.openwall.com/lists/oss-security/2021/09/14/2
https://www.oracle.com/security-alerts/cpuoct2021.html
https://www.oracle.com/security-alerts/cpuapr2022.html
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/2024/01/30/8
http://www.openwall.com/lists/oss-security/2024/01/30/6
http://packetstormsecurity.com/files/176932/glibc-syslog-Heap-Based-Buffer-Overflow.html
http://seclists.org/fulldisclosure/2024/Feb/3
Affected Vendors

Beyondtrust - (2)

Debian - (1)

Fedoraproject - (1)

Mcafee - (1)

Netapp - (7)

Oracle - (7)

Sudo Project - (1)

Synology - (4)

Basic Analysis

Common vulnerability metrics

Vulnerabilty type as detected by PRIOnengine

Heap overflow

CVSS Scores as calculated by PRIOnengine
CVSS v27.2
AV:L/AC:L/AU:N/C:C/I:C/A:C
CVSS v37.8
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
MITRE CWE Top 25

-

Exploits

Exploits are available either through exploit packs, Github repos or the world wide web in general.

Active Exploitation

Vulnerability is referenced under CISA's Known Exploited Vulnerabilities (KEV) catalog. See the KEV Catalog

Social Network Activity

Vulnerability is mentioned or trending in social media.

Threat Actor Activity

Vulnerability is being actively exploited by threat actors during campaigns.

Cybersecurity Frameworks

How the vulnerability maps against various cybersecurity frameworks

T1529 - System Shutdown/Reboot
T1499.004 - Endpoint Denial of Service (Application or System Exploitation)
T1203 - Exploitation for Client Execution
T1068 - Exploitation for Privilege Escalation
T1059 - Command and Scripting Interpreter

Compliance Impact

How the submited vulnerability affects compliance

PCI DSS v3.2.1-6.5.2 - Buffer Overflows

Web Application Security Frameworks

Applicable if the issue likely affects a web application

-