CVE-2026-42503

published 6 May 2026 · updated 7 May 2026

Accidental binding to INADDR_ANY might lead to RCE in golang.org/x/tools/gopls

8.8HighCVSS 8.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 0.22.0.

gopls by default communicates via pipe. However, -port and -listen flags are supported as means of debugging. If -listen is given a value without an explicit host (e.g. :8080), or -port is used, gopls will listen on 0.0.0.0.  As a result, users might inadvertently cause gopls to bind 0.0.0.0. This can allow a malicious party on the same network to execute code arbitrarily via gopls.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
golang.org/x/tools>=0.0.0 <0.22.00.22.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-42503 severity on Zeptric[![CVE-2026-42503](https://zeptric.io/badge/cve/CVE-2026-42503.svg)](https://zeptric.io/cve/CVE-2026-42503)