Sudo contains an off-by-one error that can result in a heap-based buffer overflow, which allows for privilege escalation.
In short
CVE-2021-3156 (Sudo Heap-Based Buffer Overflow) has a CVSS 3.1 base score of 7.8, rated high. CISA added it to the Known Exploited Vulnerabilities catalog on 6 Apr 2022. Fixed in Beyondtrust Privilege Management For Mac 21.1.1, Beyondtrust Privilege Management For Unix/linux 10.3.2-10, Sudo 1.8.32 or later.
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.
CVSS 3.1 breakdown
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HAffected products
- Beyondtrust Privilege Management For Mac< 21.1.1
- Beyondtrust Privilege Management For Unix/linux< 10.3.2-10
- Mcafee Web Gateway10.0.4 · 8.2.17 · 9.2.8
- Netapp Active Iq Unified Managerall versions
- Netapp Cloud Backupall versions
- Netapp Hci Management Nodeall versions
- Netapp Oncommand Unified Manager Core Packageall versions
- Netapp Ontap Select Deploy Administration Utilityall versions
- Netapp Ontap Tools9
- Netapp Solidfireall versions
- Oracle Communications Performance Intelligence Center≥ 10.3.0.0.0 ≤ 10.3.0.2.1 · ≥ 10.4.0.1.0 ≤ 10.4.0.3.1
- Oracle Tekelec Platform Distribution≥ 7.4.0 ≤ 7.7.1
- Sudo≥ 1.8.2 < 1.8.32 · ≥ 1.9.0 < 1.9.5 · 1.9.5
- Synology Diskstation Manager Unified Controller3.0
- Debian Linux10.0 · 9.0
- Fedoraproject Fedora32 · 33
- Oracle Micros Compact Workstation 3 Firmware310
- Oracle Micros Es400 Firmware≥ 400 ≤ 410
- Oracle Micros Kitchen Display System Firmware210
- Oracle Micros Workstation 5a Firmware5a
- Oracle Micros Workstation 6 Firmware≥ 610 ≤ 655
- Synology Diskstation Manager6.2
- Synology Skynas Firmwareall versions
- Synology Vs960hd Firmwareall versions
Remediation
Fixed in- Beyondtrust Privilege Management For Mac≥ 21.1.1
- Beyondtrust Privilege Management For Unix/linux≥ 10.3.2-10
- Sudo≥ 1.8.32
References
- http://packetstormsecurity.com/files/161160/Sudo-Heap-Based-Buffer-Overflow.html
- 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
- http://packetstormsecurity.com/files/161293/Sudo-1.8.31p2-1.9.5p1-Buffer-Overflow.html
- http://packetstormsecurity.com/files/176932/glibc-syslog-Heap-Based-Buffer-Overflow.html
- http://seclists.org/fulldisclosure/2021/Feb/42
- http://seclists.org/fulldisclosure/2021/Jan/79
- http://seclists.org/fulldisclosure/2024/Feb/3
- https://kc.mcafee.com/corporate/index?page=content&id=SB10348
- https://lists.debian.org/debian-lts-announce/2021/01/msg00022.html
and 25 more references
Related CVEs
Exploited and critical vulnerabilities in the same product or from the same vendor.
Data from the NVD, CISA KEV catalog and FIRST EPSS. The CVSS 4.0 base score is shown where the NVD has one, otherwise CVSS 3.1.
