Alpine: multiple go packages: security update to 0

high Tenable Cloud Security Plugin ID 404727

Description

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

- Due to unsanitized NUL values, attackers may be able to maliciously set environment variables on Windows.
In syscall.StartProcess and os/exec.Cmd, invalid environment variable values containing NUL values are not
properly checked for. A malicious environment variable value can exploit this behavior to set a value for
a different environment variable. For example, the environment variable string "A=B\x00C=D" sets the
variables "A=B" and "C=D". (CVE-2022-41716)

- On Windows, restricted files can be accessed via os.DirFS and http.Dir. The os.DirFS function and http.Dir
type provide access to a tree of files rooted at a given directory. These functions permit access to
Windows device files under that root. For example, os.DirFS("C:/tmp").Open("COM1") opens the COM1 device.
Both os.DirFS and http.Dir only provide read-only filesystem access. In addition, on Windows, an os.DirFS
for the directory (the root of the current drive) can permit a maliciously crafted path to escape from the
drive and access any path on the system. With fix applied, the behavior of os.DirFS("") has changed.
Previously, an empty root was treated equivalently to "/", so os.DirFS("").Open("tmp") would open the path
"/tmp". This now returns an error. (CVE-2022-41720)

- A path traversal vulnerability exists in filepath.Clean on Windows. On Windows, the filepath.Clean
function could transform an invalid path such as "a/../c:/b" into the valid path "c:\b". This
transformation of a relative (if invalid) path into an absolute path could enable a directory traversal
attack. After fix, the filepath.Clean function transforms this path into the relative (but still invalid)
path ".\c:\b". (CVE-2022-41722)

- On Darwin, building a Go module which contains CGO can trigger arbitrary code execution when using the
Apple version of ld, due to usage of the -lto_library flag in a "#cgo LDFLAGS" directive. (CVE-2024-24787)

See Also

https://security.alpinelinux.org/vuln/CVE-2022-41716

https://security.alpinelinux.org/vuln/CVE-2022-41720

https://security.alpinelinux.org/vuln/CVE-2022-41722

https://security.alpinelinux.org/vuln/CVE-2024-24787

Plugin Details

Severity: High

ID: 404727

Version: Revision 1.28

Type: Local

Published: 10/31/2023

Updated: 7/2/2026

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

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.81

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.1

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

CVSS Score Source: CVE-2022-41722

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

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

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

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 11/1/2022

Reference Information

CVE: CVE-2022-41716, CVE-2022-41720, CVE-2022-41722, CVE-2024-24787

IAVB: 2022-B-0046-S, 2022-B-0059-S, 2024-B-0052-S