CVE-2021-23239: Race Condition
A flaw was found in sudo before version 1.9.5. A potential race condition in sudoedit could be used to test for the existence of directories not normally accessible to the user in certain circumstances.
References: https://www.openwall.com/lists/oss-security/2021/01/11/2
Other sources
The sudoedit personality of Sudo before 1.9.5 may allow a local unprivileged user to perform arbitrary directory-existence tests by winning a sudoedit.c race condition in replacing a user-controlled directory by a symlink to an arbitrary path.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/sudoto a version that resolves this vulnerability.Fixed in 1.9.5p2-r0 - Upgrade
Upgrade
alpine/sudoto a version that resolves this vulnerability.Fixed in 1.9.5-r0 - Upgrade
Upgrade
redhat/sudoto a version that resolves this vulnerability.Fixed in 1.9.5 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.9.5
Event History
Frequently Asked Questions
What is CVE-2021-23239?
CVE-2021-23239 is a vulnerability in the sudoedit personality of Sudo before version 1.9.5 that may allow a local unprivileged user to perform arbitrary directory-existence tests.
How does CVE-2021-23239 affect Sudo?
CVE-2021-23239 affects Sudo versions before 1.9.5.
What is the severity of CVE-2021-23239?
CVE-2021-23239 has a severity level of Low with a score of 2.5.
Which software are affected by CVE-2021-23239?
Sudo versions before 1.9.5, Netapp Cloud Backup, Netapp Hci Management Node, Netapp Solidfire, Fedora 32, Fedora 33, Debian Linux 10.0 are affected by CVE-2021-23239.
How can the CVE-2021-23239 vulnerability be mitigated?
To mitigate the CVE-2021-23239 vulnerability, users should update their Sudo installations to version 1.9.5 or later.