Skip to main content
EPSS 0.3%top 79%

CVE-2026-50631: CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition in Apache Software Foundation Apache CXF

0
High
VulnerabilityCVE-2026-50631cvecve-2026-50631cwe-367gcve
Published: 06/12/2026 (06/12/2026, 08:59:40 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache CXF

Description

CVE-2026-50631 is a high-severity race condition vulnerability in Apache CXF's AbstractOAuthDataProvider. It allows concurrent requests using the same refresh token to bypass single-use restrictions and generate multiple valid access tokens when 'recycleRefreshTokens' is set to false. This flaw can enable attackers to replay a leaked refresh token concurrently, potentially compromising access control. Fixed versions include 4.2.2, 4.1.7, and 3.6.12.

CVSS v3.1

Score 7.4high

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected software

Apache Software Foundation

Apache CXF

Affected versions
>=4.2.0 <4.2.2>=4.0.0 <4.1.7>=0 <3.6.12
Apache Software Foundation/org.apache.cxf:cxf-rt-rs-security-oauth2
pkg:maven/Apache Software Foundation/org.apache.cxf:cxf-rt-rs-security-oauth2
Affected versions
>=4.2.0 <4.2.2>=4.0.0 <4.1.7>=0 <3.6.12

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/14/2026, 16:23:43 UTC

Technical Analysis

This vulnerability is a Time-of-check Time-of-use (TOCTOU) race condition in Apache CXF's AbstractOAuthDataProvider component. When the configuration parameter 'recycleRefreshTokens' is false, concurrent requests using the same refresh token can bypass the intended single-use semantics, resulting in multiple valid access tokens being issued from a single refresh token. This can lead to unauthorized access if a refresh token is leaked and replayed concurrently by multiple attackers or threads. The issue is resolved in Apache CXF versions 4.2.2, 4.1.7, and 3.6.12.

Potential Impact

An attacker with access to a leaked refresh token can exploit this race condition to generate multiple valid access tokens concurrently, potentially escalating access privileges or maintaining unauthorized access. The vulnerability impacts confidentiality and integrity but does not affect availability. The CVSS v3.1 base score is 7.4 (High), reflecting network attack vector, high complexity, no privileges required, no user interaction, and high impact on confidentiality and integrity.

Mitigation Recommendations

Users are strongly advised to upgrade Apache CXF to versions 4.2.2, 4.1.7, or 3.6.12 where this vulnerability is fixed. No other official remediation or temporary fixes are indicated. Patch status is confirmed by the vendor advisory stating fixed versions. Until upgraded, avoid configurations with 'recycleRefreshTokens' set to false if possible.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
apache
Date Reserved
2026-06-05T11:02:05.432Z
State
PUBLISHED

Threat ID: 6a2bd75fe617e2d83448bffa

Added to database: 06/12/2026, 09:54:39 UTC

Last enriched: 08/14/2026, 16:23:43 UTC

Last updated: 09/14/2026, 10:01:31 UTC

Views: 112

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses