Live threats

All CVEs / Sudo

CVE-2021-3156Sudo

Heap-based buffer overflow in Sudo due to off-by-one error

High 7.8 KEV High EPSS

Priority
57
CVSS 3.1
7.8
EPSS
100.0%
probability of exploitation in 30 days · percentile 100
Auth required
Yes
In KEV since
Apr 6, 2022
CISA deadline
Apr 27, 2022
Ransomware use
Unknown
Published
Jan 26, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-193
SSVC (CISA)
Exploitation: active · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

Sudo before 1.9.5p2 contains an off-by-one error allowing heap-based buffer overflow. An authenticated attacker can escalate privileges to root by running "sudoedit -s" with a command-line argument ending in a backslash. CISA confirmed this vulnerability as actively exploited.

Show the original NVD text

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.

Source text, unmodified. NVD.

Exploitation confirmed by CISA

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

Action required by CISA: Apply updates per vendor instructions.

Source text, unmodified. CISA KEV.

What to do

Patch available · fixed versions: 1.8.32, 1.9.5p2

Update Sudo to version 1.8.32, 1.9.5p2 or later depending on your version branch.

Vendor advisory · www.sudo.ws ↗

  1. Apply the vendor's security update for Sudo.
  2. CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was April 27, 2022.
  3. Check logs for signs of earlier exploitation.

Affected products (CPE)

VendorProductVersions
sudo_projectsudo≥ 1.8.2 < 1.8.32
sudo_projectsudo≥ 1.9.0 < 1.9.5
sudo_projectsudo1.9.5
sudo_projectsudo1.9.5
fedoraprojectfedora32
fedoraprojectfedora33
debiandebian_linux9.0
debiandebian_linux10.0
netappactive_iq_unified_managerall
netappcloud_backupall
netapphci_management_nodeall
netapponcommand_unified_manager_core_packageall
netappontap_select_deploy_administration_utilityall
netappontap_tools9
netappsolidfireall
mcafeeweb_gateway8.2.17
mcafeeweb_gateway9.2.8
mcafeeweb_gateway10.0.4
synologydiskstation_manager_unified_controller3.0
synologydiskstation_manager6.2
synologyskynas_firmwareall
synologyvs960hd_firmwareall
beyondtrustprivilege_management_for_mac< 21.1.1
beyondtrustprivilege_management_for_unix/linux< 10.3.2-10
oraclemicros_compact_workstation_3_firmware310
oraclemicros_es400_firmware≥ 400 ≤ 410
oraclemicros_kitchen_display_system_firmware210
oraclemicros_workstation_5a_firmware5a
oraclemicros_workstation_6_firmware≥ 610 ≤ 655
oraclecommunications_performance_intelligence_center≥ 10.3.0.0.0 ≤ 10.3.0.2.1
oraclecommunications_performance_intelligence_center≥ 10.4.0.1.0 ≤ 10.4.0.3.1
oracletekelec_platform_distribution≥ 7.4.0 ≤ 7.7.1

Official sources

References

Links published by the sources. Open them with care.