CVE-2021-23240

HIGHCVSS 7.8/10EPSS 1.07%

Last modified

CVE-2021-23240 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 1.07% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
7.8/10

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
1.07%

60.5th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
Sudo ProjectSudo< 1.8.32
Sudo ProjectSudo>= 1.9.0, < 1.9.5
NetappHci Management NodeAll versions
NetappSolidfireAll versions
FedoraprojectFedora32
FedoraprojectFedora33

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is 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 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 severe is CVE-2021-23240?
CVE-2021-23240 has a CVSS score of 7.8/10 (HIGH severity). The EPSS model estimates a 1.07% probability of exploitation in the next 30 days.
How do I fix CVE-2021-23240?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-23240?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST