Findings

CVE-2021-3156

Sudo Heap-Based Buffer Overflow Vulnerability

Published Jan 26, 2021 · updated Jun 16, 2026 · sudo project sudo

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

Detection, updates, and resolution for this record.

  1. Jan 26, 2021 · Catalog

    Detected

    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.

  2. Apr 6, 2022 · CISA KEV

    Known exploited

    Apply updates per vendor instructions.

  3. Apr 27, 2022 · CISA KEV

    Remediation due

    Apply updates per vendor instructions.

  4. Jun 16, 2026 · Catalog

    Updated

    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.

Required action

Apply updates per vendor instructions.

CISA due date Apr 27, 2022

Affected

  • cpe debian/debian linux10.0
  • cpe debian/debian linux9.0
  • cpe fedoraproject/fedora32
  • cpe fedoraproject/fedora33
  • cpe mcafee/web gateway8.2.17
  • cpe netapp/active iq unified managerversion unspecified
  • cpe sudo project/sudoversion unspecified
  • cpe sudo project/sudo1.9.5
  • cpe synology/diskstation manager unified controller3.0
  • cpe synology/skynas firmwareversion unspecified
  • vendor Sudo Sudoversion unspecified

Sources

References