CVE-2021-23240

sudo: symbolic link attack in SELinux-enabled sudoedit

Published Jan 12, 2021 CVSS 3.1 · 7.8 High EPSS 1.1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-10339 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.
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 3, 2024, 7:05 PM
Reserved
Jan 7, 2021, 12:00 AM
Status
Modified
Published
Jan 12, 2021, 9:15 AM
Modified
Jun 17, 2026, 3:38 AM
Severity
Moderate
Public date
Jan 11, 2021, 12:00 AM