CVE-2021-3156
Sudo Heap-Based Buffer Overflow Vulnerability
What the flaw is
Sudo contains an off-by-one error that can result in a heap-based buffer overflow, which allows for privilege escalation.
Description as published by CISA. We have not independently reproduced it.
What CISA requires
Apply updates per vendor instructions.
This deadline is binding on US federal civilian agencies under BOD 22-01. It is not a legal deadline for anyone else, but it is a useful urgency signal — CISA sets it by how actively the flaw is being used, not by CVSS.
Public exploit code
400 public repositories referencing this CVE have been catalogued on GitHub. That volume usually means a reliable, widely-reproduced exploit. Treat this as a strong signal to prioritise patching, not as a verified working exploit — many such repositories are scanners, write-ups or forks rather than functional code.
- 0day404/vulnerability-poc
- 0kraven/MalDevJournal
- 0x06K/MalDevJournal
- 0x4ndy/clif
- 0x7183/CVE-2021-3156
- 0x7n6/OSCP
- 0xMarcio/cve
- 0xStrygwyr/OSCP-Guide
Showing 8 of 400. Full list in the trickest/cve dataset.
Vendor advisories
Primary sources
Was this page helpful?
If something here is wrong or out of date, tell us and we will check the source.
Thanks — that is recorded.
Other Sudo entries
See allSource: CISA KEV catalog · last verified July 31, 2026. Rebuilt automatically twice a day.