Sudo · Sudo · CWE-122 · CWE-193 · published 2021-01-26

CVE-2021-3156Sudo Heap-Based Buffer Overflow Vulnerability

This week Known exploited in the wild.

CVE-2021-3156 is actively exploited in the wild: CISA added it to the Known Exploited Vulnerabilities catalog on 2022-04-06. EPSS estimates a 100% chance of exploitation in the next 30 days, higher than 99% of all CVEs. This Sudo vulnerability: CVSS 7.8 (v3.1), a successful attack gives total control of the component. Patched packages are out for Debian, Ubuntu and Red Hat Enterprise Linux. US federal agencies must remediate by 2022-04-27. Patch this week.

Share this

Remediation#

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

Linux distribution packages

If you run the distro’s package rather than an upstream build, this is the version to look for.

DistroReleasePackageStatus
Debian13 trixiesudoFixed in 1.9.5p1-1.1
12 bookwormsudoFixed in 1.9.5p1-1.1
Ubuntu20.04 LTSsudoFixed in 1.8.31-1ubuntu1.2
18.04 LTSsudoFixed in 1.8.21p2-3ubuntu1.4
16.04 LTSsudoFixed in 1.8.16-0ubuntu1.10
Red Hat Enterprise LinuxRHEL 9sudoNot affected
RHEL 8sudoFixed in 1.8.29-6.el8_3.1 RHSA-2021:0218
RHEL 7sudoFixed in 1.8.23-10.el7_9.1 RHSA-2021:0221
RHEL 5sudoNot affected

From the Debian Security Tracker, Ubuntu security notices (CC BY-SA 4.0) and Red Hat Security Data (CC BY 4.0). Check the distro link before acting.

Patch events

  1. This weekExploited (KEV)CISA due 2022-04-27

    Library & CLI toolSudo

    Heap-Based Buffer OverflowCVE-2021-3156

    Why: Known exploited in the wild.

Exploit intelligence#

SignalValueSource
Known exploitedYes, added 2022-04-06CISA KEV
Ransomware useUnknownCISA KEV
EPSS (30-day exploitation probability)100% (100th pct)FIRST EPSS v2026.06.15
CVSS base score7.8 (v3.1)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CNA / CISA ADP
SSVC exploitationactiveCISA Vulnrichment
SSVC automatableNoCISA Vulnrichment
SSVC technical impacttotalCISA Vulnrichment

Weakness: CWE-122: Heap-based Buffer Overflow · CWE-193: Off-by-one Error

More from this vendor: all Sudo vulnerabilities · recent KEV additions

Affected versions (from the CVE record)#

Description (from the CVE record)#

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.

Quoted from the CVE Program record.

Elsewhere#

Distro status: Debian · Ubuntu · Red Hat · Alpine

Something wrong on this page?
Anonymous. Reports are checked against the primary source.

Also on today's list

See today's list → · Coming up →