PoC Monitor
← All CVEs
CVE-2025-22867published 6 Feb 2025 17:09 UTCData: JSON · API

Go toolchain cmd/go

Arbitrary code execution during build on darwin in cmd/go

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CISA ADP · CWE-77
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Go toolchain cmd/go
  • >= 1.24.0-rc.2, < 1.24.0-rc.3

Fixed in 1.24.0-rc.3

Mitigation

Upgrade cmd/go to 1.24.0-rc.3 or later.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published6 Feb 2025 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.