Skip to main content

Apache CXF CVE-2026-50631

| EUVDEUVD-2026-36399 HIGH
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
7.4
CVSS 3.1 · Vendor
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain leaked refresh token
  2. Delivery
    Identify CXF OAuth /token endpoint
  3. Exploit
    Fire concurrent refresh_token grant requests
  4. Execution
    Win TOCTOU race in AbstractOAuthDataProvider
  5. Persist
    Receive multiple valid access tokens
  6. Impact
    Replay 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – 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)
v2 Jun 12, 2026 - 15:28 cvss changed CVSS 7.4

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.

v1 Jun 11, 2026 - 18:20

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

Apache CXF 4.2.0 <4.2.2
Apache CXF 0 <4.1.7

Affected Packages

maven org.apache.cxf:cxf-rt-rs-security-oauth2 fix: 4.1.7, 4.2.2
euvd apache_cxf fix: 4.1.7, 4.2.2

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

Vendor (CNA) PRIMARY 7.4 LOW
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 7.4 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Red Hat 6.8 MEDIUM

Primary rating from Vendor (CNA).

CVSS VectorVendor

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

5
Analysis Updated
Jun 12, 2026 - 15:29 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 12, 2026 - 15:28 vuln.today
v2 - CVSS changed
Severity Changed
Jun 12, 2026 - 15:22 NVD
CRITICAL HIGH
CVSS changed
Jun 12, 2026 - 15:22 NVD
7.4 (CRITICAL) 7.4 (HIGH)
Patch available
Jun 12, 2026 - 11:01 EUVD

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

20
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +20
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Cxf

View all
CVE-2024-28752 CRITICAL POC
9.3 Mar 15

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

CVE-2013-2160 MEDIUM POC
5.0 Aug 19

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

CVE-2012-2379 CRITICAL
10.0 Jan 03

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-

CVE-2012-0803 CRITICAL
9.8 Aug 08

The WS-SP UsernameToken policy in Apache CXF 2.4.5 and 2.5.1 allows remote attackers to bypass authentication by sending

CVE-2026-50628 CRITICAL
9.8 Jun 11

Authentication bypass in Apache CXF's OAuthRequestFilter affects versions prior to 4.1.7 and 4.2.0-4.2.1, where an inver

CVE-2026-49875 CRITICAL
9.8 Jun 11

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

CVE-2022-46364 CRITICAL
9.8 Dec 13

A SSRF vulnerability in parsing the href attribute of XOP:Include in MTOM requests in versions of Apache CXF before 3.5.

CVE-2019-12419 CRITICAL
9.8 Nov 06

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

CVE-2021-40690 HIGH
7.5 Sep 19

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 "

CVE-2026-50627 CRITICAL
9.1 Jun 11

Token confusion in Apache CXF's JwtAccessTokenValidator allows an attacker holding a valid JWT issued for one Resource S

CVE-2024-29736 CRITICAL
9.1 Jul 19

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

CVE-2017-3156 HIGH
7.5 Aug 10

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

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy