CVE & CISA-KEV Catalog

CVE-2021-3156

HIGHCISA KEVEPSS 100th pctl
7.8
CVSS v3
NVD

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.

How to fix

Remediation Available
sudoDebian
Fixed in:1.9.5p1-1.1CVE-2021-3156
Fixed in:1.9.5p1-1.1CVE-2021-3156
Fixed in:1.9.5p1-1.1CVE-2021-3156
Fixed in:1.9.5p1-1.1CVE-2021-3156
sudoUbuntu
Fixed in:1.8.9p5-1ubuntu1.5+esm6USN-4705-2
Fixed in:1.8.16-0ubuntu1.10USN-4705-1
Fixed in:1.8.21p2-3ubuntu1.4USN-4705-1
Fixed in:1.8.31-1ubuntu1.2USN-4705-1
sudo-ldapUbuntu
Fixed in:1.8.16-0ubuntu1.10USN-4705-1
Fixed in:1.8.21p2-3ubuntu1.4USN-4705-1
Fixed in:1.8.31-1ubuntu1.2USN-4705-1

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

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

Exploit Intelligence

99.30%probability of exploitation in 30 days
100thpercentile

Very high risk: more likely to be exploited than 100% of all known CVEs.

Known Exploited Vulnerability (CISA KEV)

Sudo Heap-Based Buffer Overflow Vulnerability

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

Apply updates per vendor instructions.

Remediation due: 2022-04-27

References

Related Vulnerabilities

Other CWE-193 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2003-0466Critical9.878%--
CVE-2023-44444High7.856%-Fix
CVE-2021-23017High7.753%-Fix
CVE-2023-28709High7.552%-Fix
CVE-2018-8828Critical9.831%-Fix
CVE-2001-0609Critical9.818%--
Embed a live status badge for CVE-2021-3156
CVE-2021-3156 severity badge

Markdown

[![CVE-2021-3156](https://tridentstack.com/cve/badge/CVE-2021-3156.svg)](https://tridentstack.com/cve/CVE-2021-3156)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-3156"><img src="https://tridentstack.com/cve/badge/CVE-2021-3156.svg" alt="CVE-2021-3156"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-11-10.