CISA list

As of , CVE-2021-3156 in Sudo is on CISA's list of exploited vulnerabilities: CISA listed it on . Our patch-first group: Patch this week.

CVE-2021-3156

Sudo: Heap-Based Buffer Overflow. Exploited, and in our Patch this week group.

Our patch-first group

Patch this week

  • Metasploit module
  • EPSS 0.99

CISA's required action

Apply updates per vendor instructions.

Patch infofixed versions and vendor advice

What to install

  • Affects Sudo.

The record's list of affected products gives no versions.

EPSS score
0.99
Higher than 99% of the CVEs EPSS scores.

EPSS estimates the chance of exploitation activity in the next 30 days.

Exploited
Yes CISA listed it on 6 April 2022
US federal deadline
27 April 2022 21 days after CISA listed it. US federal civilian agencies must fix it by then.
Used in ransomware campaigns
Not known to CISA
EPSS when listed
0.59 on 6 April 2022 EPSS on the day CISA listed it.
Public exploit
1 Metasploit module and 2 Exploit-DB entries

Since listing

EPSS since listing

0.000.501.000.50: EPSS line for Patch this weekListed by CISAEPSS model v2023.03.01EPSS model v2025.03.14EPSS model v2026.06.1520232024202520260.000.501.00Listed by CISAEPSS model v2023.03.01EPSS model v2025.03.14EPSS model v2026.06.1520232025

EPSS for CVE-2021-3156 since CISA listed it, on the days its value to 2 decimals changed. EPSS scores by FIRST.

Show the numbers
FromEPSS
0.59
0.94
0.97
0.96
0.97
0.96
0.92
0.93
0.92
0.94
0.92
0.93
0.92
0.93
0.92
0.93
0.99

Timeline

What happened when

  1. The CVE record was published.
  2. Exploit-DB published an exploit (EDB-ID 49521).
  3. Exploit-DB published an exploit (EDB-ID 49522).
  4. CISA added it to its list of exploited vulnerabilities.
  5. The US federal deadline to fix it.

CISA's required action

What CISA says to do

Apply updates per vendor instructions.

Read further: CISA's catalog

The flaw

What the flaw is

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

CISA's 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.

The CVE record's description, from mitre

CVE published
26 January 2021
Assigned by
mitre
CVSS
7.8 High (CVSS 3.1, from CISA-ADP)
CWE-193
Off-by-one Error
CWE-122
Heap-based Buffer Overflow
CISA SSVC, exploitation
active
CISA SSVC, automatable
no
CISA SSVC, technical impact
total

Public exploits

Public exploits

Facts from Metasploit's module list and Exploit-DB's index; we never copy exploit code.

Metasploit
Sudo Heap-Based Buffer Overflow
exploit module, rank excellent
Exploit-DB
Sudo 1.9.5p1 - 'Baron Samedit ' Heap-Based Buffer Overflow Privilege Escalation (1)
EDB-ID 49521, 3 February 2021
Exploit-DB
Sudo 1.9.5p1 - 'Baron Samedit ' Heap-Based Buffer Overflow Privilege Escalation (2)
EDB-ID 49522, 3 February 2021

Same product

Sudo: other exploited entries

Other exploited Sudo entries
VulnerabilityProductOur groupListedDeadlineEPSS
CVE-2025-32463Inclusion of Functionality from Untrusted Control SphereSudoPatch this weekMetasploitDue0.56
Sources
  • CVE records: Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation (source). Licence: CVE Program Terms of Use
  • CWE names: Copyright © 2006-2026, The MITRE Corporation. CWE, CWSS, CWRAF, and the CWE logo are trademarks of The MITRE Corporation (source). Licence: CWE Terms of Use
  • EPSS scores by FIRST (https://www.first.org/epss/), generated by Empirical Security (source)