CVE-2025-22867
published high CVSS 3.1 · 7.5Arbitrary code execution during build on darwin in cmd/go
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Go toolchain | — | cmd/go1.24.0-rc.2 to < 1.24.0-rc.3 · Other versions: unaffected · Platforms: darwin | Affected | Not stated | Go |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP6 | go1.24aarch64 | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | SLE-15-SP6 | go1.24ppc64le | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | SLE-15-SP6 | go1.24s390x | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | SLE-15-SP6 | go1.24x86_64 | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | SLE-15-SP6 | go1.24-docaarch64 | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
Show 41 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP6 | go1.24-docppc64le | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | SLE-15-SP6 | go1.24-docs390x | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | SLE-15-SP6 | go1.24-docx86_64 | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | SLE-15-SP6 | go1.24-raceaarch64 | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | SLE-15-SP6 | go1.24-raceppc64le | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | SLE-15-SP6 | go1.24-races390x | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | SLE-15-SP6 | go1.24-racex86_64 | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | SLE-15-SP6 | govulncheck-vulndbnoarch | Advisory build | 0.0.20250207T224745-150000.1.32.1 | SUSE-SU-2025:0429-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | go1.24aarch64 | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | go1.24ppc64le | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | go1.24s390x | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | go1.24x86_64 | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | go1.24-docaarch64 | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | go1.24-docppc64le | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | go1.24-docs390x | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | go1.24-docx86_64 | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | go1.24-raceaarch64 | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | go1.24-raceppc64le | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | go1.24-races390x | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | go1.24-racex86_64 | Advisory build | 1.24rc3-150000.1.6.1 | SUSE-SU-2025:0431-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | govulncheck-vulndbnoarch | Advisory build | 0.0.20250207T224745-150000.1.32.1 | SUSE-SU-2025:0429-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.24aarch64 | Advisory build | 1.24rc3-1.1 | OPENSUSE-SU-2025:14735-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.24ppc64le | Advisory build | 1.24rc3-1.1 | OPENSUSE-SU-2025:14735-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.24s390x | Advisory build | 1.24rc3-1.1 | OPENSUSE-SU-2025:14735-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.24x86_64 | Advisory build | 1.24rc3-1.1 | OPENSUSE-SU-2025:14735-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.24-docaarch64 | Advisory build | 1.24rc3-1.1 | OPENSUSE-SU-2025:14735-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.24-docppc64le | Advisory build | 1.24rc3-1.1 | OPENSUSE-SU-2025:14735-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.24-docs390x | Advisory build | 1.24rc3-1.1 | OPENSUSE-SU-2025:14735-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.24-docx86_64 | Advisory build | 1.24rc3-1.1 | OPENSUSE-SU-2025:14735-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.24-libstdaarch64 | Advisory build | 1.24rc3-1.1 | OPENSUSE-SU-2025:14735-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.24-libstdppc64le | Advisory build | 1.24rc3-1.1 | OPENSUSE-SU-2025:14735-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.24-libstds390x | Advisory build | 1.24rc3-1.1 | OPENSUSE-SU-2025:14735-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.24-libstdx86_64 | Advisory build | 1.24rc3-1.1 | OPENSUSE-SU-2025:14735-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.24-raceaarch64 | Advisory build | 1.24rc3-1.1 | OPENSUSE-SU-2025:14735-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.24-raceppc64le | Advisory build | 1.24rc3-1.1 | OPENSUSE-SU-2025:14735-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.24-races390x | Advisory build | 1.24rc3-1.1 | OPENSUSE-SU-2025:14735-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.24-racex86_64 | Advisory build | 1.24rc3-1.1 | OPENSUSE-SU-2025:14735-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbaarch64 | Advisory build | 0.0.20250207T224745-1.1 | OPENSUSE-SU-2025:14754-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbppc64le | Advisory build | 0.0.20250207T224745-1.1 | OPENSUSE-SU-2025:14754-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbs390x | Advisory build | 0.0.20250207T224745-1.1 | OPENSUSE-SU-2025:14754-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbx86_64 | Advisory build | 0.0.20250207T224745-1.1 | OPENSUSE-SU-2025:14754-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Go toolchain | cmd/go | 1.24.0-rc.2 to < 1.24.0-rc.3 (affected · semver)Default: unaffected | Go · cna |
Weaknesses
1- CWE-77 CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
References
4Provider assertions
2Go · cna
Arbitrary code execution during build on darwin in cmd/go
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 08858b8e0e0152c4f79b903bc320e22312548cffe758d51386b5f034f115d36d
- Ingested
- 23 Sep 2026, 08:40:21 UTC
- Source record
- Official CVE record