DEBIAN-CVE-2021-23240
Record from OSV · Published January 12, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| sudo | Debian:14 | 1.9.5-1 |
| sudo | Debian:13 | 1.9.5-1 |
| sudo | Debian:12 | 1.9.5-1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Debian:14 | sudo | 0 |
| Debian:13 | sudo | 0 |
| Debian:12 | sudo | 0 |
Timeline
- Jan 12, 2021 CVE Published
- Oct 23, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln DEBIAN-CVE-2021-23240
vulnetix vdb fixes DEBIAN-CVE-2021-23240
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/DEBIAN-CVE-2021-23240/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart