CVE-2021-23240
7.8
HIGH
CVSS 3.1
EPSS 0.21%
Description
selinux_edit_copy_tfiles in sudoedit in Sudo before 1.9.5 allows a local unprivileged user to gain file ownership and escalate privileges by replacing a temporary file with a symlink to an arbitrary file target. This affects SELinux RBAC support in permissive mode. Machines without SELinux are not vulnerable.
How to fix CVE-2021-23240
To remediate CVE-2021-23240, upgrade the affected package to a fixed version below.
- Alpine/sudo—upgrade to 1.9.5p2-r0 or later
- —upgrade to 1.9.5-1 or later
Is CVE-2021-23240 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 1.9.5p2-r0
- from 0, < 1.9.5-1
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 |