Amazon Linux AMI update for golang



Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2023-29402
CWE-ID CWE-94
Exploitation vector Network
Public exploit N/A
Vulnerable software
Amazon Linux AMI
Operating systems & Components / Operating system

golang
Operating systems & Components / Operating system package or component

Vendor Amazon Web Services

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Code Injection

EUVDB-ID: #VU77528

Risk: Medium

CVSSv4.0: 4.5 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2023-29402

CWE-ID: CWE-94 - Improper Control of Generation of Code ('Code Injection')

Exploit availability: No

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to improper input validation within the cgo go command when building code that contains directories with newline characters in their names. A remote attacker can pass specially crafted input to the cgo command at build time and potentially compromise the system.

Modules which are retrieved using the go command, i.e. via "go get", are not affected (modules retrieved using GOPATH-mode, i.e. GO111MODULE=off, may be affected).

Mitigation

Update the affected packages:

i686:
    golang-bin-1.18.6-1.45.amzn1.i686
    golang-1.18.6-1.45.amzn1.i686
    golang-shared-1.18.6-1.45.amzn1.i686

noarch:
    golang-src-1.18.6-1.45.amzn1.noarch
    golang-tests-1.18.6-1.45.amzn1.noarch
    golang-docs-1.18.6-1.45.amzn1.noarch
    golang-misc-1.18.6-1.45.amzn1.noarch

src:
    golang-1.18.6-1.45.amzn1.src

x86_64:
    golang-1.18.6-1.45.amzn1.x86_64
    golang-shared-1.18.6-1.45.amzn1.x86_64
    golang-bin-1.18.6-1.45.amzn1.x86_64
    golang-race-1.18.6-1.45.amzn1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

golang: before 1.18.6-1.45

CPE2.3 External links

https://alas.aws.amazon.com/ALAS-2023-1784.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###