Skip to content

CVE-2021-3156

Sudo Heap-Based Buffer Overflow

7.8 HIGHActively exploited (CISA KEV)Public exploitEPSS 100.0%
  1. Published26 Jan 2021
  2. Added to CISA KEV6 Apr 2022
  3. Remediation due27 Apr 2022
7.8CVSS 3.1 scoreHIGH
Exploit probability (EPSS)100.0%
100th percentile of all scored CVEs
Actively exploited (CISA KEV)

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

Added to KEV: 6 Apr 2022Federal remediation due: 27 Apr 2022
01

In short

CVE-2021-3156 (Sudo Heap-Based Buffer Overflow) has a CVSS 3.1 base score of 7.8, rated high. CISA added it to the Known Exploited Vulnerabilities catalog on 6 Apr 2022. Fixed in Beyondtrust Privilege Management For Mac 21.1.1, Beyondtrust Privilege Management For Unix/linux 10.3.2-10, Sudo 1.8.32 or later.

02

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.

03

CVSS 3.1 breakdown

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
04

Affected products

  • Beyondtrust Privilege Management For Mac< 21.1.1
  • Beyondtrust Privilege Management For Unix/linux< 10.3.2-10
  • Mcafee Web Gateway10.0.4 · 8.2.17 · 9.2.8
  • Netapp Active Iq Unified Managerall versions
  • Netapp Cloud Backupall versions
  • Netapp Hci Management Nodeall versions
  • Netapp Oncommand Unified Manager Core Packageall versions
  • Netapp Ontap Select Deploy Administration Utilityall versions
  • Netapp Ontap Tools9
  • Netapp Solidfireall versions
  • Oracle Communications Performance Intelligence Center≥ 10.3.0.0.0 ≤ 10.3.0.2.1 · ≥ 10.4.0.1.0 ≤ 10.4.0.3.1
  • Oracle Tekelec Platform Distribution≥ 7.4.0 ≤ 7.7.1
  • Sudo≥ 1.8.2 < 1.8.32 · ≥ 1.9.0 < 1.9.5 · 1.9.5
  • Synology Diskstation Manager Unified Controller3.0
  • Debian Linux10.0 · 9.0
  • Fedoraproject Fedora32 · 33
  • Oracle Micros Compact Workstation 3 Firmware310
  • Oracle Micros Es400 Firmware≥ 400 ≤ 410
  • Oracle Micros Kitchen Display System Firmware210
  • Oracle Micros Workstation 5a Firmware5a
  • Oracle Micros Workstation 6 Firmware≥ 610 ≤ 655
  • Synology Diskstation Manager6.2
  • Synology Skynas Firmwareall versions
  • Synology Vs960hd Firmwareall versions
05

Remediation

Fixed in
  • Beyondtrust Privilege Management For Mac≥ 21.1.1
  • Beyondtrust Privilege Management For Unix/linux≥ 10.3.2-10
  • Sudo≥ 1.8.32
Patch & vendor advisories

Get Patch this first every Monday

Five vulnerabilities that matter this week, ranked on real exploitation. Plain language, one email, no spam.

You can unsubscribe with one click from every issue. We handle your details as described in our privacy policy.

Data from the NVD, CISA KEV catalog and FIRST EPSS. The CVSS 4.0 base score is shown where the NVD has one, otherwise CVSS 3.1.

06:00 · IN YOUR FLEET

How Secuno handles this

Secuno matches CVE-2021-3156 against the software on every managed device each hour and ranks it by exploit status, EPSS and exposure. Because it is on the CISA KEV list, its fix goes straight to the Emergency patch lane.