CVE-2021-3156: listed in the CISA KEV catalog

CVE-2021-3156 · CVSS 7.8 HIGH · EPSS 100.0% · KEV 2022-04-06 · patch available

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.

Is CVE-2021-3156 exploited?

Which products and versions are affected?

Is there a patch?

Yes. Update to one of these or later:

sudo 1.8.21.8.32
sudo 1.9.01.9.5
privilege management for mac21.1.1
privilege management for unix/linux10.3.2-10

From NVD's analysis

What PlainSec published about CVE-2021-3156

Primary sources

KEV and EPSS are re-checked daily. Record last updated 2026-12-03.