cve.bz

CVE-2026-42503 golang gopls: Binding to an Unrestricted IP Address

8.8 highEPSS 0.2%Fix available

High (8.8) in golang gopls. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 12th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-05-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1327 Binding to an Unrestricted IP Address
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-42503 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42503?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42503?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42503 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
golang.org/x/tools/goplsfrom 0.0.0 before 0.22.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13goplsno fix listedDEBIAN-CVE-2026-42503
Debian14gopls2:0.22.0+ds-1DEBIAN-CVE-2026-42503
Ubuntu25.10, 26.04:LTS, 26.10goplsno fix listedUBUNTU-CVE-2026-42503
Red Hathummingbird:1golang1.25, golang1.25-bin, golang1.25-src and 4 more0:1.25.9-1.hum1RHSA-2026:7385
Red Hathummingbird:1golang1.26, golang1.26-bin, golang1.26-src and 4 more0:1.26.2-1.1.hum1RHSA-2026:8291

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

gopls is vulnerable to arbitrary code execution when debug flags cause it to listen on all interfaces. Using -listen without an explicit host or the -port flag binds 0.0.0.0, so any attacker on the same network can reach the gopls debug endpoint and run code in the developer context. Red Hat exposure is in hummingbird golang1.25 and golang1.26 toolchains and the trivy component that bundles gopls for Go language support.

ProductPackageStateAdvisory
Red Hat Hardened Imagesgolang1-25-main-1.25.9-1.hum1Fixed 2026-04-10RHSA-2026:7385
Red Hat Hardened Imagesgolang1-26-main-1.26.2-1.1.hum1Fixed 2026-04-15RHSA-2026:8291
Red Hat Hardened ImagestrivyNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-42503.

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON