CVE-2026-42503

Accidental binding to INADDR_ANY might lead to RCE in golang.org/x/tools/gopls

Published May 6, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:golang:gopls:*:*:*:*:*:go:*:*
Type Values Removed Values Added
First Time appeared Golang
Golang gopls
Vendors & Products Golang
Golang gopls
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

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
Weaknesses

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
May 7, 2026, 3:55 AM
Reserved
Apr 28, 2026, 12:21 AM
Status
Analyzed
Published
May 6, 2026, 5:16 PM
Modified
Oct 26, 2026, 7:10 PM