Skip to content
Noroxi
NVD / CVE Program· CNA mitre

CVE-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

Noroxi assessment

Priority: Monitor (action score 10/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 1% (FIRST EPSS); higher than 63.8% of all records.
  • Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. Special conditions such as timing or configuration are required.
  • Fixed version: sudo (Alpine:v3.10) 1.9.5p2-r0; sudo (Alpine:v3.12) 1.9.5-r0; sudo (Debian:10) 1.8.27-1+deb10u4.
  • Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).

Low priority for now. Upgrade to sudo (Alpine:v3.10) 1.9.5p2-r0; sudo (Alpine:v3.12) 1.9.5-r0; sudo (Debian:10) 1.8.27-1+deb10u4 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

LowCVSS 2.5 · v3.1—No exploit Fix available
Published
Jan 12, 2021
Updated
Jun 16, 2026
EPSS
1.0% · 63th percentile

Report tools

JSON

Action score

10

Monitor

Low priority for now.

CVSS
10 / 40 · 2.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 1.0%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2021-23239

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits instantly.

Your free account also gets you

Running WordPress? Scan your site free with WP Lens

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Running WordPress? Scan your site free with WP Lens

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
sudo projectsudo
netappcloud backup
netapphci management node
netappsolidfire
fedoraprojectfedora
debiandebian linux

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • debian debian linux10.0
  • fedoraproject fedora32
  • fedoraproject fedora33
  • netapp cloud backupall versions
  • netapp hci management nodeall versions
  • netapp solidfireall versions
  • sudo project sudobefore 1.8.32
  • sudo project sudo1.9.0 and later · before 1.9.5

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.10sudofrom 1.9.0 · before 1.9.5p2-r01.9.5p2-r0
Alpine:v3.12sudofrom 1.9.0 · before 1.9.5-r01.9.5-r0
Debian:10sudobefore 1.8.27-1+deb10u41.8.27-1+deb10u4
Debian:12sudobefore 1.9.5-11.9.5-1
openSUSE:Leap 15.1sudobefore 1.8.22-lp151.5.12.11.8.22-lp151.5.12.1
openSUSE:Leap 15.2sudobefore 1.8.22-lp152.8.6.11.8.22-lp152.8.6.1
openSUSE:Tumbleweedsudobefore 1.9.7p2-1.41.9.7p2-1.4
Red Hat:enterprise_linux:8::baseossudobefore 0:1.8.29-7.el80:1.8.29-7.el8
Red Hat:enterprise_linux:8::baseossudo-debuginfobefore 0:1.8.29-7.el80:1.8.29-7.el8
Red Hat:enterprise_linux:8::baseossudo-debugsourcebefore 0:1.8.29-7.el80:1.8.29-7.el8
Rocky Linux:8sudobefore 0:1.8.29-7.el80:1.8.29-7.el8
SUSE:HPE Helion OpenStack 8sudobefore 1.8.20p2-3.20.11.8.20p2-3.20.1
SUSE:Linux Enterprise Module for Basesystem 15 SP1sudobefore 1.8.22-4.15.11.8.22-4.15.1
SUSE:Linux Enterprise Software Development Kit 12 SP5sudobefore 1.8.27-4.6.11.8.27-4.6.1
SUSE:OpenStack Cloud 7sudobefore 1.8.10p3-10.29.11.8.10p3-10.29.1

Other highest-scoring records for the same primary product.

  • CVE-2021-3156Sudo before 1.9.5p2 contains an off-by-one error that can result in a heap-based buffer overflow, which allows privilege escalation to root KEV
    91Now
  • CVE-2025-32463Sudo before 1.9.17p1 allows local users to obtain root access because /etc/nsswitch.conf from a user-controlled directory is used with the -KEV
    78This week
  • CVE-2019-14287In Sudo before 1.8.28, an attacker with access to a Runas ALL sudoer account can bypass certain policy blacklists and session PAM modules, a
    54Plan

Published before and after this one in the same product

  • ← EarlierCVE-2019-18684Nov 4, 2019 · Sudo through 1.8.29 allows local users to escalate to root if they have write access to file descriptor 3 of the sudo process.
    28Monitor
  • ← EarlierCVE-2019-18634Jan 29, 2020 · In Sudo before 1.8.26, if pwfeedback is enabled in /etc/sudoers, users can trigger a stack-based buffer overflow in the privileged sudo proc
    37Monitor
  • Later →CVE-2021-23240Jan 12, 2021 · selinux_edit_copy_tfiles in sudoedit in Sudo before 1.9.5 allows a local unprivileged user to gain file ownership and escalate privileges by
    31Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
alpine:sudo1.9.5p2-r0 · Alpine:v3.10Package registry (OSV)
debian:sudo1.9.5-1 · Debian:12Package registry (OSV)
opensuse:sudo1.8.22-lp151.5.12.1 · openSUSE:Leap 15.1Package registry (OSV)
red hat:sudo0:1.8.29-7.el8 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:sudo-debuginfo0:1.8.29-7.el8 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:sudo-debugsource0:1.8.29-7.el8 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
rocky linux:sudo0:1.8.29-7.el8 · Rocky Linux:8Package registry (OSV)
suse:sudo1.8.27-4.6.1 · SUSE:Linux Enterprise Software Development Kit 12 SP5Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

National notice (Türkiye Cybersecurity Directorate / USOM)

Official security notices citing this record; remediation advice is on the agency's page.

All national notices →

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • Special conditions such as timing or configuration are required.

If successful

Confidentiality
low · data can be read
Integrity
none
Availability
none
Attack vector
Local
Attack complexity
High
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
Low
Integrity impact
None
Availability impact
None

CVSS vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N

nvd-primary

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records