Alpine: multiple sudo packages: security update to 1.9.5p2-r0

critical Tenable Cloud Security Plugin ID 407289

Description

There are packages installed that are affected by multiple vulnerabilities referenced in the following CVEs:

- Sudo 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 via "sudoedit -s" and a command-line argument that ends with a single
backslash character. (CVE-2021-3156)

- 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. (CVE-2021-23239)

- 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.
(CVE-2021-23240)

See Also

https://security.alpinelinux.org/vuln/CVE-2021-23239

https://security.alpinelinux.org/vuln/CVE-2021-23240

https://security.alpinelinux.org/vuln/CVE-2021-3156

Plugin Details

Severity: Critical

ID: 407289

Version: Revision 1.24

Type: Local

Published: 10/31/2023

Updated: 2/26/2025

Supported Sensors: Agentless Assessment, Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Critical

Score: 9.5

Percentile: 99.86

CVSS v2

Risk Factor: High

Base Score: 7.2

Temporal Score: 6.3

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2021-3156

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 7.5

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

Temporal Vector: CVSS:3.0/E:H/RL:O/RC:C

CVSS v4

Risk Factor: Critical

Base Score: 9.3

Threat Score: 9.3

Threat Vector: CVSS:4.0/E:A

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS Score Source: CVE-2021-23240

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 1/12/2021

CISA Known Exploited Vulnerability Due Dates: 4/27/2022

Exploitable With

CANVAS (CANVAS)

Core Impact

Metasploit (Sudo Heap-Based Buffer Overflow)

Reference Information

CVE: CVE-2021-23239, CVE-2021-23240, CVE-2021-3156

IAVA: 2021-A-0053