CVE-2021-3156
sudo - security update
7.8
HIGH
CVSS 3.1
⚠ KEVEPSS 92.6%
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.
How to fix CVE-2021-3156
To remediate CVE-2021-3156, upgrade the affected package to a fixed version below.
- —upgrade to 1.9.5p2-r0 or later
- —upgrade to 1.9.5p1-1.1 or later
- —upgrade to 1.8.19p1-2.1+deb9u3 or later
- —upgrade to 1.8.27-1+deb10u3 or later
Is CVE-2021-3156 being exploited?
Yes — CVE-2021-3156 is on the CISA Known Exploited Vulnerabilities (KEV) catalog. Patch immediately.
Affected packages (4)
- from 0, < 1.9.5p2-r0
- from 0, < 1.9.5p1-1.1
- from 0, < 1.8.19p1-2.1+deb9u3
- from 0, < 1.8.27-1+deb10u3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |