Every CVE Search/ Get API key

CVE-2026-42503

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

8.8 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Adjacent network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

0.21%Up 0.2 points since May 7, 2026
90%50%10%1%

What each source reports

CVE List Score used 8.8

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

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.

Record
CVE-2026-42503
CVSS 3.1
8.8 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-1327
Updated
2026-11-02
EUVDEUVD-2026-27872 8.8

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.

Record
EUVD-2026-27872
CVSS 3.1
8.8 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-9344-f92h-vr44 8.8

gopls by default communicates via pipe. However, -port and -listen flags are supported as means...

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.

Record
GHSA-9344-f92h-vr44
CVSS 3.1
8.8 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-1327
Updated
2026-11-02
NVD 8.8

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.

Record
CVE-2026-42503
CVSS 3.1
8.8 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-1327
Updated
2026-11-02
OSVDEBIAN-CVE-2026-42503 8.8

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.

Record
DEBIAN-CVE-2026-42503
CVSS 3.1
8.8 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2026:7385 8.8

Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

Record
RHSA-2026:7385
CVSS 3.1
8.8 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2026:8291 8.8

Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

Record
RHSA-2026:8291
CVSS 3.1
8.8 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2026-42503 8.8

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.

Record
UBUNTU-CVE-2026-42503
CVSS 3.1
8.8 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
gopls
Debian:13
All versions, plus listed versions
2:0.16.1+ds-12:0.21.1+ds-12:0.21.1+ds-22:0.22.0+ds-12:0.22.0+ds-22:0.24.0+ds-1
None known
gopls
Debian:14
before 2:0.22.0+ds-1, plus listed versions
2:0.16.1+ds-12:0.21.1+ds-12:0.21.1+ds-2
2:0.22.0+ds-1
golang1.25
Red Hat:hummingbird:1
From an advisory covering 38 CVEs
before 0:1.25.9-1.hum1
0:1.25.9-1.hum1
golang1.25-bin
Red Hat:hummingbird:1
From an advisory covering 38 CVEs
before 0:1.25.9-1.hum1
0:1.25.9-1.hum1
golang1.25-docs
Red Hat:hummingbird:1
From an advisory covering 38 CVEs
before 0:1.25.9-1.hum1
0:1.25.9-1.hum1
golang1.25-misc
Red Hat:hummingbird:1
From an advisory covering 38 CVEs
before 0:1.25.9-1.hum1
0:1.25.9-1.hum1
golang1.25-shared
Red Hat:hummingbird:1
From an advisory covering 38 CVEs
before 0:1.25.9-1.hum1
0:1.25.9-1.hum1
golang1.25-src
Red Hat:hummingbird:1
From an advisory covering 38 CVEs
before 0:1.25.9-1.hum1
0:1.25.9-1.hum1
golang1.25-tests
Red Hat:hummingbird:1
From an advisory covering 38 CVEs
before 0:1.25.9-1.hum1
0:1.25.9-1.hum1
golang1.26
Red Hat:hummingbird:1
From an advisory covering 3 CVEs
before 0:1.26.2-1.1.hum1
0:1.26.2-1.1.hum1
Show 9 moreShow less
Affected packages
PackageAffectedFixed
golang1.26-bin
Red Hat:hummingbird:1
From an advisory covering 3 CVEs
before 0:1.26.2-1.1.hum1
0:1.26.2-1.1.hum1
golang1.26-docs
Red Hat:hummingbird:1
From an advisory covering 3 CVEs
before 0:1.26.2-1.1.hum1
0:1.26.2-1.1.hum1
golang1.26-misc
Red Hat:hummingbird:1
From an advisory covering 3 CVEs
before 0:1.26.2-1.1.hum1
0:1.26.2-1.1.hum1
golang1.26-shared
Red Hat:hummingbird:1
From an advisory covering 3 CVEs
before 0:1.26.2-1.1.hum1
0:1.26.2-1.1.hum1
golang1.26-src
Red Hat:hummingbird:1
From an advisory covering 3 CVEs
before 0:1.26.2-1.1.hum1
0:1.26.2-1.1.hum1
golang1.26-tests
Red Hat:hummingbird:1
From an advisory covering 3 CVEs
before 0:1.26.2-1.1.hum1
0:1.26.2-1.1.hum1
gopls
Ubuntu:25.10
All versions, plus listed versions
2:0.16.1+ds-1
None known
gopls
Ubuntu:26.10
All versions, plus listed versions
2:0.16.1+ds-12:0.21.1+ds-22:0.22.0+ds-2
None known
gopls
Ubuntu:26.04:LTS
All versions, plus listed versions
2:0.16.1+ds-1
None known

History

History
RecordedChangedSources
affected, facts
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-42503 is a high vulnerability (CVSS 8.8) in Golang Gopls, published May 6, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.21%, the 11th percentile. Fixed in gopls 2:0.22.0+ds-1.

References

Show 194 moreShow less
This page doesn't list everything

Left out here: 83 references. The JSON record has them.

MoveEnter Open