Golang < 1.19.9 / 1.20.x < 1.20.4 Multiple Vulnerabilities

critical Nessus Plugin ID 175129

Synopsis

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

Description

The version of Golang Go installed on the remote host is affected by multiple vulnerabilities the html/template component:

- Angle brackets (<>) are not considered dangerous characters when inserted into CSS contexts. Templates containing multiple actions separated by a '/' character could result in unexpectedly closing the CSS context and allowing for injection of unexpected HMTL, if executed with untrusted input. (CVE-2023-24539)

- Not all valid JavaScript whitespace characters are considered to be whitespace. Templates containing other whitespace characters in JavaScript contexts that also contain actions may not be properly sanitized during execution. (CVE-2023-24540)

- Templates containing actions in unquoted HTML attributes executed with empty input could result in output that would have unexpected results when parsed due to HTML normalization rules. This may allow injection of arbitrary attributes into tags. (CVE-2023-29400)

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.19.9, 1.20.4, or later.

See Also

https://github.com/golang/go/issues/59720

https://github.com/golang/go/issues/59721

https://github.com/golang/go/issues/59722

Plugin Details

Severity: Critical

ID: 175129

File Name: golang_1_20_4.nasl

Version: 1.6

Type: local

Agent: windows

Family: Windows

Published: 5/5/2023

Updated: 12/8/2023

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.4

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

CVSS Score Source: CVE-2023-24540

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

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

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

Vulnerability Information

CPE: cpe:/a:golang:go

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

Exploit Ease: No known exploits are available

Patch Publication Date: 5/2/2023

Vulnerability Publication Date: 5/2/2023

Reference Information

CVE: CVE-2023-24539, CVE-2023-24540, CVE-2023-29400

IAVB: 2023-B-0029-S, 2023-B-0080-S