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.
Published: 2026-08-06
Score: 8.1 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A race condition exists in the JCacheCodeDataProvider component of Apache CXF that allows an attacker to redeem a single OAuth2 authorization code more than once by sending concurrent requests. The flaw results in the issuance of multiple distinct, valid access tokens from a single authorization attempt. This allows the attacker to obtain additional privileged access that should have been granted only once, potentially escalating privileges and compromising confidentiality and integrity of protected resources. The vulnerability is a classic time‑of‑check/time‑of‑use (TOCTOU) bug, identified as CWE‑367.

Affected Systems

Apache CXF is the affected product. Versions older than 4.2.3, 4.1.8, and 3.6.12 contain the vulnerability, while those specific patched releases have been issued to fix it. Any deployment using the vulnerable JCacheCodeDataProvider implementation is at risk, regardless of the environment in which Apache CXF is operating.

Risk and Exploitability

The CVSS score is 8.1, and EPSS data is unavailable, but the flaw permits an attacker with the ability to send simultaneous OAuth2 token requests to exploit the race condition. Because the vulnerability provides a straightforward privilege‑escalation path by generating multiple access tokens, the risk to impacted systems is substantial. The vulnerability is not listed in the CISA KEV catalog, suggesting it has not yet become a high‑profile exploit target, though its existence and availability of an unpatched code path mean that interest from malicious actors is likely. The likely attack vector involves initiating authorized requests to the OAuth2 token endpoint that uses the vulnerable JCacheCodeDataProvider implementation.

Generated by OpenCVE AI on August 6, 2026 at 16:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Apache CXF to version 4.2.3, 4.1.8, or 3.6.12, whichever matches your deployment; these releases contain the fix for the race condition.
  • Replace or reconfigure any custom use of JCacheCodeDataProvider within your OAuth2 implementation to ensure only a single redemption per authorization code is allowed.
  • Enforce rate limiting or sequential processing of authorization‑code redemption requests until the patch is applied to reduce the feasibility of simultaneous exploit attempts.

Generated by OpenCVE AI on August 6, 2026 at 16:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 06 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 06 Aug 2026 14:15:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache cxf
Vendors & Products Apache
Apache cxf

Thu, 06 Aug 2026 12:00:00 +0000

Type Values Removed Values Added
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.
Title Apache CXF: OAuth2 Authorization Code Replay via TOCTOU in JCacheCodeDataProvider
Weaknesses CWE-367
References

cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-08-06T14:10:34.571Z

Reserved: 2026-06-25T10:17:41.996Z

Link: CVE-2026-57818

cve-icon Vulnrichment

Updated: 2026-08-06T14:10:22.267Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-06T17:00:11Z

Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition