Vulnerability · Published May 6, 2026 · Assigned by Go
CVE-2026-42503Accidental binding to INADDR_ANY might lead to RCE in golang.org/x/tools/gopls
High 8.8
In plain English
A high-severity security flaw in golang.org/x/tools/gopls from golang.org/x/tools. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 12% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | gopls | no fix listed | DEBIAN-CVE-2026-42503 |
| Debian:14 | gopls | 2:0.22.0+ds-1 | DEBIAN-CVE-2026-42503 |
| Ubuntu:25.10 | gopls | no fix listed | UBUNTU-CVE-2026-42503 |
| Ubuntu:26.04:LTS | gopls | no fix listed | UBUNTU-CVE-2026-42503 |
| Ubuntu:26.10 | gopls | no fix listed | UBUNTU-CVE-2026-42503 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| golang.org/x/tools | golang.org/x/tools/gopls | 0.0.0 – before 0.22.0 |
Weakness: CWE-1327 · Vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H