CVE-2021-23239

NameCVE-2021-23239
DescriptionThe 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3181-1, ELA-728-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
sudo (PTS)jessie, jessie (lts)1.8.10p3-1+deb8u9vulnerable
stretch (security)1.8.19p1-2.1+deb9u3vulnerable
stretch (lts), stretch1.8.19p1-2.1+deb9u6fixed
buster (security), buster, buster (lts)1.8.27-1+deb10u6fixed
bullseye (security), bullseye1.9.5p2-3+deb11u1fixed
bookworm1.9.13p3-1+deb12u1fixed
sid, trixie1.9.16p1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
sudosourcestretch1.8.19p1-2.1+deb9u4ELA-728-1
sudosourcebuster1.8.27-1+deb10u4DLA-3181-1
sudosource(unstable)1.9.5-1

Notes

[stretch] - sudo <no-dsa> (Minor issue)
https://www.openwall.com/lists/oss-security/2021/01/11/2
https://www.sudo.ws/repos/sudo/rev/ea19d0073c02
[jessie] - sudo <no-dsa> (Minor issue)
SuSE released a fix for sudo-1.8.10p3 so assuming jessie is vulnerable even if the code is different

Search for package or bug name: Reporting problems