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.
Metrics
CVSS 3.1 8.8/10
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| golang.org/x/tools | golang.org/x/tools/gopls | >= 0.0.0, < 0.22.0 |
References
- https://go.dev/cl/774381Patch
- https://go.dev/issue/79211Issue Tracking, Vendor Advisory
Timeline
- Published
- May 6, 2026
- Last modified
- Oct 26, 2026
- NVD status
- Analyzed