CVE-2026-57818: CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition in Apache Software Foundation Apache CXF
CVE-2026-57818 is a high-severity race condition vulnerability in Apache CXF's JCacheCodeDataProvider component. It allows an attacker to redeem a single authorization code multiple times through concurrent requests, resulting in multiple valid access tokens being issued. This flaw can lead to unauthorized access and potential privilege escalation. Fixed versions 4.2.3, 4.1.8, and 3.6.12 address this issue.
AI Analysis
Technical Summary
This vulnerability is a Time-of-check Time-of-use (TOCTOU) race condition (CWE-367) in Apache CXF's JCacheCodeDataProvider. The flaw permits an attacker to exploit concurrent requests to redeem the same authorization code multiple times, thereby generating multiple distinct valid access tokens. This undermines the intended single-use authorization code mechanism. The issue affects multiple versions of Apache CXF prior to 4.2.3, 4.1.8, and 3.6.12, which include fixes to prevent this race condition.
Potential Impact
Successful exploitation allows an attacker to obtain multiple valid access tokens from a single authorization code, potentially enabling unauthorized access to protected resources and escalating privileges. This compromises the security of authentication flows relying on single-use authorization codes.
Mitigation Recommendations
Users should upgrade Apache CXF to versions 4.2.3, 4.1.8, or 3.6.12 or later, where this race condition vulnerability has been fixed. No other mitigation or workaround is indicated. Patch status is confirmed by the vendor's recommended upgrade versions.
CVE-2026-57818: CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition in Apache Software Foundation Apache CXF
Description
CVE-2026-57818 is a high-severity race condition vulnerability in Apache CXF's JCacheCodeDataProvider component. It allows an attacker to redeem a single authorization code multiple times through concurrent requests, resulting in multiple valid access tokens being issued. This flaw can lead to unauthorized access and potential privilege escalation. Fixed versions 4.2.3, 4.1.8, and 3.6.12 address this issue.
CVSS v3.1
Score 8.1high
Affected software
Apache Software Foundation
Apache CXF
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 Apache CXF's JCacheCodeDataProvider. The flaw permits an attacker to exploit concurrent requests to redeem the same authorization code multiple times, thereby generating multiple distinct valid access tokens. This undermines the intended single-use authorization code mechanism. The issue affects multiple versions of Apache CXF prior to 4.2.3, 4.1.8, and 3.6.12, which include fixes to prevent this race condition.
Potential Impact
Successful exploitation allows an attacker to obtain multiple valid access tokens from a single authorization code, potentially enabling unauthorized access to protected resources and escalating privileges. This compromises the security of authentication flows relying on single-use authorization codes.
Mitigation Recommendations
Users should upgrade Apache CXF to versions 4.2.3, 4.1.8, or 3.6.12 or later, where this race condition vulnerability has been fixed. No other mitigation or workaround is indicated. Patch status is confirmed by the vendor's recommended upgrade versions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-06-25T10:17:41.996Z
- State
- PUBLISHED
Threat ID: 6a74768abf8831d539a9b725
Added to database: 08/06/2026, 11:56:58 UTC
Last enriched: 08/13/2026, 16:57:51 UTC
Last updated: 09/21/2026, 22:01:35 UTC
Views: 35
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.