CVE-2021-3156KEV · OVERDUE

Sudo Heap-Based Buffer Overflow Vulnerability

High · published January 26, 2021

Patch now

Confirmed exploited, and the score agrees

CVSS calls it high at 7.8. It is confirmed in active exploitation. It sits in the 100.0th percentile for exploit probability.

1641
days past CISA
deadline
CVSS v3.1
7.8
EPSS
100%
Percentile
100.0
In the wild
Confirmed
What it is

🚨 An off-by-one error in Sudo could let attackers escalate privileges and grab root access — and it’s as easy as typing a command with a backslash! ⚡ Think of it like a sneaky delivery driver who misreads the address by one number and accidentally delivers a package directly to the CEO’s office instead of the mailroom. That one tiny mistake opens the door for a whole heap of trouble! If exploited, an attacker could gain root access on the system, allowing them to do virtually anything — read sensitive files, install malicious software, or even delete critical data. This kind of privilege escalation poses a serious threat to system integrity and security, making immediate action essential!

Put simply

Think of it like a sneaky delivery driver who misreads the address by one number and accidentally delivers a package directly to the CEO’s office instead of the mailroom. That one tiny mistake opens the door for a whole heap of trouble! The vulnerability arises from an off-by-one error in Sudo, which can lead to a heap-based buffer overflow when executing 'sudoedit -s' with a command-line argument ending in a backslash. This flaw allows users to gain elevated privileges without authorization.

What to do

If exploited, an attacker could gain root access on the system, allowing them to do virtually anything — read sensitive files, install malicious software, or even delete critical data. This kind of privilege escalation poses a serious threat to system integrity and security, making immediate action essential! To protect your systems, upgrade Sudo to version 1.9.5p2 or later immediately. It's also crucial to audit your Sudo configurations for any potential misuse and enforce least privilege principles. Don't delay this — patching is key! You've got this, security hero! With these steps, you'll have your defenses fortified in no time! 🛡️

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.99962 · 100.0th percentile
Published
2021-01-26T00:00Z
KEV added
2022-04-06 · due 2022-04-27
EPSS history
Timeline
  • 06 APR 00:00Z
    Added to CISA KEV — remediate by Apr 27
    kev
  • 26 JAN 00:00Z
    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"…
    cvelistv5