Skip to content
skopnix

CVE-2021-3156 · Published 26 Jan 2021

Sudo Sudo

On CISA's KEV list 435 days after disclosure; 82 public exploits.

Sudo contains an off-by-one error that can result in a heap-based buffer overflow, which allows for privilege escalation.

CISA required action (federal due date 27 Apr 2022): Apply updates per vendor instructions.

Signals

KEV, exploited in the wild
yes, added 6 Apr 2022, due 27 Apr 2022
EPSS, 30-day forecast
100%, 100th percentile (as of 18 Nov 2026)
CVSS, NVD
not stated
Internet exposure
not stated

KEV is an observation, EPSS a forecast; KEV outranks it. No score published by NVD.

Timeline 26 Jan 2021 to today

426 days from the Metasploit module to the KEV listing
2023202420252026Disclosed 26 Jan 2021First PoC 3 Feb 2021Metasploit 4 Feb 2021KEV 6 Apr 2022today
  1. Disclosed
  2. First PoC+8 d
  3. Metasploit+1 d
  4. KEV+426 d

426 days from the Metasploit module to the KEV listing

Linked 1 in our graph

Rules that detect it

  1. public ruleSudo Heap-Based Buffer Overflow Attempt

Links our graph holds for this CVE, strongest first. The same data is in the graph API.

Indicators none tied yet

No threat feed has tied an indicator to this CVE yet. Checked every six hours.

On the wire 0 dispatches

No dispatch on our wire has named this CVE yet.

Public exploit code 82 known · links only

GitHub PoCs 79Metasploit 1Exploit-DB 2

GitHub PoCs, by trust then stars79

  1. first seen by skopnix 18 Oct 2026

  2. first seen by skopnix 18 Oct 2026

  3. first seen by skopnix 18 Oct 2026

  4. first seen by skopnix 18 Oct 2026

  5. first seen by skopnix 18 Oct 2026

  6. first seen by skopnix 18 Oct 2026

  7. first seen by skopnix 18 Oct 2026

  8. first seen by skopnix 18 Oct 2026

Show 71 more
  1. first seen by skopnix 18 Oct 2026

  2. first seen by skopnix 18 Oct 2026

  3. first seen by skopnix 18 Oct 2026

  4. first seen by skopnix 18 Oct 2026

  5. first seen by skopnix 18 Oct 2026

  6. first seen by skopnix 18 Oct 2026

  7. first seen by skopnix 18 Oct 2026

  8. first seen by skopnix 18 Oct 2026

  9. first seen by skopnix 18 Oct 2026

  10. first seen by skopnix 18 Oct 2026

  11. first seen by skopnix 18 Oct 2026

  12. first seen by skopnix 18 Oct 2026

  13. first seen by skopnix 18 Oct 2026

  14. first seen by skopnix 18 Oct 2026

  15. first seen by skopnix 18 Oct 2026

  16. first seen by skopnix 18 Oct 2026

  17. first seen by skopnix 18 Oct 2026

  18. first seen by skopnix 18 Oct 2026

  19. first seen by skopnix 18 Oct 2026

  20. first seen by skopnix 18 Oct 2026

  21. first seen by skopnix 18 Oct 2026

  22. first seen by skopnix 18 Oct 2026

  23. first seen by skopnix 18 Oct 2026

  24. first seen by skopnix 18 Oct 2026

  25. first seen by skopnix 18 Oct 2026

  26. first seen by skopnix 18 Oct 2026

  27. first seen by skopnix 18 Oct 2026

  28. first seen by skopnix 18 Oct 2026

  29. first seen by skopnix 18 Oct 2026

  30. first seen by skopnix 18 Oct 2026

  31. first seen by skopnix 18 Oct 2026

  32. first seen by skopnix 18 Oct 2026

  33. first seen by skopnix 18 Oct 2026

  34. first seen by skopnix 18 Oct 2026

  35. first seen by skopnix 18 Oct 2026

  36. first seen by skopnix 18 Oct 2026

  37. first seen by skopnix 18 Oct 2026

  38. first seen by skopnix 18 Oct 2026

  39. first seen by skopnix 18 Oct 2026

  40. first seen by skopnix 18 Oct 2026

  41. first seen by skopnix 18 Oct 2026

  42. first seen by skopnix 18 Oct 2026

  43. first seen by skopnix 18 Oct 2026

  44. first seen by skopnix 18 Oct 2026

  45. first seen by skopnix 18 Oct 2026

  46. first seen by skopnix 18 Oct 2026

  47. first seen by skopnix 18 Oct 2026

  48. first seen by skopnix 18 Oct 2026

  49. first seen by skopnix 18 Oct 2026

  50. first seen by skopnix 18 Oct 2026

  51. first seen by skopnix 18 Oct 2026

  52. first seen by skopnix 18 Oct 2026

  53. first seen by skopnix 18 Oct 2026

  54. first seen by skopnix 18 Oct 2026

  55. first seen by skopnix 18 Oct 2026

  56. first seen by skopnix 18 Oct 2026

  57. first seen by skopnix 18 Oct 2026

  58. first seen by skopnix 18 Oct 2026

  59. first seen by skopnix 18 Oct 2026

  60. first seen by skopnix 18 Oct 2026

  61. first seen by skopnix 18 Oct 2026

  62. first seen by skopnix 18 Oct 2026

  63. first seen by skopnix 18 Oct 2026

  64. first seen by skopnix 18 Oct 2026

  65. first seen by skopnix 18 Oct 2026

  66. first seen by skopnix 18 Oct 2026

  67. first seen by skopnix 18 Oct 2026

  68. first seen by skopnix 18 Oct 2026

  69. first seen by skopnix 18 Oct 2026

  70. first seen by skopnix 18 Oct 2026

  71. first seen by skopnix 18 Oct 2026

Fake proof-of-concept repositories have been used to deliver malware to the researchers who run them. The trust verdict is our engine's heuristic over the repository (account age, what it ships, how its stars arrived); it is a reason to read the code first, not a finding about its author.

Metasploit1

  1. A heap based buffer overflow exists in the sudo command line utility that can be exploited by a local attacker to gain elevated privileges. The vulnerability was introduced in July of 2011 and affects version 1.8.2 through 1.8.31p2 as well as 1.9.0 through 1.9.5p1 in their default configurations. The technique used by this implementation leverages the overflow to overwrite a service_user struct in memory to reference an attacker controlled library which re

    ruby · first seen by skopnix 18 Oct 2026

Exploit-DB2

  1. created 3 Feb 2021

  2. created 3 Feb 2021

References

Watch this one?

KEV additions reach Telegram and the KEV-only RSS as they land.

Telegram ↗KEV RSSAPIStack check