CVE-2021-23240

low
Published — · Modified —
CVSS v3
CVSS v2
VIR risk
2.5

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.

Predictions

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2021-23240

vendor Authored 2026-05-27

Vendor advisory: rocky — https://errata.rockylinux.org/RLSA-2021:1723

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2021-23240.html

OS impact

OSVersionStatusFixed in
arch archfixed1.9.5.p1-1
suse slesaffected
rockylinux rocky8fixed
debian debianbookwormfixed1.9.5-1
debian debianbullseyefixed1.9.5-1
debian debianforkyfixed1.9.5-1
debian debiansidfixed1.9.5-1
debian debiantrixiefixed1.9.5-1

References

Verify integrity in audit chain (admin only). AS-IS.