Vulnerability · Published May 6, 2026 · Assigned by Go

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

High 8.8

In plain English

A high-severity security flaw in golang.org/x/tools/gopls from golang.org/x/tools. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 12% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.2%top 88.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:13goplsno fix listedDEBIAN-CVE-2026-42503
Debian:14gopls2:0.22.0+ds-1DEBIAN-CVE-2026-42503
Ubuntu:25.10goplsno fix listedUBUNTU-CVE-2026-42503
Ubuntu:26.04:LTSgoplsno fix listedUBUNTU-CVE-2026-42503
Ubuntu:26.10goplsno fix listedUBUNTU-CVE-2026-42503

Affected products (as reported)

VendorProductVersions
golang.org/x/tools golang.org/x/tools/gopls 0.0.0 – before 0.22.0

Weakness: CWE-1327 · Vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References