CVE-2026-42503
Accidental binding to INADDR_ANY might lead to RCE in golang.org/x/tools/gopls
- State
- Published
- Severity
- 8.8 High
- Published
- May 6, 2026
- Updated
- May 7, 2026
- Reserved
- Apr 28, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 8.8 High | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
Weaknesses
- CWE-1327 Binding to an unrestricted IP address
Affected Products
| Product | Versions |
|---|---|
golang.org/x/tools/goplsgolang.org/x/tools |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.