CVE-2021-3156

high
New! CVE Severity Now Using CVSS v3

The calculated severity for CVEs has been updated to use CVSS v3 by default. CVEs that do not have a CVSS v3 score will fall back CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

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.

References

https://www.openwall.com/lists/oss-security/2021/01/26/3

https://www.sudo.ws/stable.html#1.9.5p2

http://www.openwall.com/lists/oss-security/2021/01/26/3

https://security.gentoo.org/glsa/202101-33

https://lists.fedoraproject.org/archives/list/[email protected]/message/LHXK6ICO5AYLGFK2TAX5MZKUXTUKWOJY/

https://www.debian.org/security/2021/dsa-4839

https://lists.fedoraproject.org/archives/list/[email protected]/message/CALA5FTXIQBRRYUA2ZQNJXB6OQMAXEII/

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

Details

Source: MITRE

Published: 2021-01-26

Updated: 2021-07-20

Type: CWE-193

Risk Information

CVSS v2

Base Score: 7.2

Vector: AV:L/AC:L/Au:N/C:C/I:C/A:C

Impact Score: 10

Exploitability Score: 3.9

Severity: HIGH

CVSS v3

Base Score: 7.8

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Impact Score: 5.9

Exploitability Score: 1.8

Severity: HIGH

Tenable Plugins

View all (64 total)

