CVE-2025-22868: Unexpected memory consumption during token parsing in golang.org/x/oauth2
Summary We have encountered a security vulnerability being reported by our scanners for Traefik 2.11.22. - https://security.snyk.io/vuln/SNYK-CHAINGUARDLATEST-TRAEFIK33-9403297
Details It seems to target oauth2/jws library.
PoC No steps to replicate this vulnerability
Impact We have a strict control on security and we always try to stay up-to-date with the fixes received for third-party solutions.
Patches
- https://github.com/traefik/traefik/releases/tag/v2.11.24 - https://github.com/traefik/traefik/releases/tag/v3.3.6 - https://github.com/traefik/traefik/releases/tag/v3.4.0-rc2
Other sources
An attacker can pass a malicious malformed token which causes unexpected memory to be consumed during parsing.
— MITRE
Unexpected memory consumption during token parsing in golang.org/x/oauth2
— Microsoft
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
go/github.com/traefik/traefik/v3to a version that resolves this vulnerability.Fixed in 3.4.0-rc2 - Upgrade
Upgrade
go/github.com/traefik/traefik/v2to a version that resolves this vulnerability.Fixed in 2.11.24 - Upgrade
Upgrade
go/github.com/traefik/traefik/v3to a version that resolves this vulnerability.Fixed in 3.3.6 - Upgrade
Upgrade
go/golang.org/x/oauth2to a version that resolves this vulnerability.Fixed in 0.27.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 24.0.9-15 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.9.5-10 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.29.4-11 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.11.2-20 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.8.17-6 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.31.0-5 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 25.0.3-11 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.30.10-2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.14.1-3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.11.4-3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 19.0.4-5 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.7.5-2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.8.20-2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.12.15-2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.9.5-6 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 10.25.1-2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.45.4-8 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.57.0-13 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 17.0.7-5 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 10.25.1-3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.11.1-14 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.28.4-15 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.1.2-8 - Upgrade
Upgrade
traefik/traefikto a version that resolves this vulnerability.Fixed in 2.11.24 - Upgrade
Upgrade
traefik/traefikto a version that resolves this vulnerability.Fixed in 3.3.6 - Upgrade
Upgrade
traefik/traefikto a version that resolves this vulnerability.Fixed in 3.4.0-rc2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch SNYK-CHAINGUARDLATEST-TRAEFIK33-9403297
Event History
Frequently Asked Questions
What is the severity of CVE-2025-22868?
CVE-2025-22868 has been classified as a medium severity vulnerability due to its potential impact on memory consumption during token parsing.
How do I fix CVE-2025-22868?
To fix CVE-2025-22868, it is recommended to update to the latest version of Google OAuth2 that addresses this vulnerability.
What type of attacks can exploit CVE-2025-22868?
CVE-2025-22868 can be exploited through the use of malicious malformed tokens that can lead to unexpected memory consumption.
Which software is affected by CVE-2025-22868?
CVE-2025-22868 specifically affects Google OAuth2 implementations.
What are the potential consequences of CVE-2025-22868?
The potential consequences of CVE-2025-22868 include application crashes or denial of service due to excessive memory usage.