Accidental binding to INADDR_ANY might lead to RCE in golang.org/x/tools/gopls
Key facts
- Attack vector
- Adjacent network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| golang.org/x/tools | golang.org/x/tools/gopls | 0.0.0 to before 0.22.0 | 0.22.0 | Patch available | CNA |
- golang.org/x/tools/gopls Vendorgolang.org/x/tools Affected 0.0.0 to before 0.22.0 Fixed in 0.22.0 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:golang:gopls:*:*:*:*:*:go:*:* | before 0.22.0 | Vulnerable | Go standard library |
- cpe:2.3:a:golang:gopls:*:*:*:*:*:go:*:* Versions before 0.22.0 Vulnerable ·Go standard library
Remediation
- Fix · CNA golang.org/x/tools/gopls (golang.org/x/tools) Fixed in 0.22.0
Red Hat 2 advisories
- RHSA-2026:8291 Released 2026-04-15 · Red Hat rating ImportantRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images golang1.26-1.26.2-1.1.hum1@aarch64, golang1.26-1.26.2-1.1.hum1@src, golang1.26-1.26.2-1.1.hum1@x86_64 +12
- RHSA-2026:7385 Released 2026-04-10 · Red Hat rating ImportantRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images golang1.25-1.25.9-1.hum1@aarch64, golang1.25-1.25.9-1.hum1@src, golang1.25-1.25.9-1.hum1@x86_64 +12
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Hardened Images | Fixed | RHSA-2026:7385, RHSA-2026:8291 |
Not affected: 1 product
- Red Hat Hardened Images
Timeline
- 2026-10-02 Threatist record created from CVE-2026-42503
- 2026-10-03 Alias added: GHSA-9344-f92h-vr44
- 2026-10-25 Priority changed: MEDIUM → LOW
References
Patch 1
Advisory 1
Sources
- CVE-2026-42503 · CVE Program
- CVE-2026-42503 · NVD
- FIRST EPSS
- GHSA-9344-f92h-vr44 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-42503 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences