What’s Vulnerable › Vulnerabilities

CVE-2021-23240

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 products

How to fix

Upgrade to a fixed version: sudo 1.8.32, 1.9.5. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-23240 or the next vulnerability affects your stack