CVE-2021-3156

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.

Severity
HIGH
CVSS v3
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
99.962%
chance of exploitation in the next 30 days
among the highest of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2022-04-06
Public exploit code
Yes
Exploit references (NVD and CNA): 12
Metasploit modules: 1
Nuclei templates: 0
Exploit-DB: 2

Weakness

CISA Known Exploited Vulnerabilities entry

Vulnerability nameSudo Heap-Based Buffer Overflow Vulnerability
Vendor / productSudo / Sudo
Date added2022-04-06
Federal remediation due date2022-04-27
Required actionApply updates per vendor instructions.
Known ransomware campaign useUnknown

CISA SSVC decision points

Exploitationactive
Automatableno
Technical impacttotal
Scored2025-02-03

Timeline

  1. 2021-01-26Published by the CNA00:00 UTC
  2. 2021-02-03First Exploit-DB entry (EDB-ID 49521)8 days after publication
  3. 2022-04-06Added to the CISA KEV catalog435 days after publication
  4. 2025-02-03CISA SSVC decision recorded1469 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

Exploit-DBTypePlatformPublishedEDB-verified
EDB-ID 49522localmultiple2021-02-03no
EDB-ID 49521localmultiple2021-02-03no

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
sudo_project sudofrom 1.8.2 before 1.8.32fixed in 1.8.32from 1.9.0 before 1.9.5fixed in 1.9.51.9.5no fix listed1.8.321.9.5not listed
beyondtrust privilege_management_for_macbefore 21.1.1fixed in 21.1.121.1.1
beyondtrust privilege_management_for_unix/linuxbefore 10.3.2-10fixed in 10.3.2-1010.3.2-10
debian debian_linux10.0no fix listed9.0no fix listednot listednot listed
fedoraproject fedora32no fix listed33no fix listednot listednot listed
mcafee web_gateway10.0.4no fix listed8.2.17no fix listed9.2.8no fix listednot listednot listednot listed
netapp active_iq_unified_manager
netapp cloud_backup
netapp hci_management_node
netapp oncommand_unified_manager_core_package
netapp ontap_select_deploy_administration_utility
netapp ontap_tools9no fix listednot listed
netapp solidfire
oracle communications_performance_intelligence_centerfrom 10.3.0.0.0 through 10.3.0.2.1no fix listedfrom 10.4.0.1.0 through 10.4.0.3.1no fix listednot listednot listed
oracle micros_compact_workstation_3_firmware310no fix listednot listed
oracle micros_es400_firmwarefrom 400 through 410no fix listednot listed
oracle micros_kitchen_display_system_firmware210no fix listednot listed
oracle micros_workstation_5a_firmware5ano fix listednot listed
oracle micros_workstation_6_firmwarefrom 610 through 655no fix listednot listed
oracle tekelec_platform_distributionfrom 7.4.0 through 7.7.1no fix listednot listed

24 vulnerable vendor/product pairs in total; the first 20 are shown. The cve_products API lists them page by page, with versions.

Products and versions as NVD and the vendor that published the CVE list them.

References

35 references in total; the first 20 are shown.

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources