CVE-2021-3156

Published Jan 26, 2021

Last updated a month ago

Analyzed

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.

Risk scores

CVSS 3.1

Primary
7.8
5.9
1.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
HIGH

CVSS 2.0

Primary
7.2
10
3.9
AV:L/AC:L/Au:N/C:C/I:C/A:C

Known exploits

Data from CISA

Sudo Heap-Based Buffer Overflow Vulnerability

Apr 6, 2022

Apr 27, 2022

Apply updates per vendor instructions.

Weaknesses

CWE-193

Source

cve@mitre.org

Configurations

References