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.
Metrics
Affected Vendors & Products
References
| Link | Providers |
|---|---|
| https://go.dev/cl/774381 |
|
| https://go.dev/issue/79211 |
|
History
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 |
|
Status: PUBLISHED
Assigner: Go
Published: 2026-05-06T16:20:01.428Z
Updated: 2026-05-07T03:55:49.730Z
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.
ReportizFlow