CVE-2025-22868: Memory exhaustion in Go OAuth2 JWS token parsing
- Vendor
- Go
CVE-2025-22868 is an excessive memory-consumption vulnerability in the Go OAuth2 library's jws package. Parsing an attacker-supplied malformed token can cause unexpected memory allocation, potentially exhausting available memory and denying service to applications using the affected parser. The vulnerability can be exploited remotely without authentication or user interaction when an application exposes the vulnerable parsing operation to untrusted input.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can exhaust application memory, causing service degradation or denial of service. The vulnerability is rated High, with a CVSS v3.0 base score of 7.5 and high availability impact. No confidentiality or integrity impact is identified.
Mitigation
If you can’t patch tonight, do this now.
Until updates can be deployed, avoid parsing untrusted JWS tokens where operationally feasible. Enforce strict request and token-size limits before parsing, rate-limit token-processing endpoints, and apply process or container memory limits with monitoring and restart handling to reduce denial-of-service impact.
Remediation
Patch, then assume compromise.
Apply vendor updates that incorporate the corrected Go OAuth2 dependency, including updated application binaries and container images. Identified fixed downstream releases include Red Hat OpenTelemetry Collector 0.107.0-7.el9_4, VolSync 0.11.2, and OpenShift Container Platform 4.12.79, 4.14.53, 4.15.52, 4.16.44, 4.17.35, and 4.18.14 for their respective branches. Follow the supported vendor upgrade path. An upstream Go OAuth2 fixed-version boundary is not specified.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2025-22868 exploited in the wild?
- As of Nov 20, 2026, Mallory has no reports of CVE-2025-22868 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-22868?
- As of Nov 20, 2026, Mallory has found no public exploit for CVE-2025-22868.
- Is there a patch for CVE-2025-22868?
- Apply vendor updates that incorporate the corrected Go OAuth2 dependency, including updated application binaries and container images. Identified fixed downstream releases include Red Hat OpenTelemetry Collector 0.107.0-7.el9_4, VolSync 0.11.2, and OpenShift Container Platform 4.12.79, 4.14.53, 4.15.52, 4.16.44, 4.17.35, and 4.18.14 for their respective branches.
- What products are affected by CVE-2025-22868?
- Go Jws.
- How severe is CVE-2025-22868?
- CVE-2025-22868 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 1.0% (63rd percentile) as of Nov 20, 2026.
Recent activity
66 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.