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 or 3.6.12, 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 Apache CXF's AbstractOAuthDataProvider permits concurrent requests to reuse the same refresh token when the recycleRefreshTokens flag is false, bypassing the intended single-use semantics. The flaw allows a leaked refresh token to be replayed by multiple attackers or threads, producing several valid access tokens from a single credential. This enables token replay attacks and can grant broader authorization than intended. Users are advised to upgrade to versions 4.2.2, 4.1.7, or 3.6.12 to resolve the issue.

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 race condition exists in Apache CXF's AbstractOAuthDataProvider and can be triggered when recycleRefreshTokens is disabled. Once a refresh token is leaked or observed, an attacker can send concurrent requests that reuse the same token, resulting in multiple valid access tokens. The CVSS score of 7.4 reflects a high severity, but the EPSS score of <1% indicates a low likelihood of exploitation. Although not listed in KEV, the flaw could allow widespread unauthorized access. Generated tokens can be used to access protected resources until revoked or expired.

Generated by OpenCVE AI on August 7, 2026 at 13:24 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 August 7, 2026 at 13:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 07 Aug 2026 12: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. 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.

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-08-07T12:43:22.536Z

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 : Modified

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

Modified: 2026-08-07T13:16:51.410

Link: CVE-2026-50631

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-07T13:30:03Z

Weaknesses
  • CWE-367

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