Denial of service via unbounded token splitting
Published Feb 26, 2025 · Updated Feb 26, 2025
Denial of service in golang.org/x/oauth2/jws before 0.27.0 allows remote attackers to exhaust memory through a malformed JWS token. The Verify function split the entire attacker-controlled token before checking for exactly three segments, allowing excess periods to force an unbounded result slice. Any application that passes an unauthenticated token to Verify can suffer memory exhaustion and process termination, with no reported confidentiality or integrity impact.
Summary
What happened
Denial of service in golang.org/x/oauth2/jws before 0.27.0 allows remote attackers to exhaust memory through a malformed JWS token. The Verify function split the entire attacker-controlled token before checking for exactly three segments, allowing excess periods to force an unbounded result slice. Any application that passes an unauthenticated token to Verify can suffer memory exhaustion and process termination, with no reported confidentiality or integrity impact.
The record
- CVE
- CVE-2025-22868
- Published
- Feb 26, 2025
- Updated
- Feb 26, 2025
- Vendor
- Product
- golang.org/x/oauth2/jws
- Classifications
- CWE-1286, T1499.004
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Feb 26, 2025CVE publishedPublication date reported by the CVE source.
- Feb 26, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <0.27.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo