Vulnerability database / CVE-2021-23240
CVE-2021-23240
HIGH 7.8 CVSS 3.1 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.
Published 12 Jan 2021
Last modified 17 Jun 2026 Assigned by cve@mitre.org NVD status Modified Weakness
CWE-59 Sources
NVD JSON Scores
Source Scored by Version Score Vector / decision
NVD
nvd@nist.gov (Primary)
CVSS 3.1
HIGH 7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD
nvd@nist.gov (Primary)
CVSS 2.0
MEDIUM 4.4
AV:L/AC:M/Au:N/C:P/I:P/A:P
Affected
Source Vendor / ecosystem Product / package Affected versions Fixed in
NVD
sudo_project
sudocpe:2.3:a:sudo_project:sudo:*:*:*:*:*:*:*:*
< 1.8.32
1.8.32 NVD
sudo_project
sudocpe:2.3:a:sudo_project:sudo:*:*:*:*:*:*:*:*
>= 1.9.0, < 1.9.5
1.9.5 NVD
netapp
hci_management_nodecpe:2.3:a:netapp:hci_management_node:-:*:*:*:*:*:*:*
(no version)
NVD
netapp
solidfirecpe:2.3:a:netapp:solidfire:-:*:*:*:*:*:*:*
(no version)
NVD
fedoraproject
fedoracpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
= 32
NVD
fedoraproject
fedoracpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
= 33
References
History
25 Nov 2026 20:32 UTC · NVD: first stored (published 12 Jan 2021)