CVE-2021-23240
HIGH7.8EPSS 0.21%Published: 1/12/2021Modified: 4/28/2026
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.
Affected packages (2)
- Alpine/sudofrom 0, < 1.9.5p2-r0
- Debian/sudofrom 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 |