CVE & CISA-KEV Catalog

CVE-2021-23240

HIGH
7.8
CVSS v3
NVD

Description

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 replacing a temporary file with a symlink to an arbitrary file target. This affects SELinux RBAC support in permissive mode. Machines without SELinux are not vulnerable.

How to fix

Remediation Available
sudoDebian
Fixed in:1.9.5-1CVE-2021-23240
Fixed in:1.9.5-1CVE-2021-23240
Fixed in:1.9.5-1CVE-2021-23240
Fixed in:1.9.5-1CVE-2021-23240

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

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

Exploit Intelligence

1.07%probability of exploitation in 30 days
61stpercentile

Moderate risk: more likely to be exploited than 61% of all known CVEs.

References

Related Vulnerabilities

Other CWE-59 (Link Following) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2022-30333High7.599%KEV + RansomFix
CVE-2021-21300High8.089%-Fix
CVE-2021-32610High7.173%-Fix
CVE-2020-36193High7.571%KEVFix
CVE-2023-40028Medium4.958%-Fix
CVE-2020-0787High7.843%KEV + Ransom-
Embed a live status badge for CVE-2021-23240
CVE-2021-23240 severity badge

Markdown

[![CVE-2021-23240](https://tridentstack.com/cve/badge/CVE-2021-23240.svg)](https://tridentstack.com/cve/CVE-2021-23240)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-23240"><img src="https://tridentstack.com/cve/badge/CVE-2021-23240.svg" alt="CVE-2021-23240"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.