CVE-2021-3156: Sudo Heap-Based Buffer Overflow Vulnerability
High · CVSS 7.8 (CVSS 3.1)KEV known exploitedEPSS 100.0%, 100th percentilePublished Updated Assigner: mitre
In CISA’s Known Exploited Vulnerabilities catalog: Sudo Heap-Based Buffer Overflow Vulnerability.
Added , federal remediation due . Known ransomware use: Unknown.
Required action: Apply updates per vendor instructions.
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.
Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Status incidents that name it
No tracked status incident names this CVE.
Affected vendors and products
Sudo: Sudo
References
- CVE record on cve.org (opens in new tab)
- NVD entry (opens in new tab)
- packetstormsecurity.com/files/161160/Sudo-Heap-Based-Buffer-Overflow.html (opens in new tab)
- packetstormsecurity.com/files/161230/Sudo-Buffer-Overflow-Privilege-Escalation.html (opens in new tab)
- packetstormsecurity.com/files/161270/Sudo-1.9.5p1-Buffer-Overflow-Privilege-Escalation.html (opens in new tab)
- packetstormsecurity.com/files/161293/Sudo-1.8.31p2-1.9.5p1-Buffer-Overflow.html (opens in new tab)
- packetstormsecurity.com/files/176932/glibc-syslog-Heap-Based-Buffer-Overflow.html (opens in new tab)
- seclists.org/fulldisclosure/2021/Feb/42 (opens in new tab)
- seclists.org/fulldisclosure/2021/Jan/79 (opens in new tab)
- seclists.org/fulldisclosure/2024/Feb/3 (opens in new tab)
- kc.mcafee.com/corporate/index (opens in new tab)
- lists.debian.org/debian-lts-announce/2021/01/msg00022.html (opens in new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CALA… (opens in new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LHXK… (opens in new tab)
- security.gentoo.org/glsa/202101-33 (opens in new tab)
- security.netapp.com/advisory/ntap-20210128-0001/ (opens in new tab)
- security.netapp.com/advisory/ntap-20210128-0002/ (opens in new tab)
- support.apple.com/kb/HT212177 (opens in new tab)
- tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-sudo-privesc-j… (opens in new tab)
- www.beyondtrust.com/blog/entry/security-advisory-privilege-management-for-unix-linux-pmul… (opens in new tab)
- www.debian.org/security/2021/dsa-4839 (opens in new tab)
- www.kb.cert.org/vuls/id/794544 (opens in new tab)
- www.openwall.com/lists/oss-security/2021/01/26/3 (opens in new tab)
- www.oracle.com/security-alerts/cpuapr2022.html (opens in new tab)
- www.oracle.com//security-alerts/cpujul2021.html (opens in new tab)
- www.oracle.com/security-alerts/cpuoct2021.html (opens in new tab)
- www.sudo.ws/stable.html (opens in new tab)
- www.synology.com/security/advisory/Synology_SA_21_02 (opens in new tab)
- www.vicarius.io/vsociety/posts/sudoedit-pwned-cve-2021-3156 (opens in new tab)
- www.openwall.com/lists/oss-security/2021/01/26/3 (opens in new tab)
- www.openwall.com/lists/oss-security/2021/01/27/1 (opens in new tab)
- www.openwall.com/lists/oss-security/2021/01/27/2 (opens in new tab)
- www.openwall.com/lists/oss-security/2021/02/15/1 (opens in new tab)
- www.openwall.com/lists/oss-security/2021/09/14/2 (opens in new tab)
- www.openwall.com/lists/oss-security/2024/01/30/6 (opens in new tab)
- www.openwall.com/lists/oss-security/2024/01/30/8 (opens in new tab)
- CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (opens in new tab)
- This product uses data from the NVD API but is not endorsed or certified by the NVD. (opens in new tab)
- Known Exploited Vulnerabilities catalog from CISA. (opens in new tab)
- EPSS scores from FIRST (Exploit Prediction Scoring System). (opens in new tab)