On Darwin, building a Go module which contains CGO can trigger arbitrary code execution when using the Apple version of ld, due to usage of the @executable_path, @loader_path, or @rpath special values in a "#cgo LDFLAGS" directive. This issue only affected go1.24rc2.
History

Fri, 07 Feb 2025 14:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-94
References
Metrics threat_severity

None

threat_severity

Important


Thu, 06 Feb 2025 22:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 06 Feb 2025 17:30:00 +0000

Type Values Removed Values Added
Description On Darwin, building a Go module which contains CGO can trigger arbitrary code execution when using the Apple version of ld, due to usage of the @executable_path, @loader_path, or @rpath special values in a "#cgo LDFLAGS" directive. This issue only affected go1.24rc2.
Title Arbitrary code execution during build on darwin in cmd/go
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Go

Published:

Updated: 2025-02-06T21:23:25.105Z

Reserved: 2025-01-08T19:11:42.834Z

Link: CVE-2025-22867

cve-icon Vulnrichment

Updated: 2025-02-06T20:06:42.113Z

cve-icon NVD

Status : Received

Published: 2025-02-06T18:15:32.543

Modified: 2025-02-06T22:15:40.393

Link: CVE-2025-22867

cve-icon Redhat

Severity : Important

Publid Date: 2025-02-06T17:09:56Z

Links: CVE-2025-22867 - Bugzilla