Skip to content
Heist/ feed
Back to feed
High

golang-golang-x-oauth2 — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-22868

An attacker can pass a malicious malformed token which causes unexpected memory to be consumed during parsing.

Products
golang-golang-x-oauth2
Affected versions
0.0~git20150527-2, 0.0~git20151116.0.442624c-1, 0.0~git20161103.0.36bc617-4, 0.0~git20170901.d89af98-1, 0.0~git20180207.543e378-1, 0.0~git20190604.0f29369-2, 0.0~git20211104.d3ed0bb-1, 0.15.0-1, 0.27.0-1, 0.4.0-1
Fixed versions
Not specified
CVEs
CVE-2025-22868
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:23 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-22868

core-osv · Original source

Published 26 Feb 2025, 08:14 UTC

An attacker can pass a malicious malformed token which causes unexpected memory to be consumed during parsing.

osv:UBUNTU-CVE-2025-22868

golang-golang-x-oauth2

Fixed versions: Not specified

golang-golang-x-oauth2

Fixed versions: Not specified

golang-golang-x-oauth2

Fixed versions: Not specified

golang-golang-x-oauth2

Fixed versions: Not specified

golang-golang-x-oauth2

Fixed versions: Not specified

golang-golang-x-oauth2

Fixed versions: Not specified

golang-golang-x-oauth2

Fixed versions: Not specified

golang-golang-x-oauth2

Fixed versions: Not specified

Complete source record
{
  "id": "176b66e86a57f5cae084eb1ac000072ca22fe3e092e3314adfcecbe45f454561",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-22868",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-22868",
    "summary": "An attacker can pass a malicious malformed token which causes unexpected memory to be consumed during parsing.",
    "evidence": "osv:UBUNTU-CVE-2025-22868",
    "products": [
      {
        "name": {
          "value": "golang-golang-x-oauth2",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0~git20150527-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.0~git20151116.0.442624c-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-golang-x-oauth2",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0~git20161103.0.36bc617-4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.0~git20170901.d89af98-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.0~git20180207.543e378-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-golang-x-oauth2",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0~git20190604.0f29369-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-golang-x-oauth2",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0~git20190604.0f29369-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.0~git20211104.d3ed0bb-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-golang-x-oauth2",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.15.0-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-golang-x-oauth2",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.27.0-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-golang-x-oauth2",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.27.0-1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-golang-x-oauth2",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.27.0-1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2025-22868",
      "aliases": [
        "UBUNTU-CVE-2025-22868"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-golang-x-oauth2",
            "purl": "pkg:deb/ubuntu/golang-golang-x-oauth2?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "0.0~git20150527-2",
            "0.0~git20151116.0.442624c-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-22868.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-golang-x-oauth2-dev",
                "binary_version": "0.0~git20151116.0.442624c-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-golang-x-oauth2",
            "purl": "pkg:deb/ubuntu/golang-golang-x-oauth2?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "0.0~git20161103.0.36bc617-4",
            "0.0~git20170901.d89af98-1",
            "0.0~git20180207.543e378-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-22868.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-golang-x-oauth2-dev",
                "binary_version": "0.0~git20180207.543e378-1"
              },
              {
                "binary_name": "golang-golang-x-oauth2-google-dev",
                "binary_version": "0.0~git20180207.543e378-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-golang-x-oauth2",
            "purl": "pkg:deb/ubuntu/golang-golang-x-oauth2?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.0~git20190604.0f29369-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-22868.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-golang-x-oauth2-dev",
                "binary_version": "0.0~git20190604.0f29369-2"
              },
              {
                "binary_name": "golang-golang-x-oauth2-google-dev",
                "binary_version": "0.0~git20190604.0f29369-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-golang-x-oauth2",
            "purl": "pkg:deb/ubuntu/golang-golang-x-oauth2?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.0~git20190604.0f29369-2",
            "0.0~git20211104.d3ed0bb-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-22868.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-golang-x-oauth2-dev",
                "binary_version": "0.0~git20211104.d3ed0bb-1"
              },
              {
                "binary_name": "golang-golang-x-oauth2-google-dev",
                "binary_version": "0.0~git20211104.d3ed0bb-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-golang-x-oauth2",
            "purl": "pkg:deb/ubuntu/golang-golang-x-oauth2?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.4.0-1",
            "0.15.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-22868.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-golang-x-oauth2-dev",
                "binary_version": "0.15.0-1"
              },
              {
                "binary_name": "golang-golang-x-oauth2-google-dev",
                "binary_version": "0.15.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-golang-x-oauth2",
            "purl": "pkg:deb/ubuntu/golang-golang-x-oauth2?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.27.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-22868.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-golang-x-oauth2-dev",
                "binary_version": "0.27.0-1"
              },
              {
                "binary_name": "golang-golang-x-oauth2-google-dev",
                "binary_version": "0.27.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-golang-x-oauth2",
            "purl": "pkg:deb/ubuntu/golang-golang-x-oauth2?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.27.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-22868.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-golang-x-oauth2-dev",
                "binary_version": "0.27.0-1"
              },
              {
                "binary_name": "golang-golang-x-oauth2-google-dev",
                "binary_version": "0.27.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-golang-x-oauth2",
            "purl": "pkg:deb/ubuntu/golang-golang-x-oauth2?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.27.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-22868.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-golang-x-oauth2-dev",
                "binary_version": "0.27.0-1"
              },
              {
                "binary_name": "golang-golang-x-oauth2-google-dev",
                "binary_version": "0.27.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:46.700596671Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-22868"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-22868",
        "https://www.cve.org/CVERecord?id=CVE-2025-22868",
        "https://pkg.go.dev/vuln/GO-2025-3488",
        "https://go-review.googlesource.com/c/oauth2/+/652155",
        "https://go.dev/cl/652155",
        "https://go.dev/issue/71490"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-22868",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356240,
  "published_at": "2025-02-26T08:14:00+00:00"
}