Skip to main content
EPSS 0.3%top 72%

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

0
High
VulnerabilityCVE-2026-57818cvecve-2026-57818cwe-367
Published: 08/06/2026 (08/06/2026, 11:24:53 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: 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

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

Affected software

Apache Software Foundation

Apache CXF

Affected versions
>=4.2.0 <4.2.3>=4.0.0 <4.1.8>=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.3>=4.0.0 <4.1.8>=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/13/2026, 16:57:51 UTC

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.

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