CVE-2026-97042 — Building: In addition, on Windows, "cmd/cgo" and "cmd/link" did not validate imported DLL names extracted
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 CVSSv3.1 8.8 (HIGH) · EPSS 14th percentile