Sudo heap-based buffer overflow via sudoedit
CVE-2021-3156Known exploitedHigh
Sudo contains an off-by-one error in how it processes command-line arguments, which can cause a heap-based buffer overflow. An attacker who can run sudoedit with the -s flag and provide an argument ending in a single backslash character can trigger this overflow to escalate privileges to root. The attacker needs local access to run the sudoedit command.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
- Added to KEV
- 6 Apr 2022
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Detail
Sudo. CISA required action: Apply updates per vendor instructions.
Weakness: CWE-193 (opens in a new tab)
Affected versions
- sudo project sudo: from 1.8.2, before 1.8.32
- sudo project sudo: from 1.9.0, before 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: All versions listed
- netapp cloud backup: All versions listed
- netapp hci management node: All versions listed
- netapp oncommand unified manager core package: All versions listed
- netapp ontap select deploy administration utility: All versions listed
- netapp ontap tools: 9
- netapp solidfire: All versions listed
- 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: All versions listed
- synology vs960hd firmware: All versions listed
- beyondtrust privilege management for mac: before 21.1.1
- beyondtrust privilege management for unix\/linux: before 10.3.2-10
- oracle micros compact workstation 3 firmware: 310
- oracle micros es400 firmware: from 400, up to 410
The NVD record lists more.