ALPINE-CVE-2021-23240

    Dashboard / Vulnerabilities / ALPINE-CVE-2021-23240

    ALPINE-CVE-2021-23240

    Published: 12 Jan 2021Last Modified: 27 Aug 2026
    Upstream:

    Summary:

    Details: 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.

    Affected packages

    Package

    Name: sudo

    Purl: pkg:apk/alpine/sudo?arch=source

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 1.9.0
    Fixed -1.9.5p2-r0

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    ALPINE-CVE-2021-23240 | CVE-DB