Patchfirst
CVE-2021-3156 KEVPublic exploit High · 7.8 EPSS >99.9%

Sudo Heap-Based Buffer Overflow Vulnerability

Sudo · Sudo

Summary

The Sudo utility (product Sudo, vendor Sudo) contains an off-by-one error in versions before 1.9.5p2 that can cause a heap-based buffer overflow in its handling of the sudoedit -s command-line option. An attacker with a local, low-privileged account can exploit it by supplying an argument ending in a single backslash character to escalate privileges to root, without requiring any user interaction.

Official description · NVD

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.

Breakdown
72.3 / 100
Exploited
Yes, in CISA KEV
Reports
1
Tactics
1/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

First seen exploited 14 months after disclosure. Public exploit code (PoC-in-GitHub) was available the same day.

  1. DisclosedPublic exploit codePoC-in-GitHubday 0
  2. First seen exploitedVulnCheck KEV evidenceAdded to CISA KEVEU database agrees+14 mo

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

techniques

1 , grouped by in kill-chain order, 1 cited passage 1

Privilege EscalationTA0004

Exploitation for Privilege Escalation T1068 Medium
AI mapping from the description · how it is exploited

Local heap overflow exploited for privilege escalation

allows privilege escalation to root via "sudoedit -s
From the official description (NVD) Original (opens in a new tab) ↗

Detection

0 rules for this CVE · 31 general rules for its techniques

Rules for this CVE

0 that reference CVE-2021-3156 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

General rules for this CVE’s techniques

These detect the technique in general, not this specific vulnerability.

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

What security researchers reported

Named in 1 threat report
1 reportCISA

Reports are matched by finding the exact id CVE-2021-3156 in their text; nobody has reviewed the match. One passage is shown per report, at most 320 characters, linked to the original.

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

34 links, grouped by NVD tag (34 duplicates merged)
↑ ↓ chooseEnter openEsc close