Skip to content
OpenAdvisories
High · 8.8 CVE-2026-42503 EUVD-2026-27872GHSA-9344-f92h-vr44

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

Published May 6, 2026 · Updated May 7, 2026 · Assigned by 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.

Affected products

VendorProductAffectedFixed
golang.org/x/tools golang.org/x/tools/gopls 0.0.0 – < 0.22.0 0.22.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 gopls 2:0.22.0+ds-1 —
Debian 13 gopls No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 gopls No fix yet —
Ubuntu 26.04 LTS gopls No fix yet —
Ubuntu 25.10 gopls No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 golang1.25 +6 1.25.9-1.hum1 RHSA-2026:7385
Red Hat Hardened Images 1 golang1.26 +6 1.26.2-1.1.hum1 RHSA-2026:8291

Advisories 2

References