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 を通じて任意のコードを実行できるおそれがあります。修正版の有無については、最新の情報を確認してください。
goplsのデバッグ用フラグによる不適切なリッスン割り当て
gopls の -port および -listen フラグ
高いリスク、同一ネットワーク上での任意コード実行の可能性
goplsの設定を見直し、ホストを明示的に指定する
明示的にローカルホスト(例: 127.0.0.1)を指定してリッスンする
goplsのフラグ設定を確認し、不適切な設定を修正する
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-42503 gopls Fix available
- Ubuntu UBUNTU-CVE-2026-42503 gopls No fixed version in this record
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
- patch security@golang.org
- patch security@golang.org