HarborGuard / CVE
Back to search
HIGHCVE-2026-42503Published Modified CNA Go

CVE-2026-42503: Accidental binding to INADDR_ANY might lead to RCE in golang.org/x/tools/gopls

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 v3.1
8.8
Severity
HIGH
Fixed in
0.22.0
Affected Products
1

Fix available

0.22.0
Affected packages
  • golang.org/x/tools / golang.org/x/tools/gopls
    < 0.22.0 (from 0.0.0)
CVSS Vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References