CVEvulnerability

CVE-2021-3156

7.8 HIGH Known exploited Published 2021-01-26 Modified 2026-06-17 Official page ↗

CISA Known Exploited Vulnerability

Sudo Heap-Based Buffer Overflow Vulnerability — Sudo Sudo

Sudo contains an off-by-one error that can result in a heap-based buffer overflow, which allows for privilege escalation.

Added to KEV
2022-04-06
Remediation due
2022-04-27
Ransomware use
Unknown
Required action
Apply updates per vendor instructions.
Notes
https://nvd.nist.gov/vuln/detail/CVE-2021-3156
Status
Analyzed
Published
2021-01-26
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0 ([email protected])
7.2 HIGH — AV:L/AC:L/Au:N/C:C/I:C/A:C
Weaknesses
CWE-193

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.

Affected configurations

• sudo project sudo (>= 1.8.2 < 1.8.32) • sudo project sudo (>= 1.9.0 < 1.9.5) • sudo project sudo 1.9.5 • fedoraproject fedora 32 • fedoraproject fedora 33 • debian debian linux 9.0 • debian debian linux 10.0 • netapp active iq unified manager • netapp cloud backup • netapp hci management node • netapp oncommand unified manager core package • netapp ontap select deploy administration utility • netapp ontap tools 9 • netapp solidfire • mcafee web gateway 8.2.17 • mcafee web gateway 9.2.8 • mcafee web gateway 10.0.4 • synology diskstation manager unified controller 3.0 • synology diskstation manager 6.2 • synology skynas firmware • synology vs960hd firmware • beyondtrust privilege management for mac (< 21.1.1) • beyondtrust privilege management for unix\/linux (< 10.3.2-10) • oracle micros compact workstation 3 firmware 310 • oracle micros es400 firmware (>= 400 <= 410) • oracle micros kitchen display system firmware 210 • oracle micros workstation 5a firmware 5a • oracle micros workstation 6 firmware (>= 610 <= 655) • oracle communications performance intelligence center (>= 10.3.0.0.0 <= 10.3.0.2.1) • oracle communications performance intelligence center (>= 10.4.0.1.0 <= 10.4.0.3.1) • oracle tekelec platform distribution (>= 7.4.0 <= 7.7.1)

Related

Weakness · CWE (1)

  • CWE-193 Off-by-one Error weakness

References