Apache CXF: OAuth2: TOCTOU Race Condition in Refresh Token Processing
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in CXF 3.6.12, CXF 4.1.7, CXF 4.2.2 and 3 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Apache | CXF | <3.6.12, >=4.0.0 <4.1.7, >=4.2.0 <4.2.2 | 3.6.12, 4.1.7, 4.2.2 |
| Apache Software Foundation | <3.6.12, >=4.0.0 <4.1.7, >=4.2.0 <4.2.2 | 3.6.12, 4.1.7, 4.2.2 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Apache, strongest first
Embed
A live severity badge for an advisory, README or ticket