A vulnerability in the Go programming language's command tool (cmd/go) allows malicious packages using "#cgo pkg-config:" directives to bypass flag sanitization. This could lead to loading untrusted pkg-config ".pc" files or injecting unvalidated compiler and linker flags. The issue arises from overly permissive allowlists for certain pkg-config flags and insufficient checks on flags returned by "pkg-config --cflags". The Go command has been updated to disallow problematic flags and paths and to improve internal linking safety checks.