{"vuln_id":"CVE-2026-97033","aliases":[],"description":"Building a malicious package that uses cgo could cause arbitrary code execution at build time through several compiler and linker flags permitted in \"#cgo\" directives. Specifically, \"--sysroot\" in GCC and Clang relocates compiler subprograms, spec files, and CRT startup objects to an attacker-controlled directory; \"-target\" in Clang falls back to executing target helper tools from the current working directory when not found in PATH; \"-isysroot\" and \"-Wl,-syslibroot\" can pass a regular file on disk to GNU ld.bfd, which interprets it as a positional linker script; and \"-x\" permitted specifying arbitrary compiler input languages beyond those supported by cgo. \"--sysroot\" and \"-target\" are now disallowed in \"#cgo\" flags, \"-isysroot\" and \"-Wl,-syslibroot\" are verified not to point to regular files, and \"-x\" is restricted to the C, C++, Objective-C, and assembler languages supported by cgo.","published_at":"2026-11-11T05:19:57.253000Z","modified_at":"2026-11-17T05:18:38.220000Z","first_seen_at":"2026-11-21T19:15:48.026748Z","severity":"high","severity_source":"nvd","cvss_score":8.8,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","cwe":["CWE-77"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00686,"epss_percentile":0.53584,"nvd_status":"Awaiting Analysis","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-97033"},"matched_alias":null,"items":[{"id":4828,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-97033: Building a malicious package that uses cgo could cause arbitrary code execution at build time through several compiler and linker flags permitted in \"#cgo\" dir…","summary":"Building a malicious package that uses cgo could cause arbitrary code execution at build time through several compiler and linker flags permitted in \"#cgo\" directives. Specifically, \"--sysroot\" in GCC and Clang relocates compiler subprograms, spec files, and CRT startup objects to an attacker-controlled directory; \"-target\" in Clang falls back to executing target helper tools from the current working directory when not found in PATH; \"-isysroot\" and \"-Wl,-syslibroot\" can pass a regular file on disk to GNU ld.bfd, which interprets it as a positional linker script; and \"-x\" permitted specifying arbitrary compiler input languages beyond those supported by cgo. \"--sysroot\" and \"-target\" are now disallowed in \"#cgo\" flags, \"-isysroot\" and \"-Wl,-syslibroot\" are verified not to point to regular files, and \"-x\" is restricted to the C, C++, Objective-C, and assembler languages supported by cgo.\n\nReferences:\nhttps://go.dev/cl/862146\nhttps://go.dev/issue/82577\nhttps://groups.google.com/g/golang-announce/c/iY8TY0wWgbM\nhttps://pkg.go.dev/vuln/GO-2026-6858","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97033","published_at":"2026-11-11T05:19:57.253000Z","updated_at":"2026-11-17T05:18:38.220000Z","fetched_at":"2026-11-21T19:15:31.480197Z","severity":"high","cvss_score":8.8,"epss":0.00686,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-97033","vuln_ids":["CVE-2026-97033"],"tags":["CWE-77"],"cluster_id":5137,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/4828","html":"https://vulnwatch.ve1ve2.com/item/4828"}}]}