CVE-2026-42503
published high CVSS 3.1 · 8.8Accidental binding to INADDR_ANY might lead to RCE in golang.org/x/tools/gopls
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| golang.org/x/tools | — | golang.org/x/tools/gopls0.0.0 to < 0.22.0 · Other versions: unaffected | Affected | Not stated | Go |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| golang.org/x/tools | golang.org/x/tools/gopls | 0.0.0 to < 0.22.0 (affected · semver)Default: unaffected | Go · cna |
Weaknesses
1- CWE-1327 CWE-1327 Binding to an unrestricted IP address
References
2Provider assertions
2Go · cna
Accidental binding to INADDR_ANY might lead to RCE in golang.org/x/tools/gopls
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2e4ccd8aa57972c3d17fa7d5a60d5f736f071a7fcb01765b5da2d444c24ce042
- Ingested
- 23 Sep 2026, 09:14:19 UTC
- Source record
- Official CVE record