Ojuju Advisory
DEBIAN-CVE-2021-23240 Also known as: CVE-2021-23240
Summary The record has no summary.
Details 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 Basis: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Dates Published 2021-01-12 09:15 UTC Modified 2026-10-23 18:03 UTC
Affected packages and fixes sudo
Debian packages (deb) · Debian 12
Affected introduced 0, fixed 1.9.5-1 (ecosystem)
Fixed versions 1.9.5-1
Fix This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.
sudo
Debian packages (deb) · Debian 13
Affected introduced 0, fixed 1.9.5-1 (ecosystem)
Fixed versions 1.9.5-1
Fix This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.
sudo
Debian packages (deb) · Debian 14
Affected introduced 0, fixed 1.9.5-1 (ecosystem)
Fixed versions 1.9.5-1
Fix This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check →