CVE-2021-23240

mediumpriority · track · 31EPSS 0.011 · 65 %ileDEEUUS
grimoire priorityP3 · Track
Exploitable?
—
no known exploitation
Likely / severe?
1.08% (65th) EPSS
CVSS 4.4 · medium
Is it mine?
24 products
Check your exposure
Who says so?
5 sources
cnnvd · enisa_euvd · cert_bund · nvd

EPSS · scored 2026-10-27

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.

01

remediations

Vendor fix, mitigation, or workaround guidance, as published by each source.

A vendor fix is available.

  • Fixedsudo-0:1.8.29-7.el8.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

    https://access.redhat.com/errata/RHSA-2021:1723
  • Fixedsudo-0:1.8.29-7.el8.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

    https://access.redhat.com/errata/RHSA-2021:1723
  • Fixedsudo-0:1.8.29-7.el8.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

    https://access.redhat.com/errata/RHSA-2021:1723
  • Fixedsudo-0:1.8.29-7.el8.src as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

    https://access.redhat.com/errata/RHSA-2021:1723
  • Fixedsudo-0:1.8.29-7.el8.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

    https://access.redhat.com/errata/RHSA-2021:1723
  • Fixedsudo-debuginfo-0:1.8.29-7.el8.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

    https://access.redhat.com/errata/RHSA-2021:1723
  • Fixedsudo-debuginfo-0:1.8.29-7.el8.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

    https://access.redhat.com/errata/RHSA-2021:1723
  • Fixedsudo-debuginfo-0:1.8.29-7.el8.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

    https://access.redhat.com/errata/RHSA-2021:1723
  • Fixedsudo-debuginfo-0:1.8.29-7.el8.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

    https://access.redhat.com/errata/RHSA-2021:1723
  • Fixedsudo-debugsource-0:1.8.29-7.el8.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

    https://access.redhat.com/errata/RHSA-2021:1723
  • Fixedsudo-debugsource-0:1.8.29-7.el8.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

    https://access.redhat.com/errata/RHSA-2021:1723
  • Fixedsudo-debugsource-0:1.8.29-7.el8.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

    https://access.redhat.com/errata/RHSA-2021:1723
  • Fixedsudo-debugsource-0:1.8.29-7.el8.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

    https://access.redhat.com/errata/RHSA-2021:1723
  • Workaroundsudo-0:1.8.29-7.el8.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    * Enable SELinux in enforcing mode. * Enable the symbolic link protection (/proc/sys/fs/protected_symlinks set to 1). * Remove the `sesh` binary (/usr/libexec/sudo/sesh or /usr/lib/sudo/sesh) if SELinux RBAC support is not needed.

  • Workaroundsudo-0:1.8.29-7.el8.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    * Enable SELinux in enforcing mode. * Enable the symbolic link protection (/proc/sys/fs/protected_symlinks set to 1). * Remove the `sesh` binary (/usr/libexec/sudo/sesh or /usr/lib/sudo/sesh) if SELinux RBAC support is not needed.

  • Workaroundsudo-0:1.8.29-7.el8.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    * Enable SELinux in enforcing mode. * Enable the symbolic link protection (/proc/sys/fs/protected_symlinks set to 1). * Remove the `sesh` binary (/usr/libexec/sudo/sesh or /usr/lib/sudo/sesh) if SELinux RBAC support is not needed.

  • Workaroundsudo-0:1.8.29-7.el8.src as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    * Enable SELinux in enforcing mode. * Enable the symbolic link protection (/proc/sys/fs/protected_symlinks set to 1). * Remove the `sesh` binary (/usr/libexec/sudo/sesh or /usr/lib/sudo/sesh) if SELinux RBAC support is not needed.

  • Workaroundsudo-0:1.8.29-7.el8.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    * Enable SELinux in enforcing mode. * Enable the symbolic link protection (/proc/sys/fs/protected_symlinks set to 1). * Remove the `sesh` binary (/usr/libexec/sudo/sesh or /usr/lib/sudo/sesh) if SELinux RBAC support is not needed.

  • Workaroundsudo-debuginfo-0:1.8.29-7.el8.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    * Enable SELinux in enforcing mode. * Enable the symbolic link protection (/proc/sys/fs/protected_symlinks set to 1). * Remove the `sesh` binary (/usr/libexec/sudo/sesh or /usr/lib/sudo/sesh) if SELinux RBAC support is not needed.

  • Workaroundsudo-debuginfo-0:1.8.29-7.el8.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    * Enable SELinux in enforcing mode. * Enable the symbolic link protection (/proc/sys/fs/protected_symlinks set to 1). * Remove the `sesh` binary (/usr/libexec/sudo/sesh or /usr/lib/sudo/sesh) if SELinux RBAC support is not needed.

  • Workaroundsudo-debuginfo-0:1.8.29-7.el8.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    * Enable SELinux in enforcing mode. * Enable the symbolic link protection (/proc/sys/fs/protected_symlinks set to 1). * Remove the `sesh` binary (/usr/libexec/sudo/sesh or /usr/lib/sudo/sesh) if SELinux RBAC support is not needed.

  • Workaroundsudo-debuginfo-0:1.8.29-7.el8.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    * Enable SELinux in enforcing mode. * Enable the symbolic link protection (/proc/sys/fs/protected_symlinks set to 1). * Remove the `sesh` binary (/usr/libexec/sudo/sesh or /usr/lib/sudo/sesh) if SELinux RBAC support is not needed.

  • Workaroundsudo-debugsource-0:1.8.29-7.el8.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    * Enable SELinux in enforcing mode. * Enable the symbolic link protection (/proc/sys/fs/protected_symlinks set to 1). * Remove the `sesh` binary (/usr/libexec/sudo/sesh or /usr/lib/sudo/sesh) if SELinux RBAC support is not needed.

  • Workaroundsudo-debugsource-0:1.8.29-7.el8.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    * Enable SELinux in enforcing mode. * Enable the symbolic link protection (/proc/sys/fs/protected_symlinks set to 1). * Remove the `sesh` binary (/usr/libexec/sudo/sesh or /usr/lib/sudo/sesh) if SELinux RBAC support is not needed.

  • Workaroundsudo-debugsource-0:1.8.29-7.el8.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    * Enable SELinux in enforcing mode. * Enable the symbolic link protection (/proc/sys/fs/protected_symlinks set to 1). * Remove the `sesh` binary (/usr/libexec/sudo/sesh or /usr/lib/sudo/sesh) if SELinux RBAC support is not needed.

  • Workaroundsudo-debugsource-0:1.8.29-7.el8.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)redhat_csaf

    * Enable SELinux in enforcing mode. * Enable the symbolic link protection (/proc/sys/fs/protected_symlinks set to 1). * Remove the `sesh` binary (/usr/libexec/sudo/sesh or /usr/lib/sudo/sesh) if SELinux RBAC support is not needed.

