CVE-2021-3156

HighCVSS 7.8/10Known exploited (CISA KEV)Last modified Jun 17, 2026

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.

Metrics

CVSS 3.1 7.8/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Jan 26, 2021
Last modified
Jun 17, 2026
Added to CISA KEV
Apr 6, 2022
NVD status
Analyzed

Related CVEs from 2021

CVE-2021-315629.1The SSL/TLS configuration of Fresenius Kabi Agilia Link + version 3.0 has serious deficiencies that may allow an attacker to compromise SSL/CVE-2021-315667.8An improper link resolution flaw can occur while extracting an archive leading to changing modes, times, access control lists, and flags of CVE-2021-315676.8Authenticated (admin+) Arbitrary File Download vulnerability discovered in Download Monitor WordPress plugin (versions <= 4.4.6). The pluginCVE-2021-315719.8The kernel in Amazon Web Services FreeRTOS before 10.4.3 has an integer overflow in queue.c for queue creation.CVE-2021-315729.8The kernel in Amazon Web Services FreeRTOS before 10.4.3 has an integer overflow in stream_buffer.c for a stream buffer.CVE-2021-315739.8In Config Manager, there is a possible command injection due to improper input validation. This could lead to remote escalation of privilegeCVE-2021-315749.8In Config Manager, there is a possible command injection due to improper input validation. This could lead to remote escalation of privilegeCVE-2021-315759.8In Config Manager, there is a possible command injection due to improper input validation. This could lead to remote escalation of privilegeCVE-2021-315767.5In Boa, there is a possible information disclosure due to a missing permission check. This could lead to remote information disclosure to a CVE-2021-315779.8In Boa, there is a possible escalation of privilege due to a missing permission check. This could lead to remote escalation of privilege froCVE-2021-315789.8In Boa, there is a possible escalation of privilege due to a stack buffer overflow. This could lead to remote escalation of privilege from aCVE-2021-315799.8Akkadian Provisioning Manager Engine (PME) ships with a hard-coded credential, akkadianuser:haakkadianpassword. This issue was resolved in A
CVE-2021-3156: High severity, CVSS 7.8 | Vulnix