PT-2021-7361 · Sudo+8 · Sudo+8
Published
2021-01-06
·
Updated
2025-05-08
·
CVE-2021-23239
CVSS v3.1
7.8
High
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Sudo versions prior to 1.9.5
Description
The issue is related to the sudoedit personality of Sudo, which may allow a local unprivileged user to perform arbitrary directory-existence tests by winning a race condition in replacing a user-controlled directory by a symlink to an arbitrary path. This is due to incorrect handling of symbolic links before accessing a file, potentially allowing an attacker to access confidential data.
Recommendations
For versions prior to 1.9.5, update to version 1.9.5 or later to resolve the issue. As a temporary workaround, consider restricting access to the sudoedit personality until a patch is available.
Exploit
Fix
Link Following
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Astra Linux
Centos
Linuxmint
Red Hat
Rocky Linux
Sudo
Suse
Ubuntu