# CVE-2021-3156: sudo: The sudo packages contain the sudo utility which allows system administrators to provide certain users with the permi...

CVE-2021-3156 is fixed in 2 products on 1 platform, first by RHSA-2021:0218, released January 26, 2021. It is being exploited: CISA added it to the Known Exploited Vulnerabilities catalog on April 6, 2022. Patch Radar priority: Patch now.

- Web page: https://patchblox.com/security/cve/CVE-2021-3156
- Priority: Patch now
- CVSS: 7.8 (Important)
- EPSS: 0.9996
- CISA KEV: listed Apr 6, 2022, federal due date Apr 27, 2022
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jan 26, 2021

## Description

The sudo packages contain the sudo utility which allows system administrators to provide certain users with the permission to execute privileged commands, which are used for system management purposes, without having to log in as root.  Security Fix(es):  * sudo: Heap buffer overflow in argument parsing (CVE-2021-3156)  For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | sudo RHEL 8 | 0:1.8.29-6.el8_3.1 | [RHSA-2021:0218](https://patchblox.com/security/data/fix/linux/rhsa-2021-0218.md) | Jan 26, 2021 |
| Linux | sudo Ubuntu 18.04.6 LTS (bionic) | 1.8.21p2-3ubuntu1.4 | [sudo 1.8.21p2-3ubuntu1.4](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-sudo-1.8.21p2-3ubuntu1.4.md) | Jan 26, 2021 |
| Linux | sudo Ubuntu 20.04 LTS (focal) | 1.8.31-1ubuntu1.2 | [sudo 1.8.31-1ubuntu1.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-sudo-1.8.31-1ubuntu1.2.md) | Jan 26, 2021 |
| Linux | sudo ol 8 | 0:1.8.29-6.el8_3.1 | [ELSA-2021-0218](https://patchblox.com/security/data/fix/linux/elsa-2021-0218.md) | Jan 27, 2021 |
| Linux | sudo-ldap Ubuntu 18.04.6 LTS (bionic) | 1.8.21p2-3ubuntu1.4 | [sudo-ldap 1.8.21p2-3ubuntu1.4](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-sudo-ldap-1.8.21p2-3ubuntu1.4.md) | Jan 26, 2021 |
| Linux | sudo-ldap Ubuntu 20.04 LTS (focal) | 1.8.31-1ubuntu1.2 | [sudo-ldap 1.8.31-1ubuntu1.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-sudo-ldap-1.8.31-1ubuntu1.2.md) | Jan 26, 2021 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