IDNameProductFamilySeverity
151386EulerOS Virtualization 3.0.2.2 : sudo (EulerOS-SA-2021-2170)NessusHuawei Local Security Checks
high
150464OracleVM 3.4 : sudo (OVMSA-2021-0012)NessusOracleVM Local Security Checks
high
149628openSUSE Security Update : sudo (openSUSE-2021-602)NessusSuSE Local Security Checks
high
148873SUSE SLES12 Security Update : sudo (SUSE-SU-2021:1274-1)NessusSuSE Local Security Checks
high
148872SUSE SLES12 Security Update : sudo (SUSE-SU-2021:1273-1)NessusSuSE Local Security Checks
high
148868SUSE SLED15 / SLES15 Security Update : sudo (SUSE-SU-2021:1275-1)NessusSuSE Local Security Checks
high
148867SUSE SLES12 Security Update : sudo (SUSE-SU-2021:1267-1)NessusSuSE Local Security Checks
high
148642Oracle Linux 6 : sudo (ELSA-2021-9169)NessusOracle Linux Local Security Checks
high
148142SUSE SLES12 Security Update : sudo (SUSE-SU-2021:0928-1)NessusSuSE Local Security Checks
high
148081EulerOS 2.0 SP5 : sudo (EulerOS-SA-2021-1707)NessusHuawei Local Security Checks
high
147695EulerOS Virtualization 2.9.0 : sudo (EulerOS-SA-2021-1669)NessusHuawei Local Security Checks
high
147547EulerOS Virtualization 3.0.2.6 : sudo (EulerOS-SA-2021-1424)NessusHuawei Local Security Checks
high
147509EulerOS Virtualization 2.9.1 : sudo (EulerOS-SA-2021-1630)NessusHuawei Local Security Checks
high
147471EulerOS Virtualization for ARM 64 3.0.2.0 : sudo (EulerOS-SA-2021-1390)NessusHuawei Local Security Checks
high
147406NewStart CGSL MAIN 4.06 : sudo Multiple Vulnerabilities (NS-SA-2021-0001)NessusNewStart CGSL Local Security Checks
high
147368NewStart CGSL CORE 5.04 / MAIN 5.04 : sudo Vulnerability (NS-SA-2021-0032)NessusNewStart CGSL Local Security Checks
high
147267NewStart CGSL MAIN 6.02 : sudo Vulnerability (NS-SA-2021-0089)NessusNewStart CGSL Local Security Checks
high
147107EulerOS Virtualization 3.0.6.6 : sudo (EulerOS-SA-2021-1520)NessusHuawei Local Security Checks
high
147025EulerOS Virtualization for ARM 64 3.0.6.0 : sudo (EulerOS-SA-2021-1575)NessusHuawei Local Security Checks
high
146799Linux Sudo Privilege Escalation (Out-of-bounds Write)NessusMisc.
high
146716EulerOS 2.0 SP2 : sudo (EulerOS-SA-2021-1366)NessusHuawei Local Security Checks
high
146683EulerOS 2.0 SP3 : sudo (EulerOS-SA-2021-1375)NessusHuawei Local Security Checks
high
146427macOS 10.14.x < 10.14.6 Security Update 2021-002 / 10.15.x < 10.15.7 Supplemental Update / macOS 11.x < 11.2.1 (HT212177)NessusMacOS X Local Security Checks
high
146251EulerOS 2.0 SP9 : sudo (EulerOS-SA-2021-1276)NessusHuawei Local Security Checks
high
146240EulerOS 2.0 SP9 : sudo (EulerOS-SA-2021-1257)NessusHuawei Local Security Checks
high
146094RHEL 8 : Red Hat Virtualization Host security bug fix and enhancement update [ovirt-4.4.4] (Important) (RHSA-2021:0401)NessusRed Hat Local Security Checks
high
146093RHEL 7 : RHV-H security, bug fix, enhancement update (redhat-virtualization-host) 4.3.13 (Important) (RHSA-2021:0395)NessusRed Hat Local Security Checks
high
145745EulerOS 2.0 SP8 : sudo (EulerOS-SA-2021-1173)NessusHuawei Local Security Checks
high
145699Photon OS 1.0: Sudo PHSA-2021-1.0-0358NessusPhotonOS Local Security Checks
high
145695Photon OS 2.0: Sudo PHSA-2021-2.0-0315NessusPhotonOS Local Security Checks
high
145693Photon OS 3.0: Sudo PHSA-2021-3.0-0188NessusPhotonOS Local Security Checks
high
145570CentOS 8 : sudo (CESA-2021:0218)NessusCentOS Local Security Checks
high
145565OracleVM 3.4 : sudo (OVMSA-2021-0003)NessusOracleVM Local Security Checks
high
145536RHEL 6 : sudo (RHSA-2021:0227)NessusRed Hat Local Security Checks
high
145530openSUSE Security Update : sudo (openSUSE-2021-169)NessusSuSE Local Security Checks
high
145525openSUSE Security Update : sudo (openSUSE-2021-170)NessusSuSE Local Security Checks
high
145520SUSE SLES12 Security Update : sudo (SUSE-SU-2021:0232-1)NessusSuSE Local Security Checks
high
145519CentOS 7 : sudo (CESA-2021:0221)NessusCentOS Local Security Checks
high
145505Oracle Linux 6 : sudo (ELSA-2021-9019)NessusOracle Linux Local Security Checks
high
145500RHEL 8 : sudo (RHSA-2021:0219)NessusRed Hat Local Security Checks
high
145499RHEL 7 : sudo (RHSA-2021:0225)NessusRed Hat Local Security Checks
high
145498RHEL 7 : sudo (RHSA-2021:0222)NessusRed Hat Local Security Checks
high
145497RHEL 7 : sudo (RHSA-2021:0221)NessusRed Hat Local Security Checks
high
145496RHEL 7 : sudo (RHSA-2021:0226)NessusRed Hat Local Security Checks
high
145495RHEL 7 : sudo (RHSA-2021:0224)NessusRed Hat Local Security Checks
high
145494RHEL 8 : sudo (RHSA-2021:0220)NessusRed Hat Local Security Checks
high
145493RHEL 8 : sudo (RHSA-2021:0218)NessusRed Hat Local Security Checks
high
145492RHEL 7 : sudo (RHSA-2021:0223)NessusRed Hat Local Security Checks
high
145488FreeBSD : sudo -- Multiple vulnerabilities (f3cf4b33-6013-11eb-9a0e-206a8a720317)NessusFreeBSD Local Security Checks
high
145486Fedora 33 : sudo (2021-2cb63d912a)NessusFedora Local Security Checks
high
145484SUSE SLES12 Security Update : sudo (SUSE-SU-2021:0226-1)NessusSuSE Local Security Checks
high
145482Fedora 32 : sudo (2021-8840cbdccd)NessusFedora Local Security Checks
high
145481SUSE SLED15 / SLES15 Security Update : sudo (SUSE-SU-2021:0227-1)NessusSuSE Local Security Checks
high
145479SUSE SLES12 Security Update : sudo (SUSE-SU-2021:0225-1)NessusSuSE Local Security Checks
high
145477GLSA-202101-33 : sudo: Multiple vulnerabilitiesNessusGentoo Local Security Checks
high
145475Debian DLA-2534-1 : sudo security updateNessusDebian Local Security Checks
high
145472Slackware 14.0 / 14.1 / 14.2 / current : sudo (SSA:2021-026-01)NessusSlackware Local Security Checks
high
145471Debian DSA-4839-1 : sudo - security updateNessusDebian Local Security Checks
high
145463Ubuntu 16.04 LTS / 18.04 LTS / 20.04 LTS / 20.10 : Sudo vulnerabilities (USN-4705-1)NessusUbuntu Local Security Checks
high
145462Oracle Linux 8 : sudo (ELSA-2021-0218)NessusOracle Linux Local Security Checks
high
145461Oracle Linux 7 : sudo (ELSA-2021-0221)NessusOracle Linux Local Security Checks
high
145460Scientific Linux Security Update : sudo on SL7.x i686/x86_64 (2021:0221)NessusScientific Linux Local Security Checks
high
145457Amazon Linux 2 : sudo (ALAS-2021-1590)NessusAmazon Linux Local Security Checks
high
145451Amazon Linux AMI : sudo (ALAS-2021-1478)NessusAmazon Linux Local Security Checks
high