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.
Project Subscriptions
No data.
No advisories yet.
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
| Link | Providers |
|---|---|
| https://go.dev/cl/774381 |
|
| https://go.dev/issue/79211 |
|
Wed, 06 May 2026 17:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
cvssV3_1
|
Wed, 06 May 2026 16:45:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Accidental binding to INADDR_ANY might lead to RCE in golang.org/x/tools/gopls | |
| Weaknesses | CWE-1327 | |
| References |
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: Go
Published:
Updated: 2026-05-06T17:08:32.834Z
Reserved: 2026-04-28T00:21:12.792Z
Link: CVE-2026-42503
Updated: 2026-05-06T17:08:25.999Z
Status : Received
Published: 2026-05-06T17:16:23.417
Modified: 2026-05-06T17:16:23.417
Link: CVE-2026-42503
No data.
OpenCVE Enrichment
Updated: 2026-05-06T17:30:08Z