CVE-2021-3156 in Beyondtrust Privilege Management For Mac and 30 more products
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.
Affects 31 products from 9 vendors. Description from NVD and MITRE.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Beyondtrust | Privilege Management For Mac | < 21.1.1 |
| Beyondtrust | Privilege Management For Unix/Linux | < 10.3.2-10 |
| Debian | Debian Linux | 9.0 10.0 |
| Fedoraproject | Fedora | 32 33 |
| Johnsoncontrols | — | — |
| Mcafee | Web Gateway | 8.2.17 9.2.8 10.0.4 |
| Netapp | Cloud Backup | No version listed by the source |
| Netapp | Ontap Select Deploy Administration Utility | No version listed by the source |
| Netapp | Active Iq Unified Manager | No version listed by the source |
| Netapp | Oncommand Unified Manager Core Package | No version listed by the source |
| Netapp | Ontap Tools | 9 |
| Netapp | Hci Management Node | No version listed by the source |
| Netapp | Solidfire | No version listed by the source |
| Oracle | Tekelec Platform Distribution | ≥ 7.4.0, ≤ 7.7.1 |
| Oracle | Micros Compact Workstation 3 (device and firmware) | 310 |
| Oracle | Micros Es400 (device and firmware) | ≥ 400, ≤ 410 |
| Oracle | Micros Kitchen Display System (device and firmware) | 210 |
| Oracle | Micros Workstation 5A (device and firmware) | 5a |
| Oracle | Micros Workstation 6 (device and 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 |
| Sudo Project | Sudo | 1.9.5 ≥ 1.8.2, < 1.8.32 ≥ 1.9.0, < 1.9.5 |
| Synology | Vs960Hd (device and firmware) | No version listed by the source |
| Synology | Diskstation Manager | 6.2 |
| Synology | Skynas (device and firmware) | No version listed by the source |
| Synology | Diskstation Manager Unified Controller | 3.0 |
| Hitachienergy | Txpert Hub Coretec 4 Firmware | 2.0.0 2.0.1 2.1.0 2.1.1 2.1.2 2.1.3+2 more2.2.0 2.2.1 |
| Johnsoncontrols | Videoedge | < 5.7.0 |
Fix and vendor advisory
- Johnson Controls recommends users update to Tyco AI v1.3, which includes the updates for the SUSE Linux operating system. Users are encouraged to contact Tyco technical support for assistance.
Source: ICSA-21-133-02
- Johnson Controls recommends users upgrade to the latest VideoEdge release (currently 5.7.0). If this is not possible, a sudo patch is available from the American Dynamics website for VideoEdge 5.4.2 and 5.6.0. VideoEdge 5.4.1 and older cannot be patched and should be upgraded.
Source: ICSA-21-147-02
- Flex Gen 2: All versions prior to 1.9.4, Insight: All versions prior to 1.4.0, Pro 2: All versions and 1 more: Pro Gen 3: upgrade to Version 2.8.0
Source: ICSA-21-245-01
- TXpert Hub CoreTec 4: version 2.3.0
- Additionally, Hitachi Energy recommends following product Security Deployment Guidelines. Recommended practices for the affected product can be found in the TXpert Hub CoreTec 4 Software Manual.
Source: ICSA-22-256-01
Exploitation
| CISA known-exploited | Yes added 2022-04-06 |
|---|---|
| Public exploit | Reported · reference |
Record details
| CVE ID | CVE-2021-3156 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-246083-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2021-01-26 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement strict sudoers policies to restrict the use of 'sudoedit -s' and monitor for suspicious activity involving sudo commands.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.