CVE-2021-3156: Vulnerability in sudo Project sudo

Actively exploited. 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.

Exploited in the wild, CWE-193

Exploitation
Confirmed 6 Apr 2022
Severity
7.8 of 10
Attack likelihood
100 % in 30 days
Fix
Fixed version known
Patch deadline
Agencies by 27 Apr 2022

Details

EU ID
EUVD-2021-26500
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-193
Published
26 Jan 2021
Last change
17 Jun 2026
Likelihood rank
Higher than 100 % of all rated vulnerabilities
Analysis status
Analyzed
Required action
Apply updates per vendor instructions.

Affected products

Affected versions and the first fixed release

  • sudo Project sudo From 1.8.2 before 1.8.32; From 1.9.0 before 1.9.5; Version 1.9.5. Fixed in 1.8.32
  • Fedoraproject Fedora Versions 32, 33. No fixed version recorded
  • Debian Linux Versions 9.0, 10.0. No fixed version recorded
  • Netapp Active Iq Unified Manager All versions. No fixed version recorded
  • Netapp Cloud Backup All versions. No fixed version recorded
  • Netapp Hci Management Node All versions. No fixed version recorded
  • Netapp Oncommand Unified Manager Core Package All versions. No fixed version recorded
  • Netapp Ontap Select Deploy Administration Utility All versions. No fixed version recorded

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Exploit code

Public exploits and proofs of concept, handle with care

Related