Skip to content
Heist/ feed
Back to feed
High

gopls — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-42503

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.

Products
gopls
Affected versions
2:0.16.1+ds-1, 2:0.21.1+ds-2, 2:0.22.0+ds-2
Fixed versions
Not specified
CVEs
CVE-2026-42503
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:03 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-42503

core-osv · Original source

Published 6 May 2026, 17:16 UTC

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.

osv:UBUNTU-CVE-2026-42503

gopls

Fixed versions: Not specified

gopls

Fixed versions: Not specified

gopls

Fixed versions: Not specified

Complete source record
{
  "id": "b60b36d4232bd3627d79dbe2688057591d3d8dbd49e922348d7293cefd17cefa",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-42503",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-42503",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-42503",
    "products": [
      {
        "name": {
          "value": "gopls",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2:0.16.1+ds-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "gopls",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2:0.16.1+ds-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2:0.21.1+ds-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2:0.22.0+ds-2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "gopls",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2:0.16.1+ds-1",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-42503",
      "aliases": [
        "UBUNTU-CVE-2026-42503"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gopls",
            "purl": "pkg:deb/ubuntu/gopls?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2:0.16.1+ds-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42503.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "gopls",
                "binary_version": "2:0.16.1+ds-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gopls",
            "purl": "pkg:deb/ubuntu/gopls?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2:0.16.1+ds-1",
            "2:0.21.1+ds-2",
            "2:0.22.0+ds-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42503.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "gopls",
                "binary_version": "2:0.22.0+ds-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gopls",
            "purl": "pkg:deb/ubuntu/gopls?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2:0.16.1+ds-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42503.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "gopls",
                "binary_version": "2:0.16.1+ds-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:05.334652549Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-42503"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-42503",
        "https://www.cve.org/CVERecord?id=CVE-2026-42503"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-42503",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 360298,
  "published_at": "2026-05-06T17:16:00+00:00"
}