p PatchFirst

CVE-2026-42503

CVE-2026-42503 · Accidental binding to INADDR_ANY might lead to RCE in golang.org/x/tools/gopls

CVSS 8.8 · High · EPSS 0.2% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="gopls"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • golang.org/x/tools/gopls

    Versions
    • ≥ 0.0.0, < 0.22.0: Affected (semver)

    Update to 0.22.0

  • gopls Debian 13

    Versions
    • 2:0.16.1+ds-1
    • 2:0.21.1+ds-1
    • 2:0.21.1+ds-2
    • 2:0.22.0+ds-1
    • 2:0.22.0+ds-2
    • 2:0.24.0+ds-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • gopls Debian 14

    Versions
    • 2:0.16.1+ds-1
    • 2:0.21.1+ds-1
    • 2:0.21.1+ds-2
    Affected ranges
    • ECOSYSTEM: < 2:0.22.0+ds-1

    Update to 2:0.22.0+ds-1

  • gopls Ubuntu 25.10

    Versions
    • 2:0.16.1+ds-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • gopls Ubuntu 26.10

    Versions
    • 2:0.16.1+ds-1
    • 2:0.21.1+ds-2
    • 2:0.22.0+ds-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • gopls Ubuntu 26.04 LTS

    Versions
    • 2:0.16.1+ds-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →