Privilege escalation in Sudo

Published: 2021-01-26 | Updated: 2022-07-14
Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2021-3156
Exploitation vector Local
Public exploit Vulnerability #1 is being exploited in the wild.
Vulnerable software
Client/Desktop applications / Software for system administration

Vendor Sudo

Security Bulletin

This security bulletin contains information about 1 vulnerabilities.

Updated: 27.01.2021

Changed bulletin status to patched, added information about the patched version.

1) Heap-based buffer overflow

EUVDB-ID: #VU50040

Risk: Low


CVE-ID: CVE-2021-3156

CWE-ID: CWE-122 - Heap-based Buffer Overflow

Exploit availability: Yes


The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a boundary error in sudo. A local user can pass specially crafted data to the application, trigger heap-based buffer overflow and execute arbitrary code on the target system with root privileges.


Install update from vendor's website.

Vulnerable software versions

Sudo: 1.8.0 - 1.9.5p1

CPE2.3 External links

Q & A

Can this vulnerability be exploited remotely?

Is there known malware, which exploits this vulnerability?