VDB

ALPINE-CVE-2021-23240

ALPINE-CVE-2021-23240 PUBLISHED CVSS 7.800000190734863 HIGH

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.

Risk Scores

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

Affected Products

VendorProductVersions
Alpine:v3.14sudo1.6.9_p17-r1, 1.7.0-r0, 1.7.1-r0
Alpine:v3.13sudo1.9.4, 0, 1.7.1-r0
Alpine:v3.12sudo1.8.21_p2-r2, 1.7.4_p3-r0, 1.7.4_p4-r0
Alpine:v3.11sudo1.7.1-r0, 1.7.2-r0, 1.7.2
Alpine:v3.10sudo1.7.0-r0, 0, 1.7.0-r0
Alpine:v3.15sudo1.8.27-r0, 1.8.23-r2, 1.8.21_p2-r2

Timeline

  • Jan 12, 2021 CVE Published
  • Nov 19, 2025 CVE Updated
  • Apr 30, 2026 Distribution Patch
Open in Interactive Console →
$ Console Community · 100/wk Open console ›