Heap-based buffer overflow in Sudo - CVE-2021-3156

 

Heap-based buffer overflow in Sudo - CVE-2021-3156

Published: January 26, 2021 / Updated: May 18, 2025


Vulnerability identifier: #VU50040
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A/U:Clear
CVE-ID: CVE-2021-3156
CWE-ID: CWE-122
Exploitation vector: Local access
Exploit availability: The vulnerability is being exploited in the wild
Vendor: Sudo
Affected software:
Sudo

Detailed vulnerability description

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.



How to mitigate CVE-2021-3156

Install update from vendor's website.

Sources