#VU77530 Code Injection in Go programming language - CVE-2023-29404


Vulnerability identifier: #VU77530

Vulnerability risk: Medium

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

CVE-ID: CVE-2023-29404

CWE-ID: CWE-94

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Go programming language
Universal components / Libraries / Scripting languages

Vendor: Google

Description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists within Go runtime when running "go get" on a malicious module, or when running any other
command which builds untrusted code.A remote attacker can inject and execute arbitrary code on the target system at build time when using cgo.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Go programming language: 1.0 - 1.0.3, 1.1 - 1.19.9, 1.2 - 1.20.4, 1.3 - 1.3.3, 1.4 - 1.4.3, 1.5 - 1.5.4, 1.6 - 1.6.4, 1.7 - 1.7.6, 1.8 - 1.8.7, 1.9 - 1.9.7


External links
https://go.dev/issue/60305
https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ
https://pkg.go.dev/vuln/GO-2023-1841
https://go.dev/cl/501225


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.


Latest bulletins with this vulnerability