CVE-2026-50631: Apache CXF: OAuth2: TOCTOU Race Condition in Refresh Token Processing
Vulnerability summary
CVE-2026-50631 is a high (CVSS 7.4) vulnerability in apache software foundation apache cxf. EPSS estimates a 0.27% chance of exploitation in the next 30 days, higher than 21% of scored vulnerabilities.
Severe, CVSS 7.4 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 12-06-2026PublishedVulnerability first disclosed.
- 07-08-2026Last modifiedVulnerability information updated.
Description
A race condition in AbstractOAuthDataProvider allows concurrent requests using the same Refresh Token to bypass single-use semantics and generate multiple valid Access Tokens, when 'recycleRefreshTokens' is set to false. A leaked refresh token can be replayed concurrently by multiple attackers or threads. Users are recommended to upgrade to versions 4.2.2 or 4.1.7 or 3.6.12, which fixes this issue.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · MavenEcosystem advisory · calculated7.4HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- NVDNIST7.4HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS trend
Probability
0.27%
Chance of exploitation in the next 30 days
Percentile
21%
Versus all other CVEs
30-day change
Decrease -0.02 pp
From 0.29% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Apache1 product
- cxf< 4.1.7 | < 3.6.12 | ≥ 4.0.0, < 4.1.7 | ≥ 4.2.0, < 4.2.2
Apache software foundation1 product
- apache cxf≥ 4.2.0, < 4.2.2 | ≥ 4.0.0, < 4.1.7 | < 3.6.12
Org.apache.cxf1 product
- cxf-rt-rs-security-oauth2≥ 4.2.0, < 4.2.2 | < 4.1.7
3 vendors · 3 products
References
4 links- github.com/apache/cxfPACKAGE