What is 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 with a single backslash character.
The record classifies CVE-2021-3156 under weakness class CWE-193. Its CVSS v3 base vector states that the flaw requires local access to the host, needs low-privilege credentials, needs no user interaction, and has high impact on confidentiality, integrity, availability. The identifier was first published 2123 days ago.
Severity and exploitation probability
- CVSS v3.1 base score
- 7.8 — HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - EPSS (FIRST)
- 99.9% probability of exploitation in the next 30 days, higher than 99.9% of all scored CVEs
- CISA KEV
- Listed since 2022-04-06, federal remediation deadline 2022-04-27
- Threadlinqs priority
- 9/10 — CISA KEV-listed, which Threadlinqs floors at 9
- Published
- 2021-01-26
Is CVE-2021-3156 being exploited?
CISA added CVE-2021-3156 to the Known Exploited Vulnerabilities catalog on 2022-04-06, which means the agency holds evidence of exploitation in the wild; US federal civilian agencies had to remediate it by 2022-04-27 under BOD 22-01. Weaponised exploit code for CVE-2021-3156 is publicly available. 11 public proof-of-concept repositories are tracked for this identifier. It currently carries a trending score of 53 in the Threadlinqs vulnerability feed.
- blasty/CVE-2021-3156 (github)
- worawit/CVE-2021-3156 (github)
- stong/CVE-2021-3156 (github)
- LiveOverflow/pwnedit (github)
- Rvn0xsy/CVE-2021-3156-plus (github)
- CptGibbon/CVE-2021-3156 (github)
- reverse-ex/CVE-2021-3156 (github)
- 0x4ndy/clif (github)
Affected products and versions
No affected-product or package list has been recorded for CVE-2021-3156 in the tracked sources. The vendor advisory and the references below are the authoritative statement of what is affected.
How to fix CVE-2021-3156
Vendor advisory: https://security.gentoo.org/glsa/202101-33. Because CVE-2021-3156 is KEV-listed, US federal civilian agencies were required to apply the vendor fix, or stop using the product, by 2022-04-27. Apply the vendor fix referenced above to every affected product listed in this record, then confirm the running version against the vendor advisory.
Threat activity tracking CVE-2021-3156
2 tracked threats in the Threadlinqs corpus reference CVE-2021-3156, either in the campaign’s CVE list or as an indicator on the campaign record.
- CTO at NCSC Weekly Summary (week ending July 26, 2026): Cl0p PTC Windchill/FlexPLM exploitation (CVE-2026-12569), SonicWall SMA 1000 zero-days (CVE-2026-15409/CVE-2026-15410), and multi-actor state-linked activity — HIGH · 2026-11-10
- Chinese-speaking threat group UAT-10147 uses agentic AI to automate exploitation of internet-facing web servers — HIGH · 2026-08-21
Sources
Enriched from CVE.org, FIRST EPSS, CISA KEV, GitHub Security Advisories, public proof-of-concept repositories.
Vendor advisory and patch
- security.gentoo.org — vendor advisory
- debian.org — vendor advisory
- lists.fedoraproject.org — vendor advisory
- lists.fedoraproject.org — vendor advisory (CALA5FTXIQBRRYUA2ZQNJXB6OQMAXEII)
- tools.cisco.com — vendor advisory
Third-party advisory
Mailing list and disclosure
- lists.debian.org — mailing list
- seclists.org — mailing list
- openwall.com — mailing list
- openwall.com — mailing list (1)
- openwall.com — mailing list (2)
Other references
Showing 16 of 20 recorded references.