cve.bz

CVE-2021-23239 Link Following

2.5 lowExploit referenceEPSS 1.0%

Low (2.5). EPSS 1.0% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

2.5 low
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 64th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-23239 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-23239?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-23239?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-23239 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
sudo_project:sudobefore 1.8.32
sudo_project:sudofrom 1.9.0 before 1.9.5
fedoraproject:fedora32
fedoraproject:fedora33
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10sudo1.8.27-1+deb10u4DLA-3181-1
Debian12, 13, 14sudo1.9.5-1DEBIAN-CVE-2021-23239
Ubuntu16.04:LTSsudo1.8.16-0ubuntu1.10UBUNTU-CVE-2021-23239 USN-4705-1
Ubuntu18.04:LTSsudo1.8.21p2-3ubuntu1.4UBUNTU-CVE-2021-23239 USN-4705-1
Ubuntu20.04:LTSsudo1.8.31-1ubuntu1.2UBUNTU-CVE-2021-23239 USN-4705-1
UbuntuPro:14.04:LTSsudono fix listedUBUNTU-CVE-2021-23239
Red Hatenterprise_linux:8::baseossudo, sudo-debuginfo, sudo-debugsource0:1.8.29-7.el8RHSA-2021:1723
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP3-BCL and 8 moresudo1.8.20p2-3.20.1SUSE-SU-2021:0226-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 12 moresudo1.8.22-4.15.1SUSE-SU-2021:0227-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP2-LTSS, Linux Enterprise Server for SAP Applications 12 SP2 and 1 moresudo1.8.10p3-10.29.1SUSE-SU-2021:0232-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5sudo1.8.27-4.6.1SUSE-SU-2021:0225-1
openSUSELeap 15.1sudo1.8.22-lp151.5.12.1openSUSE-SU-2021:0169-1
openSUSELeap 15.2sudo1.8.22-lp152.8.6.1openSUSE-SU-2021:0170-1
openSUSETumbleweedsudo1.9.7p2-1.4openSUSE-SU-2024:11413-1
Rocky Linux8sudo0:1.8.29-7.el8RLSA-2021:1723
Alpinev3.10, v3.11sudo1.9.5p2-r0ALPINE-CVE-2021-23239
Alpinev3.12, v3.13, v3.14 and 10 moresudo1.9.5-r0ALPINE-CVE-2021-23239

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This flaw has been rated as having a security impact of Low. The symbolic link protection is enabled by default in Red Hat Enterprise Linux 7 and 8, preventing this issue from being exploited.

Red Hat's mitigation

Enabling the symbolic link protection (/proc/sys/fs/protected_symlinks set to 1) is sufficient to mitigate this flaw.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8sudo-0:1.8.29-7.el8Fixed 2021-05-18RHSA-2021:1723
Red Hat Enterprise Linux 5sudoOut of support scope
Red Hat Enterprise Linux 6sudoOut of support scope
Red Hat Enterprise Linux 7sudoOut of support scope
Red Hat Enterprise Linux 9sudoNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-23239.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON