Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

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

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/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<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/06/2026, 12:17:03 UTC

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.

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