Golang 1.20.x < 1.20.12, 1.21.x < 1.21.5 Multiple Vulnerabilities

high Nessus Plugin ID 186690


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


The version of Golang running on the remote host is prior to 1.20.12 or 1.21.x prior to 1.21.5. It is, therefore, is affected by multiple vulnerabilities :

- A malicious HTTP sender can use chunk extensions to cause a receiver reading from a request or response body to read many more bytes from the network than are in the body. A malicious HTTP client can further exploit this to cause a server to automatically read a large amount of data (up to about 1GiB) when a handler fails to read the entire body of a request. Chunk extensions are a little-used HTTP feature which permit including additional metadata in a request or response body sent using the chunked encoding. The net/http chunked encoding reader discards this metadata. A sender can exploit this by inserting a large metadata segment with each byte transferred. The chunk reader now produces an error if the ratio of real body to encoded bytes grows too small. (CVE-2023-39326)

- Using go get to fetch a module with the '.git' suffix may unexpectedly fallback to the insecure 'git://' protocol if the module is unavailable via the secure 'https://' and 'git+ssh://' protocols, even if GOINSECURE is not set for said module. This only affects users who are not using the module proxy and are fetching modules directly (i.e. GOPROXY=off). (CVE-2023-45285)

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


Upgrade to Golang Go version 1.20.12, 1.21.5, or later.

See Also


Plugin Details

Severity: High

ID: 186690

File Name: golang_1_21_5.nasl

Version: 1.2

Type: local

Agent: windows

Family: Windows

Published: 12/8/2023

Updated: 12/13/2023

Supported Sensors: Nessus Agent, Nessus

Risk Information


Risk Factor: Medium

Score: 4.4


Risk Factor: High

Base Score: 7.8

Temporal Score: 5.8

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

CVSS Score Source: CVE-2023-45285


Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

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:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:golang:go

Required KB Items: SMB/Registry/Enumerated, installed_sw/Golang Go Programming Language

Exploit Ease: No known exploits are available

Patch Publication Date: 12/5/2023

Vulnerability Publication Date: 12/5/2023

Reference Information

CVE: CVE-2023-39326, CVE-2023-45285

IAVB: 2023-B-0096