CVE-2026-50631: Apache CXF: OAuth2: TOCTOU Race Condition in Refresh Token Processing

Published Jun 11, 2026
·
Updated

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.

Affected Software

3 affected components
Apache Apache CXF<4.2.2, <4.1.7
Apache CXF<4.1.7
Apache CXF>=4.2.0<4.2.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.2.2
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.1.7
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.6.12
  4. Compensating control

    If upgrade is not immediately possible, mitigate the TOCTOU race condition in Apache CXF OAuth2 refresh token processing by ensuring 'recycleRefreshTokens' is not set to false (i.e., do not allow concurrent reuse of the same Refresh Token).

Event History

Jun 12, 2026
CVE Published
via MITRE·08:59 AM
Data Sourced
via MITRE·08:59 AM
DescriptionWeakness
Data Sourced
via NVD·10:16 AM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-50631?

CVE-2026-50631 has a high severity rating of 7.4 according to the CVSS v3.1.

2

How do I fix CVE-2026-50631?

To mitigate CVE-2026-50631, ensure that the 'recycleRefreshTokens' setting is enabled to prevent the reuse of refresh tokens.

3

What types of applications are affected by CVE-2026-50631?

CVE-2026-50631 affects applications utilizing Apache CXF for OAuth2 implementations with improper refresh token handling.

4

What vulnerabilities are introduced by CVE-2026-50631?

CVE-2026-50631 introduces vulnerabilities allowing concurrent requests to bypass refresh token single-use requirements, enabling token replay attacks.

5

When was CVE-2026-50631 published?

CVE-2026-50631 was published on June 11, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203