Skip to content

Vulnerability in Golang

CVE-2026-42503 First seen on SecPulse

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

gopls の -port フラグや host を省略した -listen フラグを使うと、0.0.0.0 で待ち受けてしまう問題が見つかりました。同じネットワーク上の攻撃者が gopls を通じて任意のコードを実行できるおそれがあります。修正版の有無については、最新の情報を確認してください。

What is the problem

goplsのデバッグ用フラグによる不適切なリッスン割り当て

Affected scope

gopls の -port および -listen フラグ

Severity

高いリスク、同一ネットワーク上での任意コード実行の可能性

How to fix

goplsの設定を見直し、ホストを明示的に指定する

Workaround

明示的にローカルホスト(例: 127.0.0.1)を指定してリッスンする

Detection

goplsのフラグ設定を確認し、不適切な設定を修正する

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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.

Source: NIST National Vulnerability Database NVD

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details