CVEfocus › CVE database › CVE-2025-22868

CVE-2025-22868Unexpected memory consumption during token parsing in golang.org/x/oauth2

CVSS 7.5 HighEPSS 1.0% (higher than 63% of CVEs)Published 2025-02-26Updated 2025-02-26Assigner: Go

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

CWE-1286

What to do

Fixed builds are available from Debian, Go, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
8Fix pending
3Under investigation
6Will not fix
24Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10golang-golang-x-oauth2Fix pendingUBUNTU-CVE-2025-22868
Ubuntu 26.04golang-golang-x-oauth2Under investigationUBUNTU-CVE-2025-22868
Ubuntu 26.04google-guest-agentNot affected
vulnerable_code_not_present
Ubuntu 25.10golang-golang-x-oauth2Will not fix
google-guest-agent contains a vendored copy of golang-golang-x-oauth2 google-guest-agent doesn't appear to use the vulnerable function
UBUNTU-CVE-2025-22868
Ubuntu 25.10google-guest-agentNot affected
vulnerable_code_not_present
Ubuntu 24.04golang-golang-x-oauth2Under investigationUBUNTU-CVE-2025-22868
Ubuntu 24.04google-guest-agentNot affected
vulnerable_code_not_present
Ubuntu 22.04golang-golang-x-oauth2Under investigationUBUNTU-CVE-2025-22868
Ubuntu 22.04google-guest-agentNot affected
vulnerable_code_not_present
Ubuntu 20.04golang-golang-x-oauth2Will not fix
google-guest-agent contains a vendored copy of golang-golang-x-oauth2 google-guest-agent doesn't appear to use the vulnerable function
UBUNTU-CVE-2025-22868
Ubuntu 18.04golang-golang-x-oauth2Fix pendingUBUNTU-CVE-2025-22868
Ubuntu 16.04golang-golang-x-oauth2Fix pendingUBUNTU-CVE-2025-22868
Debian 14golang-golang-x-oauth2Fixed0.27.0-1DEBIAN-CVE-2025-22868
Debian 13golang-golang-x-oauth2Fixed0.27.0-1DEBIAN-CVE-2025-22868
Debian 12golang-golang-x-oauth2Fix pendingDEBIAN-CVE-2025-22868
Red Hat Enterprise Linux 10opentelemetry-collectorFixed0:0.107.0-9.el10_0RHSA-2025:7479
Red Hat Enterprise Linux 9grafanaNot affected
Red Hat Enterprise Linux 9grafana-selinuxNot affected
Red Hat Enterprise Linux 9ignitionWill not fix
Will not fix
Red Hat Enterprise Linux 9ignition-edgeWill not fix
Will not fix
Red Hat Enterprise Linux 9ignition-grubWill not fix
Will not fix
Red Hat Enterprise Linux 9ignition-validateWill not fix
Will not fix
Red Hat Enterprise Linux 9opentelemetry-collectorFixed0:0.107.0-8.el9_6RHSA-2025:3335
Red Hat Enterprise Linux 9osbuild-composerNot affected
Red Hat Enterprise Linux 9osbuild-composer-coreNot affected
Red Hat Enterprise Linux 9osbuild-composer-dnf-jsonNot affected
Red Hat Enterprise Linux 9osbuild-composer-workerNot affected
Red Hat Enterprise Linux 8grafanaNot affected
Red Hat Enterprise Linux 8grafana-azure-monitorNot affected
Red Hat Enterprise Linux 8grafana-cloudwatchNot affected
Red Hat Enterprise Linux 8grafana-elasticsearchNot affected
Red Hat Enterprise Linux 8grafana-graphiteNot affected
Red Hat Enterprise Linux 8grafana-influxdbNot affected
Red Hat Enterprise Linux 8grafana-lokiNot affected
Red Hat Enterprise Linux 8grafana-mssqlNot affected
Red Hat Enterprise Linux 8grafana-mysqlNot affected
Red Hat Enterprise Linux 8grafana-opentsdbNot affected
Red Hat Enterprise Linux 8grafana-postgresNot affected
Red Hat Enterprise Linux 8grafana-prometheusNot affected
Red Hat Enterprise Linux 8grafana-selinuxNot affected
Red Hat Enterprise Linux 8grafana-stackdriverNot affected
Red Hat Enterprise Linux 8osbuild-composerFix pending
Affected
Red Hat Enterprise Linux 8osbuild-composer-coreFix pending
Affected
Red Hat Enterprise Linux 8osbuild-composer-dnf-jsonFix pending
Affected
Red Hat Enterprise Linux 8osbuild-composer-workerFix pending
Affected
Rocky Linux 10opentelemetry-collectorFixed0:0.107.0-9.el10_0RLSA-2025:7479
Go librarygolang.org/x/oauth2Fixed0.27.0GO-2025-3488

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.