GHSA-83r6-96m8-r52p
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain leaked refresh token
-
DeliveryIdentify CXF OAuth /token endpoint
-
ExploitFire concurrent refresh_token grant requests
-
ExecutionWin TOCTOU race in AbstractOAuthDataProvider
-
PersistReceive multiple valid access tokens
-
ImpactReplay tokens against protected resource APIs
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
|
| Exploitation Conditions | Requires (1) the target deployment to expose Apache CXF's cxf-rt-rs-security-oauth2 authorization-server endpoints, (2) the non-default configuration 'recycleRefreshTokens=false' on the AbstractOAuthDataProvider, and (3) the attacker to already possess a valid, unexpired refresh token belonging to a victim - the bug does not let an attacker forge or guess refresh tokens. Exploitation is further limited by the timing window of the race (CVSS AC:H), so success rate depends on server load and request scheduling; no user interaction and no server-side authentication beyond the leaked refresh token are needed once the prerequisites are met. |
| Impact | Signals diverge sharply. CVSS 3.1 7.4 (AV:N/AC:H/PR:N/UI:N/C:H/I:H/A:N) reflects network reachability and high confidentiality/integrity impact, while AC:H acknowledges the timing window and the precondition that the attacker already holds a refresh token. EPSS at 0.02% and SSVC 'Exploitation: none / Automatable: no' indicate this is not a mass-exploitation candidate, and the issue is absent from CISA KEV. Net judgment: this is a credible post-compromise / token-theft amplifier rather than an internet-spray bug - prioritize it for deployments that (a) actually run cxf-rs-security-oauth2 as an authorization server and (b) have explicitly disabled refresh-token recycling. The Information Disclosure tag is somewhat misleading; the practical impact is unauthorized session extension and possible privilege/scope abuse, not direct data exfiltration from CXF itself. |
| Exploit ScenarioDerived | An attacker who has obtained a victim's refresh token (e.g., via a logged proxy, a compromised mobile device backup, or a leaked client log) fires two or more simultaneous POST /token grant_type=refresh_token requests to the CXF authorization endpoint from parallel threads. Because the check-then-issue path is not atomic, multiple requests pass validation before any marks the refresh token consumed, and the attacker walks away with several independently valid access tokens that can be used in parallel or distributed to collaborators. No public exploit identified at time of analysis, but the race is trivial to script with any concurrent HTTP client once a refresh token is in hand. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 12, 2026
Refresh token replay in Apache CXF's OAuth2 provider lets remote attackers concurrently exchange a single leaked refresh token for multiple valid access tokens, breaking the single-use property defenders rely on. The flaw lives in AbstractOAuthDataProvider and only manifests when deployments set 'recycleRefreshTokens' to false. No public exploit identified at time of analysis, and EPSS sits at 0.02% (4th percentile), but SSVC scores technical impact as 'total' due to the OAuth trust implications.
Earlier versions of this analysis (2)
Refresh token race condition in Apache CXF's AbstractOAuthDataProvider allows concurrent replay of a single refresh token to mint multiple valid access tokens when 'recycleRefreshTokens' is set to false, affecting versions before 4.2.2 and 4.1.7. A remote attacker holding a leaked refresh token can fire parallel requests to bypass single-use semantics and obtain several access tokens, expanding the blast radius of a stolen credential. No public exploit identified at time of analysis and EPSS probability is very low (0.02%), but CISA SSVC rates the technical impact as total.
OAuth2 refresh token handling in Apache CXF's AbstractOAuthDataProvider is broken by a TOCTOU race condition that defeats single-use refresh token semantics. When 'recycleRefreshTokens' is explicitly set to false, concurrent token-exchange requests bearing the same refresh token can all pass the invalidation check before any single request commits the used-state update, causing the server to issue multiple distinct valid access tokens from one refresh token. This affects cxf-rt-rs-security-oauth2 versions 4.2.0-4.2.1 and all 4.1.x releases prior to 4.1.7. No public exploit has been identified at time of analysis and no active exploitation is confirmed.
RemediationAI
Vendor-released patch: upgrade to Apache CXF 4.2.2 (for the 4.2.x line) or 4.1.7 (for the 4.1.x line), per the project advisory at https://cxf.apache.org/ and the oss-security thread https://seclists.org/oss-sec/2026/q2/891. As an interim compensating control where upgrade is blocked, set recycleRefreshTokens=true so refresh tokens are rotated on each successful exchange - this closes the observable race window but breaks any client flow that relies on long-lived refresh tokens across rotations and will invalidate cached tokens in mobile/SPA clients on next refresh. Additional mitigations worth pairing: shorten refresh-token TTL on the authorization server to limit replay value, enforce refresh-token binding to client_id/IP where the deployment supports it, and add server-side detection of duplicate refresh_token uses within a short window (typical OAuth refresh-rotation breach-detection pattern) so a successful race triggers immediate revocation of the entire token family.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Apache CXF is a widely deployed open-source services framework that ships an OAuth 2.0 provider implementation (cxf-rt-rs-security-oauth2). AbstractOAuthDataProvider is the base class responsible for issuing and invalidating tokens. CWE-367 (Time-of-check Time-of-use) applies because the token-refresh code path validates the refresh token and then mints a new access token without an atomic guard, so two concurrent /token requests presenting the same refresh_token can both pass the check before either invalidates it. When recycleRefreshTokens=false the original refresh token is intentionally preserved across rotations, widening the window in which the race is observable and exploitable.
Know when Cxf gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Network-reachable OAuth endpoint (AV:N); attacker needs a leaked refresh token and must win a timing race (AC:H); server requires no authentication beyond the stolen token (PR:N); duplicate access tokens enable session theft (C:H/I:H), no availability impact.
Primary rating from Vendor (CNA).
CVSS VectorVendor
Lifecycle Timeline
5Description PRE-NVD
Executive ViewAI
Apache CXF's OAuth2 provider contains a refresh token replay vulnerability that allows a single compromised token to be exchanged for multiple valid access tokens, with no public exploit identified at time of analysis. Organizations using CXF with OAuth2 and 'recycleRefreshTokens' disabled face elevated risk of prolonged unauthorized access if tokens are leaked. This vulnerability compromises a foundational OAuth security property-single-use token consumption-that limits attacker dwell time.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
A SSRF vulnerability using the Aegis DataBinding in versions of Apache CXF before 4.0.4, 3.6.3 and 3.5.8 allows an attac
The streaming XML parser in Apache CXF 2.5.x before 2.5.10, 2.6.x before 2.6.7, and 2.7.x before 2.7.4 allows remote att
Apache CXF 2.4.x before 2.4.8, 2.5.x before 2.5.4, and 2.6.x before 2.6.1, when a Supporting Token specifies a child WS-
The WS-SP UsernameToken policy in Apache CXF 2.4.5 and 2.5.1 allows remote attackers to bypass authentication by sending
Authentication bypass in Apache CXF's OAuthRequestFilter affects versions prior to 4.1.7 and 4.2.0-4.2.1, where an inver
XML External Entity (XXE) processing in Apache CXF versions prior to 4.1.7 and 4.2.0-4.2.1 allows remote attackers to tr
A SSRF vulnerability in parsing the href attribute of XOP:Include in MTOM requests in versions of Apache CXF before 3.5.
Apache CXF before 3.3.4 and 3.2.11 provides all of the components that are required to build a fully fledged OpenId Conn
All versions of Apache Santuario - XML Security for Java prior to 2.2.3 and 2.1.7 are vulnerable to an issue where the "
Token confusion in Apache CXF's JwtAccessTokenValidator allows an attacker holding a valid JWT issued for one Resource S
A SSRF vulnerability in WADL service description in versions of Apache CXF before 4.0.5, 3.6.4 and 3.5.9 allows an attac
The OAuth2 Hawk and JOSE MAC Validation code in Apache CXF prior to 3.0.13 and 3.1.x prior to 3.1.10 is not using a cons
EUVD-2026-36399
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB