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 package | Versions | Reported by |
|---|---|---|
| golang.org/x/tools/gopls | from 0.0.0 before 0.22.0 | CVE List |
| golang gopls | before 0.22.0 | NVD |
Classification
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/79211 | issue-tracking, vendor-advisory | |
| https://go.dev/cl/774381 | patch | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42503 changed 2026-05-07 | CVE Terms of Use |
| NVD | CVE-2026-42503 changed 2026-10-26 | Public domain |