Actively exploited · Published Jan 26, 2021 · Assigned by mitre

CVE-2021-3156

High 7.8 Exploited

In plain English

A high-severity security flaw in Sudo from Sudo. Attackers are actively exploiting it in the wild (listed by CISA on April 6, 2022). The chance it is exploited in the next 30 days is estimated at 100.0% (higher than 99.9% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)100.0%top 0.0% of all CVEs
Exploited in the wildYesCISA KEV since Apr 6, 2022
Attack tooling2Metasploit, Public PoC

CISA guidance

Apply updates per vendor instructions.

Federal agencies must remediate by Apr 27, 2022.

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20sudo1.9.5_p2-r0ALPINE-CVE-2021-3156
Alpine:v3.21sudo1.9.5_p2-r0ALPINE-CVE-2021-3156
Alpine:v3.22sudo1.9.5_p2-r0ALPINE-CVE-2021-3156
Alpine:v3.23sudo1.9.5_p2-r0ALPINE-CVE-2021-3156
Alpine:v3.24sudo1.9.5_p2-r0ALPINE-CVE-2021-3156
Debian:12sudo1.9.5p1-1.1DEBIAN-CVE-2021-3156
Debian:13sudo1.9.5p1-1.1DEBIAN-CVE-2021-3156
Debian:14sudo1.9.5p1-1.1DEBIAN-CVE-2021-3156

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-193 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References