{"vuln_id":"CVE-2026-97042","aliases":[],"description":"Building a malicious package that uses \"//go:cgo_import_dynamic\" or links against a crafted PE object on Windows could pass unsafe library arguments to the external linker. The compiler only checked the first character of the library name in \"//go:cgo_import_dynamic\" directives and skipped validation in cgo-generated files. In addition, on Windows, \"cmd/cgo\" and \"cmd/link\" did not validate imported DLL names extracted from PE object files before emitting \"-l<name>\" flags for the external linker, allowing a crafted DLL name containing \"..\" path traversal or special characters to reference arbitrary files on disk. The compiler now validates every character of the library name in \"//go:cgo_import_dynamic\" directives (including in cgo-generated files on Windows) and rejects \"..\" path traversal, and \"cmd/cgo\" and \"cmd/link\" reject PE imported DLL names containing path separators, \"..\", \":\", or leading \"-\" or \"@\".","published_at":"2026-11-11T05:19:58.563000Z","modified_at":"2026-11-16T18:17:34.507000Z","first_seen_at":"2026-11-21T19:15:48.026772Z","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-88"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00575,"epss_percentile":0.48359,"nvd_status":"Awaiting Analysis","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-97042"},"matched_alias":null,"items":[{"id":4837,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-97042: Building a malicious package that uses \"//go:cgo_import_dynamic\" or links against a crafted PE object on Windows could pass unsafe library arguments to the ext…","summary":"Building a malicious package that uses \"//go:cgo_import_dynamic\" or links against a crafted PE object on Windows could pass unsafe library arguments to the external linker. The compiler only checked the first character of the library name in \"//go:cgo_import_dynamic\" directives and skipped validation in cgo-generated files. In addition, on Windows, \"cmd/cgo\" and \"cmd/link\" did not validate imported DLL names extracted from PE object files before emitting \"-l\n\" flags for the external linker, allowing a crafted DLL name containing \"..\" path traversal or special characters to reference arbitrary files on disk. The compiler now validates every character of the library name in \"//go:cgo_import_dynamic\" directives (including in cgo-generated files on Windows) and rejects \"..\" path traversal, and \"cmd/cgo\" and \"cmd/link\" reject PE imported DLL names containing path separators, \"..\", \":\", or leading \"-\" or \"@\".\n\nReferences:\nhttps://go.dev/cl/862155\nhttps://go.dev/issue/82568\nhttps://groups.google.com/g/golang-announce/c/iY8TY0wWgbM\nhttps://pkg.go.dev/vuln/GO-2026-6849","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97042","published_at":"2026-11-11T05:19:58.563000Z","updated_at":"2026-11-16T18:17:34.507000Z","fetched_at":"2026-11-21T19:15:31.480204Z","severity":"high","cvss_score":8.8,"epss":0.00575,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"microsoft","product":null,"vuln_id":"CVE-2026-97042","vuln_ids":["CVE-2026-97042"],"tags":["CWE-88"],"cluster_id":5146,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/4837","html":"https://vulnwatch.ve1ve2.com/item/4837"}}]}