Amazon Linux 2 : golang (ALAS-2025-2795)

medium Nessus Plugin ID 233376

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

The version of golang installed on the remote host is prior to 1.23.7-1. It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS2-2025-2795 advisory.

net/http: sensitive headers incorrectly sent after cross-domain redirect

The HTTP client drops sensitive headers after following a cross-domain redirect.For example, a request to a.com/ containing an Authorization header which isredirected to b.com/ will not send that header to b.com.

In the event that the client received a subsequent same-domain redirect, however,the sensitive headers would be restored. For example, a chain of redirects froma.com/, to b.com/1, and finally to b.com/2 would incorrectly send the Authorizationheader to b.com/2.

Thanks to Kyle Seely for reporting this issue. (CVE-2024-45336)

crypto/x509: usage of IPv6 zone IDs can bypass URI name constraints

A certificate with a URI which has a IPv6 address with a zone ID mayincorrectly satisfy a URI name constraint that applies to the certificatechain.

Certificates containing URIs are not permitted in the web PKI, so thisonly affects users of private PKIs which make use of URIs.

Thanks to Juho Forsen of Mattermost for reporting this issue. (CVE-2024-45341)

NOTE: https://groups.google.com/g/golang-announce/c/4t3lzH3I0eI/m/b42ImqrBAQAJNOTE:
https://github.com/golang/go/issues/71984NOTE: Fixed by:
https://github.com/golang/go/commit/334de7982f8ec959c74470dd709ceedfd6dbd50a (go1.24.1)NOTE: Fixed by:
https://github.com/golang/go/commit/25177ecde0922c50753c043579d17828b7ee88e7 (go1.23.7) (CVE-2025-22870)

Tenable has extracted the preceding description block directly from the tested product security advisory.

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

Solution

Run 'yum update golang' to update your system.

See Also

https://alas.aws.amazon.com/AL2/ALAS-2025-2795.html

https://alas.aws.amazon.com/cve/html/CVE-2024-45336.html

https://alas.aws.amazon.com/cve/html/CVE-2024-45341.html

https://alas.aws.amazon.com/cve/html/CVE-2025-22870.html

https://alas.aws.amazon.com/faqs.html

Plugin Details

Severity: Medium

ID: 233376

File Name: al2_ALAS-2025-2795.nasl

Version: 1.1

Type: local

Agent: unix

Published: 3/27/2025

Updated: 3/27/2025

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.6

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 4.7

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

CVSS Score Source: CVE-2024-45341

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.3

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

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

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:golang-bin, p-cpe:/a:amazon:linux:golang-src, cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:golang-tests, p-cpe:/a:amazon:linux:golang, p-cpe:/a:amazon:linux:golang-shared, p-cpe:/a:amazon:linux:golang-docs, p-cpe:/a:amazon:linux:golang-misc

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Ease: No known exploits are available

Patch Publication Date: 3/13/2025

Vulnerability Publication Date: 1/21/2025

Reference Information

CVE: CVE-2024-45336, CVE-2024-45341, CVE-2025-22870

IAVB: 2025-B-0010-S