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.
Loading...
Loading...
Score elevated to 9.0 because this CVE is listed on the CISA Known Exploited Vulnerabilities catalog (added 2022-04-06), indicating real-world exploitation has been confirmed by US federal agencies. NVD baseline CVSS 7.8 retained for reference. Confidence: HIGH.
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.
January 26, 2021
November 10, 2025
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | sudo (1.8.9p5-1ubuntu1.5+esm6) @ trusty | 2026-05-26 | ubuntu |
| ubuntu | sudo-ldap (1.8.16-0ubuntu1.10) @ xenial | 2026-05-26 | ubuntu |
| redhat | redhat-virtualization-host-0:4.4.4-20210201.0.el8_3 | 2021-02-03 | redhat |
| redhat | redhat-virtualization-host-0:4.3.13-20210127.0.el7_9 | 2021-02-03 | redhat |
| redhat | sudo-0:1.8.23-3.el7_6.2 | 2021-01-27 | redhat |
| redhat | sudo-0:1.8.23-10.el7_9.1 | 2021-01-27 | redhat |
| redhat | sudo-0:1.8.19p2-12.el7_4.2 | 2021-01-26 | redhat |
| redhat | sudo-0:1.8.23-4.el7_7.3 | 2021-01-26 | redhat |
| redhat | sudo-0:1.8.29-6.el8_3.1 | 2021-01-26 | redhat |
| redhat | sudo-0:1.8.29-5.el8_2.1 | 2021-01-26 | redhat |
| redhat | sudo-0:1.8.6p3-29.el6_10.4 | 2021-01-26 | redhat |
| redhat | sudo-0:1.8.6p7-17.el7_2.3 | 2021-01-26 | redhat |
| redhat | sudo-0:1.8.6p7-23.el7_3.3 | 2021-01-26 | redhat |
| redhat | sudo-0:1.8.25p1-8.el8_1.2 | 2021-01-26 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
RHSA-2021:0218 — Important
RHSA-2021:0219 — Important
RHSA-2021:0220 — Important
RHSA-2021:0221 — Important
RHSA-2021:0222 — Important
RHSA-2021:0223 — Important
RHSA-2021:0224 — Important
RHSA-2021:0225 — Important
RHSA-2021:0226 — Important
RHSA-2021:0227 — Important
RHSA-2021:0395 — Important
RHSA-2021:0401 — Important
Sudo vulnerabilities
Sudo vulnerability
Every time one of our enrichment pipelines (NVD, MITRE cvelistV5, EPSS, CISA KEV, GHSA, OSV, vendor advisories) ran against this CVE. Most recent first.
See which npm, PyPI, Go, and Maven packages are affected by CVE-2021-3156
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.
redhat · ubuntu
CWE-787