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

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-05-06T16:20:01.428Z
- Modified: 2026-10-26T19:10:00.163Z
- Weaknesses: CWE-1327
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- golang.org/x/tools/gopls: from 0.0.0 before 0.22.0
- golang gopls: before 0.22.0

## References

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

## Sources

- CVE List: [CVE-2026-42503](https://www.cve.org/CVERecord?id=CVE-2026-42503), CVE Terms of Use, modified 2026-05-07
- NVD: [CVE-2026-42503](https://nvd.nist.gov/vuln/detail/CVE-2026-42503), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-42503 · Whole record: https://cve.day/CVE-2026-42503.json · Rebuilt by cve.day 2026-11-25T22:59:20.780Z
