cbcvebase.
CVE-2021-23240
published 2021-01-12

CVE-2021-23240: 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…

PriorityP341high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
1.07%
61.0th percentile
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

13 ranges
VendorProductVersion rangeFixed in
debiansudo< sudo 1.9.5-1 (bookworm)sudo 1.9.5-1 (bookworm)
fedoraprojectfedora
fedoraprojectfedora
msrcsudo-1.9.5p2-2.cm1.aarch64.rpm_on_cbl_mariner_1.0_arm
msrcsudo-1.9.5p2-2.cm1.x86_64.rpm_on_cbl_mariner_1.0_x64
msrcsudo-debuginfo-1.9.5p2-2.cm1.aarch64.rpm_on_cbl_mariner_1.0_arm
msrcsudo-debuginfo-1.9.5p2-2.cm1.x86_64.rpm_on_cbl_mariner_1.0_x64
sudo_projectsudo< 1.8.321.8.32
sudo_projectsudo>= 0 < 1.9.5-11.9.5-1
sudo_projectsudo>= 0 < 1.9.5-11.9.5-1
sudo_projectsudo>= 0 < 1.9.5-11.9.5-1
sudo_projectsudo>= 0 < 1.9.5-11.9.5-1
sudo_projectsudo>= 1.9.0 < 1.9.51.9.5

CVSS provenance

nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.04.4MEDIUMAV:L/AC:M/Au:N/C:P/I:P/A:P
osv7.8HIGH
vendor_debian7.8LOW
vendor_msrc7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.