{
  "id": "CVE-2025-22867",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-22867",
  "published_at": "2025-02-06T17:09:56.893Z",
  "title": "Arbitrary code execution during build on darwin in cmd/go",
  "vendor": "Go toolchain",
  "product": "cmd/go",
  "cvss": {
    "score": 7.5,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-77",
  "cvss_by_source": {
    "cisa-adp": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Go toolchain",
        "product": "cmd/go",
        "ranges": [
          "\u003e= 1.24.0-rc.2, \u003c 1.24.0-rc.3"
        ],
        "fixed_in": [
          "1.24.0-rc.3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade cmd/go to 1.24.0-rc.3 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
