Golang < 1.21.10, 1.22.x < 1.22.3 Code Execution

medium Nessus Plugin ID 196900

Synopsis

An application installed on the remote Windows host is affected by a code execution vulnerability.

Description

The version of Golang running on the remote host is prior to 1.21.10 or 1.22.x prior to 1.22.3. It is, therefore, affected by a code execution vulnerability. 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.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Golang Go version 1.21.10, 1.22.3, or later.

See Also

https://pkg.go.dev/vuln/GO-2024-2825

https://groups.google.com/g/golang-announce/c/wkkO4P9stm0

Plugin Details

Severity: Medium

ID: 196900

File Name: golang_GO-2024-2825.nasl

Version: 1.2

Type: local

Agent: macosx

Published: 5/13/2024

Updated: 6/7/2024

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: Medium

Base Score: 5.9

Temporal Score: 4.6

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

CVSS Score Source: CVE-2024-24787

CVSS v3

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 5.8

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

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

Vulnerability Information

CPE: cpe:/a:golang:go

Required KB Items: installed_sw/Golang Go Programming Language

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 5/8/2024

Vulnerability Publication Date: 5/8/2024

Reference Information

CVE: CVE-2024-24787

IAVB: 2024-B-0052-S