Skip to content

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

HighCVSS 8.8 EPSS 0.21%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

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.

Upgrade path

8 packages: 5 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
debian/gopls(Debian 13) = 2:0.16.1+ds-1; = 2:0.21.1+ds-1; = 2:0.21.1+ds-2; = 2:0.22.0+ds-1 +3 more No fix listed No fix yet
ubuntu/gopls(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/gopls(Ubuntu 26.10) All versions No fix listed No fix yet
debian/gopls(Debian 14) < 2:0.22.0+ds-1; = 2:0.16.1+ds-1; = 2:0.21.1+ds-1; = 2:0.21.1+ds-2 2:0.22.0+ds-1 Fixed
golang gopls < 0.22.0 0.22.0 Fixed
golang.org/x/tools/gopls(Go) >= 0.0.0, < 0.22.0 0.22.0 Fixed
redhat/golang1-25-main(Red Hat hummingbird 1) < 1.25.9-1.hum1 1.25.9-1.hum1 Fixed
redhat/golang1-26-main(Red Hat hummingbird 1) < 1.26.2-1.1.hum1 1.26.2-1.1.hum1 Fixed

Affected products

ProductAffected versionsFixed in
golang.org/x/tools/gopls(Go) >= 0.0.0, < 0.22.0 0.22.0
redhat/golang1-25-main(Red Hat:hummingbird:1) < 1.25.9-1.hum1 1.25.9-1.hum1
redhat/golang1-26-main(Red Hat:hummingbird:1) < 1.26.2-1.1.hum1 1.26.2-1.1.hum1
debian/gopls(Debian:13) All versions No fix listed
debian/gopls(Debian:13) = 2:0.16.1+ds-1 No fix listed
debian/gopls(Debian:13) = 2:0.21.1+ds-1 No fix listed
debian/gopls(Debian:13) = 2:0.21.1+ds-2 No fix listed
debian/gopls(Debian:13) = 2:0.22.0+ds-1 No fix listed
debian/gopls(Debian:13) = 2:0.22.0+ds-2 No fix listed
debian/gopls(Debian:13) = 2:0.24.0+ds-1 No fix listed
debian/gopls(Debian:14) < 2:0.22.0+ds-1 2:0.22.0+ds-1
debian/gopls(Debian:14) = 2:0.16.1+ds-1 No fix listed
debian/gopls(Debian:14) = 2:0.21.1+ds-1 No fix listed
debian/gopls(Debian:14) = 2:0.21.1+ds-2 No fix listed
ubuntu/gopls(Ubuntu:26.04) All versions No fix listed
ubuntu/gopls(Ubuntu:26.10) All versions No fix listed
golang gopls < 0.22.0 0.22.0

References