CVE-2021-23239
published 2021-01-12CVE-2021-23239: The sudoedit personality of Sudo before 1.9.5 may allow a local unprivileged user to perform arbitrary directory-existence tests by winning a sudo_edit.c race…
PriorityP413low2.5CVSS 3.1
AVLACHPRLUINSUCLINAN
EPSS
1.03%
59.8th percentile
The sudoedit personality of Sudo before 1.9.5 may allow a local unprivileged user to perform arbitrary directory-existence tests by winning a sudo_edit.c race condition in replacing a user-controlled directory by a symlink to an arbitrary path.
Affected
17 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | sudo | < sudo 1.9.5-1 (bookworm) | sudo 1.9.5-1 (bookworm) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| msrc | sudo-1.9.5p2-2.cm1.aarch64.rpm_on_cbl_mariner_1.0_arm | — | — |
| msrc | sudo-1.9.5p2-2.cm1.x86_64.rpm_on_cbl_mariner_1.0_x64 | — | — |
| msrc | sudo-debuginfo-1.9.5p2-2.cm1.aarch64.rpm_on_cbl_mariner_1.0_arm | — | — |
| msrc | sudo-debuginfo-1.9.5p2-2.cm1.x86_64.rpm_on_cbl_mariner_1.0_x64 | — | — |
| sudo_project | sudo | < 1.8.32 | 1.8.32 |
| sudo_project | sudo | >= 0 < 1.9.5-1 | 1.9.5-1 |
| sudo_project | sudo | >= 0 < 1.9.5-1 | 1.9.5-1 |
| sudo_project | sudo | >= 0 < 1.9.5-1 | 1.9.5-1 |
| sudo_project | sudo | >= 0 < 1.9.5-1 | 1.9.5-1 |
| sudo_project | sudo | >= 0 < 1.8.16-0ubuntu1.10 | 1.8.16-0ubuntu1.10 |
| sudo_project | sudo | >= 0 < 1.8.21p2-3ubuntu1.4 | 1.8.21p2-3ubuntu1.4 |
| sudo_project | sudo | >= 0 < 1.8.31-1ubuntu1.2 | 1.8.31-1ubuntu1.2 |
| sudo_project | sudo | >= 1.9.0 < 1.9.5 | 1.9.5 |
CVSS provenance
nvdv3.12.5LOWCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
nvdv2.01.9LOWAV:L/AC:M/Au:N/C:P/I:N/A:N
osv2.5LOW
vendor_debian2.5LOW
vendor_msrc2.5LOW
vendor_redhat2.5LOW
vendor_ubuntu2.5LOW
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-wfrc-r682-56qv: The sudoedit personality of Sudo before 1
ghsa_unreviewed·2022-05-24
CVE-2021-23239 [LOW] CWE-59 GHSA-wfrc-r682-56qv: The sudoedit personality of Sudo before 1
The sudoedit personality of Sudo before 1.9.5 may allow a local unprivileged user to perform arbitrary directory-existence tests by winning a sudo_edit.c race condition in replacing a user-controlled directory by a symlink to an arbitrary path.
OSV
sudo vulnerabilities
osv·2021-01-26·CVSS 2.5
CVE-2021-3156 [LOW] sudo vulnerabilities
sudo vulnerabilities
It was discovered that Sudo incorrectly handled memory when parsing command
lines. A local attacker could possibly use this issue to obtain unintended
access to the administrator account. (CVE-2021-3156)
It was discovered that the Sudo sudoedit utility incorrectly handled
checking directory permissions. A local attacker could possibly use this
issue to bypass file permissions and determine if a directory exists or
not. (CVE-2021-23239)
OSV
CVE-2021-23239: The sudoedit personality of Sudo before 1
osv·2021-01-12·CVSS 2.5
CVE-2021-23239 [LOW] CVE-2021-23239: The sudoedit personality of Sudo before 1
The sudoedit personality of Sudo before 1.9.5 may allow a local unprivileged user to perform arbitrary directory-existence tests by winning a sudo_edit.c race condition in replacing a user-controlled directory by a symlink to an arbitrary path.
Ubuntu
Sudo vulnerabilities
vendor_ubuntu·2021-01-26·CVSS 2.5
CVE-2021-3156 [LOW] Sudo vulnerabilities
Title: Sudo vulnerabilities
Summary: Several security issues were fixed in Sudo.
It was discovered that Sudo incorrectly handled memory when parsing command
lines. A local attacker could possibly use this issue to obtain unintended
access to the administrator account. (CVE-2021-3156)
It was discovered that the Sudo sudoedit utility incorrectly handled
checking directory permissions. A local attacker could possibly use this
issue to bypass file permissions and determine if a directory exists or
not. (CVE-2021-23239)
Instructions: In general, a standard system update will make all the necessary changes.
Microsoft
The sudoedit personality of Sudo before 1.9.5 may allow a local unprivileged user to perform arbitrary directory-existence tests by winning a sudo_edit.c race condition in replacing a user-controlled
vendor_msrc·2021-01-12·CVSS 2.5
CVE-2021-23239 [LOW] CWE-59 The sudoedit personality of Sudo before 1.9.5 may allow a local unprivileged user to perform arbitrary directory-existence tests by winning a sudo_edit.c race condition in replacing a user-controlled
The sudoedit personality of Sudo before 1.9.5 may allow a local unprivileged user to perform arbitrary directory-existence tests by winning a sudo_edit.c race condition in replacing a user-controlled directory by a symlink to an arbitrary path.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additiona
Red Hat
sudo: possible directory existence test due to race condition in sudoedit
vendor_redhat·2021-01-11·CVSS 2.5
CVE-2021-23239 [LOW] CWE-367 sudo: possible directory existence test due to race condition in sudoedit
sudo: possible directory existence test due to race condition in sudoedit
The sudoedit personality of Sudo before 1.9.5 may allow a local unprivileged user to perform arbitrary directory-existence tests by winning a sudo_edit.c race condition in replacing a user-controlled directory by a symlink to an arbitrary path.
A flaw was found in sudoedit. A race condition vulnerability and improper symbolic link resolution could be used by a local unprivileged user to test for the existence of directories and files not normally accessible to the user. This flaw cannot be used to read the content or write to arbitrary files on the file system. The highest threat from this vulnerability is to data confidentiality.
Statement: This flaw has been rated as having a security impact of Low. The symbolic
Debian
CVE-2021-23239: sudo - The sudoedit personality of Sudo before 1.9.5 may allow a local unprivileged use...
vendor_debian·2021·CVSS 2.5
CVE-2021-23239 [LOW] CVE-2021-23239: sudo - The sudoedit personality of Sudo before 1.9.5 may allow a local unprivileged use...
The sudoedit personality of Sudo before 1.9.5 may allow a local unprivileged user to perform arbitrary directory-existence tests by winning a sudo_edit.c race condition in replacing a user-controlled directory by a symlink to an arbitrary path.
Scope: local
bookworm: resolved (fixed in 1.9.5-1)
bullseye: resolved (fixed in 1.9.5-1)
forky: resolved (fixed in 1.9.5-1)
sid: resolved (fixed in 1.9.5-1)
trixie: resolved (fixed in 1.9.5-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://bugzilla.suse.com/show_bug.cgi?id=CVE-2021-23239https://lists.debian.org/debian-lts-announce/2022/11/msg00007.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EE42Y35SMJOLONAIBNYNFC7J44UUZ2Y6/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GMY4VSSBIND7VAYSN6T7XIWJRWG4GBB3/https://security.gentoo.org/glsa/202101-33https://security.netapp.com/advisory/ntap-20210129-0010/https://www.sudo.ws/stable.html#1.9.5https://bugzilla.suse.com/show_bug.cgi?id=CVE-2021-23239https://lists.debian.org/debian-lts-announce/2022/11/msg00007.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EE42Y35SMJOLONAIBNYNFC7J44UUZ2Y6/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GMY4VSSBIND7VAYSN6T7XIWJRWG4GBB3/https://security.gentoo.org/glsa/202101-33https://security.netapp.com/advisory/ntap-20210129-0010/https://www.sudo.ws/stable.html#1.9.5
2021-01-12
Published