BLACKOUT MAP

Sudo · Sudo

CVE-2021-3156

Sudo Heap-Based Buffer Overflow Vulnerability

Exploited in attacks High 7.8 Attack chance: >99.9%
Share

What it is

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.

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

Added to the CISA list
April 6, 2022
Published
January 26, 2021
Severity
High 7.8 CVSS 3.1
Chance of attacks in the next 30 days (EPSS)
>99.9% in the top 0.1% of all known vulnerabilities
Weakness
CWE-122 CWE-193
More details
NVD · CVE.org · CISA
All references (20)

More exploited flaws from Sudo

AddedVulnerabilityProductSeverityAttack chance
Sep 29, 2025Inclusion of Functionality from Untrusted Control SphereCVE-2025-32463SudoCritical 9.355%

All of them →

Sources: Known Exploited Vulnerabilities (CISA, public domain), CVE records (cve.org) and EPSS (FIRST). The chance of attacks is the EPSS estimate that someone will try to exploit the flaw in the next 30 days.