Vulnerabilities · 2021 · Sudo Project
CVE-2021-23240
Sudo Project Sudo vulnerability
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
Sudo, Hci Management Node, Solidfire, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Sudo Project Sudo runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- www.sudo.ws/stable.html#1.9.5 · Vendor Advisory
- bugzilla.suse.com/show_bug.cgi?id=CVE-2021-23240 · Exploit
- security.gentoo.org/glsa/202101-33 · Third Party Advisory
- security.netapp.com/advisory/ntap-20210129-0010/ · Third Party Advisory
- lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%
- lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G
- nvd.nist.gov/vuln/detail/CVE-2021-23240
- cve.org/CVERecord?id=CVE-2021-23240
More vulnerabilities in Sudo Project products
CVE-2025-32463CVE-2025-32462CVE-2023-42465CVE-2023-28487CVE-2023-28486CVE-2023-27320CVE-2023-22809CVE-2023-7090All 23
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.