← Back to CVE Explorer

CVE-2026-42503

Full vulnerability record from the local CVENow database.

Description

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
HIGH
CVSS score
8.8 (v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2026-05-06 17:16:23.417000
Last modified
2026-10-26 19:10:00.163000
View original CVE JSON
{
  "id": "CVE-2026-42503",
  "sourceIdentifier": "[email protected]",
  "published": "2026-05-06T17:16:23.417",
  "lastModified": "2026-10-26T19:10:00.163",
  "vulnStatus": "Analyzed",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "gopls by default communicates via pipe. However, -port and -listen flags are supported as means of debugging.\nIf -listen is given a value without an explicit host (e.g. :8080), or -port is used, gopls will listen on 0.0.0.0. \nAs a result, users might inadvertently cause gopls to bind 0.0.0.0.\nThis can allow a malicious party on the same network to execute code arbitrarily via gopls."
    },
    {
      "lang": "es",
      "value": "gopls por defecto se comunica a través de una tubería. Sin embargo, las banderas -puerto y -listen son compatibles como medios de depuración.\nSi a -listen se le da un valor sin un host explícito (p. ej. :8080), o se usa -puerto, gopls escuchará en 0.0.0.0.\nComo resultado, los usuarios podrían inadvertidamente causar que gopls se enlace a 0.0.0.0.\nEsto puede permitir a una parte maliciosa en la misma red ejecutar código arbitrariamente a través de gopls."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "golang.org/x/tools",
          "product": "golang.org/x/tools/gopls",
          "defaultStatus": "unaffected",
          "collectionURL": "https://pkg.go.dev",
          "packageName": "golang.org/x/tools/gopls",
          "versions": [
            {
              "version": "0.0.0",
              "lessThan": "0.22.0",
              "versionType": "semver",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
          "baseScore": 8.8,
          "baseSeverity": "HIGH",
          "attackVector": "ADJACENT_NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 2.8,
        "impactScore": 5.9
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-05-06T00:00:00+00:00",
          "id": "CVE-2026-42503",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "total"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-1327"
        }
      ]
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "operator": "OR",
          "negate": false,
          "cpeMatch": [
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:golang:gopls:*:*:*:*:*:go:*:*",
              "versionEndExcluding": "0.22.0",
              "matchCriteriaId": "F76C2737-024A-4EA0-BDE4-3A6520098E8E"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://go.dev/cl/774381",
      "source": "[email protected]",
      "tags": [
        "Patch"
      ]
    },
    {
      "url": "https://go.dev/issue/79211",
      "source": "[email protected]",
      "tags": [
        "Issue Tracking",
        "Vendor Advisory"
      ]
    }
  ]
}