All vulnerabilities

Servers and applications

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.

Severity
High 7.8
Published
12 Jan 2021
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
1.8.32, 1.9.5
Sources
NVD

Affected software

SoftwareAffected versions
sudoServers and applications · cpe:a:sudo_project:sudo
  • Every version before 1.8.32
  • From 1.9.0 before 1.9.5

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2021-23240
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2021-23240