Untrusted search path in Go programming language - CVE-2024-24787

 

Untrusted search path in Go programming language - CVE-2024-24787

Published: May 9, 2024


Vulnerability identifier: #VU89295
CSH Severity: Medium
CVSS v4 BT: 4.8 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green]
CVE-ID: CVE-2024-24787
CWE-ID: CWE-426
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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

The vulnerability exists due to usage of an untrusted search path in md/go. A remote attacker can trick the victim to build a Go module which contains CGO to trigger arbitrary code execution when using the Apple version of ld, due to usage of the -lto_library flag in a "#cgo LDFLAGS" directive.



Affected software

Go programming language
Oracle Solaris
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Software Development Kit 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Server 15 SP4 LTSS
SUSE Linux Enterprise Desktop 15 SP4 LTSS
Development Tools Module
openSUSE Leap
Consul
Traefik
IBM Watson Discovery for IBM Cloud Pak for Data
go1.21-doc
go1.21
go1.21-race
go1.21-openssl-race
go1.21-openssl-doc
go1.21-openssl
go1.22
go1.22-doc
go1.22-race
go1.22-openssl-debuginfo
go1.22-openssl-race
go1.22-openssl-doc
go1.22-openssl
Storage Copy Data Management
Storage Protect Server
Storage Protect Plus Server

How to mitigate CVE-2024-24787

Install updates from vendor's website.

Go programming language - addressed in versions 1.21.10, 1.22.3
Oracle Solaris - update to 11.4 SRU 71
Consul - update to 1.18.2
Traefik - addressed in versions 2.11.3, 3.0.1
go1.21-doc - addressed in versions 1.21.10-1.33.1, 1.21.10-150000.1.33.1
go1.21 - addressed in versions 1.21.10-1.33.1, 1.21.10-150000.1.33.1
go1.21-race - update to 1.21.10-150000.1.33.1
go1.21-openssl-race - update to 1.21.13.1-150600.16.3.1
go1.21-openssl-doc - update to 1.21.13.1-150600.16.3.1
go1.21-openssl - update to 1.21.13.1-150600.16.3.1
go1.22 - addressed in versions 1.22.3-1.9.1, 1.22.3-150000.1.15.1
go1.22-doc - addressed in versions 1.22.3-1.9.1, 1.22.3-150000.1.15.1
go1.22-race - update to 1.22.3-150000.1.15.1
go1.22-openssl-debuginfo - addressed in versions 1.22.7.1-150000.1.3.1, 1.22.7.1-150600.13.3.1
go1.22-openssl-race - addressed in versions 1.22.7.1-150000.1.3.1, 1.22.7.1-150600.13.3.1
go1.22-openssl-doc - addressed in versions 1.22.7.1-150000.1.3.1, 1.22.7.1-150600.13.3.1
go1.22-openssl - addressed in versions 1.22.7.1-150000.1.3.1, 1.22.7.1-150600.13.3.1
Storage Copy Data Management - update to 2.2.24.0
IBM Watson Discovery for IBM Cloud Pak for Data - addressed in versions 4.8.7, 5.0.1
Storage Protect Server - update to 8.1.24
Storage Protect Plus Server - update to 10.1.16.2

External References

Related Security Bulletins