CVE-2026-50631: CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition in Apache Software Foundation Apache CXF
CVE-2026-50631 is a high-severity race condition vulnerability in Apache CXF's AbstractOAuthDataProvider. It allows concurrent requests using the same refresh token to bypass single-use restrictions and generate multiple valid access tokens when 'recycleRefreshTokens' is set to false. This flaw can enable attackers to replay a leaked refresh token concurrently, potentially compromising access control. Fixed versions include 4.2.2, 4.1.7, and 3.6.12.
AI Analysis
Technical Summary
This vulnerability is a Time-of-check Time-of-use (TOCTOU) race condition in Apache CXF's AbstractOAuthDataProvider component. When the configuration parameter 'recycleRefreshTokens' is false, concurrent requests using the same refresh token can bypass the intended single-use semantics, resulting in multiple valid access tokens being issued from a single refresh token. This can lead to unauthorized access if a refresh token is leaked and replayed concurrently by multiple attackers or threads. The issue is resolved in Apache CXF versions 4.2.2, 4.1.7, and 3.6.12.
Potential Impact
An attacker with access to a leaked refresh token can exploit this race condition to generate multiple valid access tokens concurrently, potentially escalating access privileges or maintaining unauthorized access. The vulnerability impacts confidentiality and integrity but does not affect availability. The CVSS v3.1 base score is 7.4 (High), reflecting network attack vector, high complexity, no privileges required, no user interaction, and high impact on confidentiality and integrity.
Mitigation Recommendations
Users are strongly advised to upgrade Apache CXF to versions 4.2.2, 4.1.7, or 3.6.12 where this vulnerability is fixed. No other official remediation or temporary fixes are indicated. Patch status is confirmed by the vendor advisory stating fixed versions. Until upgraded, avoid configurations with 'recycleRefreshTokens' set to false if possible.
CVE-2026-50631: CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition in Apache Software Foundation Apache CXF
Description
CVE-2026-50631 is a high-severity race condition vulnerability in Apache CXF's AbstractOAuthDataProvider. It allows concurrent requests using the same refresh token to bypass single-use restrictions and generate multiple valid access tokens when 'recycleRefreshTokens' is set to false. This flaw can enable attackers to replay a leaked refresh token concurrently, potentially compromising access control. Fixed versions include 4.2.2, 4.1.7, and 3.6.12.
CVSS v3.1
Score 7.4high
Affected software
Apache Software Foundation
Apache CXF
pkg:maven/Apache Software Foundation/org.apache.cxf:cxf-rt-rs-security-oauth2Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability is a Time-of-check Time-of-use (TOCTOU) race condition in Apache CXF's AbstractOAuthDataProvider component. When the configuration parameter 'recycleRefreshTokens' is false, concurrent requests using the same refresh token can bypass the intended single-use semantics, resulting in multiple valid access tokens being issued from a single refresh token. This can lead to unauthorized access if a refresh token is leaked and replayed concurrently by multiple attackers or threads. The issue is resolved in Apache CXF versions 4.2.2, 4.1.7, and 3.6.12.
Potential Impact
An attacker with access to a leaked refresh token can exploit this race condition to generate multiple valid access tokens concurrently, potentially escalating access privileges or maintaining unauthorized access. The vulnerability impacts confidentiality and integrity but does not affect availability. The CVSS v3.1 base score is 7.4 (High), reflecting network attack vector, high complexity, no privileges required, no user interaction, and high impact on confidentiality and integrity.
Mitigation Recommendations
Users are strongly advised to upgrade Apache CXF to versions 4.2.2, 4.1.7, or 3.6.12 where this vulnerability is fixed. No other official remediation or temporary fixes are indicated. Patch status is confirmed by the vendor advisory stating fixed versions. Until upgraded, avoid configurations with 'recycleRefreshTokens' set to false if possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-06-05T11:02:05.432Z
- State
- PUBLISHED
Threat ID: 6a2bd75fe617e2d83448bffa
Added to database: 06/12/2026, 09:54:39 UTC
Last enriched: 08/14/2026, 16:23:43 UTC
Last updated: 09/14/2026, 10:01:31 UTC
Views: 112
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.