CVE-2026-42503: high-severity vulnerability in golang.org/x/tools/gopls
Accidental binding to INADDR_ANY might lead to RCE in golang.org/x/tools/gopls
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
No sign of exploitation. No public exploitation artifact known so far.
gopls (Go language server) can accidentally bind to all network interfaces (0.0.0.0) when using certain debug flags, allowing anyone on the network to execute arbitrary code on the affected machine.
When gopls is invoked with -listen or -port flags without an explicit hostname (e.g., :8080), it defaults to binding 0.0.0.0 instead of localhost, creating an unauthenticated RPC endpoint accessible to the local network. An attacker on the same network can send malicious requests to this exposed endpoint to achieve remote code execution with the privileges of the gopls process.