Golang < 1.26.11 / 1.27.x < 1.27.4 Multiple Vulnerabilities

critical Nessus Plugin ID 380359

Synopsis

An application installed on the remote host is affected by multiple vulnerabilities.

Description

The version of Golang running on the remote host is prior to 1.26.11, or 1.27.x prior to 1.27.4. It is, therefore, affected by multiple vulnerabilities in the Go toolchain and standard library, as referenced in the golang-announce advisory.

- When using GCC, building a malicious package that uses cgo could cause arbitrary command execution at link time via untrusted GCC spec files (specs or *.spec). The go command now rejects -L, -isysroot, and
-Wl,-syslibroot directories that contain GCC spec files. (CVE-2026-97034)

- On Darwin, building a malicious package that uses cgo could cause arbitrary code execution when using the Apple linker due to passing -l to_library in a #cgo LDFLAGS directive, which the Apple linker recombines into -lto_library and which loads an arbitrary LTO plugin dynamic library at link time. (CVE-2026-97036)

- Building a malicious package that uses cgo could cause arbitrary code execution at link time by passing linker script files to the host linker via #cgo LDFLAGS, because split -Wl, flags that consume a following argument accepted a bare second argument without a -Wl, prefix. (CVE-2026-97037)

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.26.11, 1.27.4 or later.

See Also

https://go.dev/doc/devel/release#go1.27.4

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

Plugin Details

Severity: Critical

ID: 380359

File Name: golang_1_26_11_1_27_4.nasl

Version: 1.1

Type: Local

Agent: windows, macosx, unix

Family: Misc.

Published: 11/13/2026

Updated: 11/13/2026

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.9

Percentile: 96.32

CVSS v2

Risk Factor: High

Base Score: 7.5

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

CVSS Score Source: CVE-2026-97034

CVSS v3

Risk Factor: Critical

Base Score: 9.8

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

Vulnerability Information

CPE: cpe:/a:golang:go

Required KB Items: installed_sw/Golang Go Programming Language

Patch Publication Date: 11/10/2026

Vulnerability Publication Date: 11/10/2026

Reference Information

CVE: CVE-2026-97033, CVE-2026-97034, CVE-2026-97035, CVE-2026-97036, CVE-2026-97037, CVE-2026-97038, CVE-2026-97039, CVE-2026-97040, CVE-2026-97041, CVE-2026-97042, CVE-2026-97043, CVE-2026-97054

IAVB: 2026-B-0332