Skip to main content
← All vulnerabilities
CVE-2026-42503

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.22.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  2. CVE published
  3. Record last updated

Affected versions

  • golang.org/x/tools/gopls

    From 0.0.0 · fixed in 0.22.0

References 2

go.dev