CVE-2026-57818: CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition in Apache Software Foundation Apache CXF
A race condition in JCacheCodeDataProvider allows an attacker to redeem a single authorization code multiple times via concurrent requests, resulting in the issuance of multiple distinct, valid access tokens. Users are recommended to upgrade to versions 4.2.3, 4.1.8 or 3.6.12, which fix this issue.
AI Analysis
Technical Summary
This vulnerability is a Time-of-check Time-of-use (TOCTOU) race condition (CWE-367) in the JCacheCodeDataProvider component of Apache CXF. It allows an attacker to exploit concurrent requests to redeem a single authorization code multiple times, thereby obtaining multiple distinct and valid access tokens. The flaw is addressed by upgrading to Apache CXF versions 4.2.3, 4.1.8, or 3.6.12, which include the necessary fixes to prevent this race condition.
Potential Impact
An attacker can abuse this race condition to redeem one authorization code multiple times, resulting in multiple valid access tokens being issued. This could lead to unauthorized access or privilege escalation depending on how the tokens are used in the environment.
Mitigation Recommendations
A fix is available. Users are advised to upgrade Apache CXF to versions 4.2.3, 4.1.8, or 3.6.12 to resolve this vulnerability. No other mitigation guidance is provided or necessary beyond applying the official updates.
CVE-2026-57818: CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition in Apache Software Foundation Apache CXF
Description
A race condition in JCacheCodeDataProvider allows an attacker to redeem a single authorization code multiple times via concurrent requests, resulting in the issuance of multiple distinct, valid access tokens. Users are recommended to upgrade to versions 4.2.3, 4.1.8 or 3.6.12, which fix this issue.
CVSS v3.1
Score 8.1high
Affected software
pkg:maven/Apache Software Foundation/org.apache.cxf:cxf-rt-rs-security-oauth2Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability is a Time-of-check Time-of-use (TOCTOU) race condition (CWE-367) in the JCacheCodeDataProvider component of Apache CXF. It allows an attacker to exploit concurrent requests to redeem a single authorization code multiple times, thereby obtaining multiple distinct and valid access tokens. The flaw is addressed by upgrading to Apache CXF versions 4.2.3, 4.1.8, or 3.6.12, which include the necessary fixes to prevent this race condition.
Potential Impact
An attacker can abuse this race condition to redeem one authorization code multiple times, resulting in multiple valid access tokens being issued. This could lead to unauthorized access or privilege escalation depending on how the tokens are used in the environment.
Mitigation Recommendations
A fix is available. Users are advised to upgrade Apache CXF to versions 4.2.3, 4.1.8, or 3.6.12 to resolve this vulnerability. No other mitigation guidance is provided or necessary beyond applying the official updates.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-06-25T10:17:41.996Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a74768abf8831d539a9b725
Added to database: 08/06/2026, 11:56:58 UTC
Last enriched: 08/06/2026, 12:17:03 UTC
Last updated: 08/07/2026, 04:40:59 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.