Skip to main content
← All vulnerabilities
CVE-2021-3156

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

Published
Last modified
published
Listed in CISA KEV
None on Exploit-DB, Metasploit or GitHub

Summary

This vulnerability affects Sudo, a widely used command-line utility on Linux and Unix systems that lets authorized users run commands with elevated privileges. An attacker who can run the "sudoedit -s" command with a specially crafted argument can trigger a heap-based buffer overflow, potentially gaining full root control of the affected system.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original 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.

Timeline

  1. CVE published
  2. Added to CISA KEV

    CISA has evidence of exploitation in the wild

  3. CISA remediation deadline

    Due date for US federal agencies to patch

  4. Record last updated
  5. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • n/a n/a

    Version range not reported

References 25

lists.debian.org

seclists.org

openwall.com

security.gentoo.org

debian.org

lists.fedoraproject.org

tools.cisco.com

kb.cert.org

oracle.com

sudo.ws

packetstormsecurity.com

security.netapp.com

support.apple.com

kc.mcafee.com

beyondtrust.com