CVE record · CVE-2021-3156

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 wit…

CVSS 7.8 HighCriticalIn CISA KEVEPSS 1.00 · 99th percentile

Critical, because:

  • In CISA’s KEV catalogue since 6 Apr 2022: it is known to be exploited.
  • CVSS score 7.8 (7.0 or more) and EPSS 1.00 (0.1 or more): a high score and a real chance of exploitation in the next 30 days.

How we decide what’s critical

Published by the CVE Program (CNA: mitre) at 26 Jan 2021, 00:00 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

Affected products, as the CNA wrote them
VendorProductVersions
Not given Not given
  • affected n/a
Identifiers
CVE-2021-3156
CNA
mitre
Weakness (CWE)
CWE-193
Published
26 Jan 2021
Updated
21 Oct 2025

Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.8 High 3.1 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ADP (CISA-ADP)
  • CISA KEV Listed since 6 Apr 2022: known to be exploited.
  • EPSS 1.00, the 99th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

This record came from the full history of the CVE Program, published 26 Jan 2021. New records show when each source confirmed them.

Sources

References from the CNA

And 4 more on the CVE record.

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.