02

cvss

Technical severity, 0–10. One row per scoring source.

7.8
010

base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 4.4–7.8

v2.04.4mediumAV:L/AC:M/Au:N/C:P/I:P/A:Pprimary · NVD / NIST USexploitability 3.4 · impact 6.4
v3.17.8highCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hprimary · NVD / NIST USexploitability 1.8 · impact 5.9
v3.17.1highCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:Usecondary · CVSS-BT (t0sche)
v3.17.8highCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hsecondary · Red Hat Product Security US
03

weaknesses

The CWE weakness classes this flaw belongs to.

04

affected products (24)

Products and version ranges known to be affected.

showing 20 of 24
05

advisories (2)

Vendor and ecosystem advisories describing this.

  • RHSA-2021:1723Red Hat Security Advisory: sudo security and bug fix update2021-05-18csaf · redhat_csafUS

    An update for sudo is now available for Red Hat Enterprise Linux 8. Red Hat Product Security has rated this update as having a security impact of Low. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section.

  • WID-SEC-W-2025-0227IBM QRadar SIEM: Mehrere SchwachstellenDeutsch2021-11-30csaf · cert_bundDE

    Ein entfernter, authentisierter Angreifer kann mehrere Schwachstellen in IBM QRadar SIEM ausnutzen, um seine Privilegien zu erweitern, Administratorrechte zu erlangen, beliebigen Programmcode auszuführen, Informationen offenzulegen, Dateien zu manipulieren oder Sicherheitsvorkehrungen zu umgehen.

06

also known as (3)

Other names and identifiers for this entity.

07

sources

Which sources assert this record, and when.

09

references (38)

External citations — patches, advisories, analysis.

scry

Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.

Free scan