CVE-2026-42503
JSON

8.8high

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

Severity
8.8high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.35% (higher than 21% of CVEs)
Published
Last changed
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

Product or packageVersionsReported by
golang.org/x/tools/goplsfrom 0.0.0 before 0.22.0CVE List
golang goplsbefore 0.22.0NVD

Classification

CWE-1327

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

gopls por defecto se comunica a través de una tubería. Sin embargo, las banderas -puerto y -listen son compatibles como medios de depuración. Si a -listen se le da un valor sin un host explícito (p. ej. :8080), o se usa -puerto, gopls escuchará en 0.0.0.0. Como resultado, los usuarios podrían inadvertidamente causar que gopls se enlace a 0.0.0.0. Esto puede permitir a una parte maliciosa en la misma red ejecutar código arbitrariamente a través de gopls.

References

https://go.dev/issue/79211issue-tracking, vendor-advisory
https://go.dev/cl/774381patch

Sources

SourceRecordLicence
CVE ListCVE-2026-42503 changed 2026-05-07CVE Terms of Use
NVDCVE-2026-42503 changed 2026-10-26Public domain