CVE-2025-22868
Unexpected memory consumption during token parsing in golang.org/x/oauth2
In short
An attacker can send a specially crafted token that makes the OAuth2 library consume excessive memory while trying to parse it, potentially causing the application to slow down or crash.
Technical detail
The golang.org/x/oauth2 library fails to properly validate token structure during parsing, allowing an attacker to supply a malformed token that triggers unbounded memory allocation. This denial-of-service condition occurs without authentication requirements, impacting any application using the vulnerable library version.
Summary generated and translated by AI from the official description.
An attacker can pass a malicious malformed token which causes unexpected memory to be consumed during parsing.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected products
golang.org/x/oauth2 · golang.org/x/oauth2/jwsWant to know if your infrastructure is exposed to this?
Talk to TrueHacking →