Skip to content
RedCVE

CVE-2021-3156Sudo Heap-Based Buffer Overflow Vulnerability

CVSS score

7.8

High

CVSS 3.1 from NVD

Exploit probability (EPSS)

100.0%

100.0% chance of exploitation in the next 30 days, higher than 100.0% of all CVEs.

CISA KEV

Actively exploited

Added to KEV on 6 Apr 2022.

US federal deadline to fix: 27 Apr 2022.

Official 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.

Source: NVD · CNA: cve@mitre.org

How to fix it, step by step

  1. Treat it as urgent

    Attackers are already exploiting this flaw: CISA added it to its Known Exploited Vulnerabilities list on 6 Apr 2022.

    US federal agencies must fix it by 27 Apr 2022. It's a sensible deadline for everyone else too.

    CISA's full instruction
    Apply updates per vendor instructions.
  2. Check whether you're affected

    Find every system running Sudo, fedoraproject Fedora, Debian Linux, netapp Active Iq Unified Manager, netapp Cloud Backup and compare its version with the affected versions.

  3. Update to a fixed version

    • Update Sudo to 1.8.32, 1.9.5 or later, on the branch you run.
    • Update Privilege Management For Mac to 21.1.1 or later.
    • Update Privilege Management For Unix/linux to 10.3.2-10 or later.
  4. Check for signs of compromise

    Updating closes the flaw but doesn't remove an attacker who got in earlier. Review affected systems for unknown accounts, unusual logins and configuration changes, and use any indicators of compromise the vendor or CISA publish.

  5. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

Affected productsVersions
Sudo Sudo≥ 1.8.2, < 1.8.32 · ≥ 1.9.0, < 1.9.5 · 1.9.5
fedoraproject Fedora32 · 33
Debian Debian Linux9.0 · 10.0
netapp Active Iq Unified ManagerNot specified
netapp Cloud BackupNot specified
netapp Hci Management NodeNot specified
netapp Oncommand Unified Manager Core PackageNot specified
netapp Ontap Select Deploy Administration UtilityNot specified
netapp Ontap Tools9
netapp SolidfireNot specified
McAfee Web Gateway8.2.17 · 9.2.8 · 10.0.4
Synology Diskstation Manager Unified Controller3.0
Synology Diskstation Manager6.2
Synology Skynas FirmwareNot specified
Synology Vs960hd FirmwareNot specified
BeyondTrust Privilege Management For Mac< 21.1.1
BeyondTrust Privilege Management For Unix/linux< 10.3.2-10
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
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

Weakness

Timeline

  1. Published:
  2. Added to CISA KEV:
  3. Last modified:

Frequently asked questions

Is CVE-2021-3156 being exploited?

Yes. CISA added CVE-2021-3156 to its Known Exploited Vulnerabilities catalog on 6 Apr 2022, which means there is evidence of exploitation in the wild. Its EPSS score estimates a 100.0% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2021-3156?

CVE-2021-3156 has a CVSS 3.1 base score of 7.8 (high).

Which versions are affected?

Sudo Sudo (≥ 1.8.2, < 1.8.32; ≥ 1.9.0, < 1.9.5; 1.9.5), Fedoraproject Fedora (32; 33), Debian Debian Linux (9.0; 10.0), Netapp Active Iq Unified Manager, Netapp Cloud Backup, Netapp Hci Management Node

Is there a patch for CVE-2021-3156?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.