All vulnerabilities
CVE-2021-3156

Sudo Heap-Based Buffer Overflow Vulnerability

Sudo SudoIdentity & access
CVSS
7.8High
ExploitationExploited in the wildAdded to KEV 6 Apr 2022CISA KEV
Exploit odds (EPSS)>99.9%Chance of exploitation activity in the next 30 days, higher than 99.9% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed inNone listedNo source names a fixed version. Check the vendor advisory below
Federal deadline27 Apr 2022Remediation due date for US federal agenciesCISA KEV
CISA required actionApply updates per vendor instructions. CISA KEV

What fixes it

No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.

Timeline

  1. 26 Jan 2021, 00:00 UTCPublishedCVE List
  2. 26 Jan 2021Exploit code publicMetasploit
  3. 6 Apr 2022Added to CISA KEVCISA KEV

Public exploit code and templates 3

  • Exploit moduleSudo Heap-Based Buffer Overflow 26 Jan 2021Metasploit
  • Local exploitSudo 1.9.5p1 - 'Baron Samedit ' Heap-Based Buffer Overflow Privilege Escalation (1) 3 Feb 2021Exploit-DB
  • Local exploitSudo 1.9.5p1 - 'Baron Samedit ' Heap-Based Buffer Overflow Privilege Escalation (2) 3 Feb 2021Exploit-DB

Listed so defenders can prioritize. Threatline links to the source and does not host exploit code.

Description

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

Text from CVE List

Affected versions 1

  • n/aaffected: n/aCVE List

References 21