SecurityContext

CVE-2026-42503: gopls - Remote Code Execution

  • Cve: CVE-2026-42503
  • Name: gopls - Remote Code Execution
  • 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.
  • Impact: Attackers on the same network can execute arbitrary code remotely via gopls binding to all interfaces.
  • Remediation: Avoid using -port or -listen flags without specifying an explicit host or update to the latest version with a fix.
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00212
  • Epss percentile: 0.11511
  • Assignee: [email protected]
  • Published at: 2026-05-06T17:16:23Z
  • Age in days: 202
  • Modified at: 2026-10-26T19:10:00Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-42503
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, projects total, projects, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-1327Binding to an Unrestricted IP Address

References

UrlSourceTags
https://go.dev/cl/774381nvdPatch
https://go.dev/issue/79211nvdIssue Tracking, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
golang:gopls< 0.22.0nonvd/v1/products/golang/gopls

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts