CVE-2021-23240 Privilege escalation in n/a
Local unprivileged users can escalate privileges by replacing a temporary file with a symlink in sudoedit when SELinux is in permissive mode.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-23240?
CVE-2021-23240 is a high-severity vulnerability in Fedoraproject Fedora, published on 12 Jan 2021. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-59
Which versions are affected by CVE-2021-23240?
It affects 4 products.
Products include Fedoraproject Fedora, Netapp Hci Management Node, Netapp Solidfire, Sudo Project Sudo.
How do I fix CVE-2021-23240?
Upgrade to a fixed version.
Is CVE-2021-23240 being exploited?
There is no known exploitation of CVE-2021-23240 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as ALPINE-CVE-2021-23240, CLSA-2021-1625650209, CLSA-2021-1634925704, CLSA-2021-1635459277, CLSA-2023-1688678678, DEBIAN-CVE-2021-23240 and 2 more.