CVE-2026-57818
Apache CXF: OAuth2 Authorization Code Replay via TOCTOU in JCacheCodeDataProvider
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.
INFO
Published Date :
Aug. 6, 2026, 12:16 p.m.
Last Modified :
Aug. 6, 2026, 12:16 p.m.
Remotely Exploit :
No
Source :
[email protected]
Solution
- Upgrade to version 4.2.3 or later.
- Upgrade to version 4.1.8 or later.
- Upgrade to version 3.6.12 or later.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-57818.
| URL | Resource |
|---|---|
| https://lists.apache.org/thread/7q08mz8bcbosp25wok7gr537zlp15mfz |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-57818 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-57818
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-57818 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-57818 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by [email protected]
Aug. 06, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'Apache Software Foundation', 'product': 'Apache CXF', 'versions': [{'status': 'affected', 'version': '4.2.0', 'lessThan': '4.2.3', 'versionType': 'semver'}, {'status': 'affected', 'version': '4.0.0', 'lessThan': '4.1.8', 'versionType': 'semver'}, {'status': 'affected', 'version': '0', 'lessThan': '3.6.12', 'versionType': 'semver'}], 'packageName': 'org.apache.cxf:cxf-rt-rs-security-oauth2', 'collectionURL': 'https://repo.maven.apache.org/maven2', 'defaultStatus': 'unaffected'}] 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. Added CWE CWE-367 Added Reference https://lists.apache.org/thread/7q08mz8bcbosp25wok7gr537zlp15mfz