// For flags

CVE-2025-22868

Unexpected memory consumption during token parsing in golang.org/x/oauth2

Severity Score

7.5
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

Attend
*SSVC
Descriptions

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

A flaw was found in the `golang.org/x/oauth2/jws` package in the token parsing component. This vulnerability is made possible because of the use of `strings.Split(token, ".")` to split JWT tokens, which can lead to excessive memory consumption when processing maliciously crafted tokens with a large number of `.` characters. An attacker could exploit this functionality by sending numerous malformed tokens and can trigger memory exhaustion and a Denial of Service.

VolSync v0.12 general availability release images, which provide enhancements, security fixes, and updated container images. Issues addressed include a denial of service vulnerability.

*Credits: jub0bs
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
Attack Vector
Network
Attack Complexity
Low
Authentication
None
Confidentiality
None
Integrity
None
Availability
Partial
* Common Vulnerability Scoring System
SSVC
  • Decision:Attend
Exploitation
None
Automatable
Yes
Tech. Impact
Partial
* Organization's Worst-case Scenario
Timeline
  • 2025-01-08 CVE Reserved
  • 2025-02-26 CVE Published
  • 2025-02-26 CVE Updated
  • 2025-03-30 EPSS Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-1286: Improper Validation of Syntactic Correctness of Input
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Golang.org/x/oauth2
Search vendor "Golang.org/x/oauth2"
Golang.org/x/oauth2/jws
Search vendor "Golang.org/x/oauth2" for product "Golang.org/x/oauth2/jws"
< 0.27.0
Search vendor "Golang.org/x/oauth2" for product "Golang.org/x/oauth2/jws" and version " < 0.27.0"
en
Affected