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, which fixes this issue.
Published: 2026-06-12
Score: 7.4 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A race condition in the OAuth2 data provider allows concurrent requests that reuse the same refresh token when the recycleRefreshTokens flag is set to false. The flaw negates the intended single-use mechanism, permitting a refreshed token to be replayed by multiple attackers or threads, resulting in the generation of several valid access tokens from a single credential. This exposes the system to token replay attacks and potentially escalates privilege if the access tokens grant broad authorization.

Affected Systems

The vulnerability applies to versions of Apache CXF released before the public fix versions. Apache CXF users should upgrade to at least 4.2.2 or 4.1.7, the releases that contain a patch for this race condition. Versions running on older releases with recycleRefreshTokens disabled remain susceptible.

Risk and Exploitability

The flaw can be exploited once a refresh token is leaked or observed, and it can be abused by any entity capable of sending concurrent requests, thereby creating multiple session tokens. The CVSS score of 7.4 signifies a high severity, while the EPSS score of less than 1% indicates a low probability of exploitation. Although it is not listed in KEV, the potential for widespread unauthorized access makes it a material concern. Attackers can leverage the generated tokens to access protected resources until token revocation or expiration occurs. The flaw is local to token handling logic but can be triggered via remote OAuth flow if the attacker can supply the leaked token.

Generated by OpenCVE AI on June 12, 2026 at 15:30 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Apache CXF to version 4.2.2 or later, or to 4.1.7 for older branches. This patch removes the race condition and restores single-use semantics for refresh tokens.
  • Configure or ensure that recycleRefreshTokens is enabled, or replace any custom data provider that does not enforce single-use refresh tokens, to prevent concurrent reuse.
  • Deploy monitoring to detect unusually high rates of access token issuance for a single refresh token, and investigate any anomalies promptly to mitigate potential abuse.

Generated by OpenCVE AI on June 12, 2026 at 15:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 12 Jun 2026 19:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:apache:cxf:*:*:*:*:*:*:*:*

Fri, 12 Jun 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 12 Jun 2026 12:45:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache cxf
Vendors & Products Apache
Apache cxf

Fri, 12 Jun 2026 10:30:00 +0000

Type Values Removed Values Added
References

Fri, 12 Jun 2026 09:45:00 +0000

Type Values Removed Values Added
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, which fixes this issue.
Title Apache CXF: OAuth2: TOCTOU Race Condition in Refresh Token Processing
Weaknesses CWE-367
References

cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-06-12T14:04:22.866Z

Reserved: 2026-06-05T11:02:05.432Z

Link: CVE-2026-50631

cve-icon Vulnrichment

Updated: 2026-06-12T09:28:09.644Z

cve-icon NVD

Status : Analyzed

Published: 2026-06-12T10:16:23.070

Modified: 2026-06-12T19:03:45.180

Link: CVE-2026-50631

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-12T15:45:09Z

Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition