Skip to main content

Apache CXF CVE-2026-57818

| EUVDEUVD-2026-53862 HIGH
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-08-06 apache GHSA-4qr2-3mpc-grqm
8.1
CVSS 3.1 · Vendor: apache
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain valid authorization code via OAuth2 flow
  2. Delivery
    Send concurrent token-exchange requests to /oauth2/token
  3. Exploit
    Requests pass TOCTOU validity check simultaneously
  4. Execution
    Multiple access tokens issued before invalidation
  5. Impact
    Use additional tokens for unauthorized session access

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
Exploitation Conditions

Exploitation requires that the Apache CXF instance be configured as an OAuth2 authorization server using JCacheCodeDataProvider as the authorization code store - deployments using alternative code providers (e.g., database-backed providers) are not affected. The attacker must possess a valid, unredeemed authorization code for the target deployment, obtained through the normal OAuth2 flow, phishing of a redirect URI, CSRF manipulation, or code interception. Exploitation further requires the ability to issue multiple concurrent HTTP requests to the token endpoint within the narrow window between code validation and invalidation. There is no requirement for prior authentication to the CXF service beyond code possession. The race window is bounded by network latency and JCache operation time, making exploitation harder over high-latency connections but feasible on co-located or low-latency attackers.

Impact

No NVD CVSS score has been assigned at time of analysis; the following assessment is independently derived. The vulnerability is network-exploitable but carries High attack complexity due to the inherent timing requirement of a race condition - the attacker must submit multiple concurrent token-exchange requests within a very narrow window. The attacker must already possess a valid authorization code, introducing a prerequisite that limits opportunistic exploitation. EPSS data is unavailable; KEV status is negative and no POC has been published. The practical impact is confidentiality-focused: unauthorized issuance of access tokens means an attacker can impersonate the code holder's session or accumulate tokens for extended unauthorized access. For environments using Apache CXF as an OAuth2 authorization server, this is a meaningful risk because the authorization code grant is the most common OAuth2 flow. However, the race-window constraint and the prerequisite of code possession make mass exploitation unlikely - real-world risk is elevated for targeted attacks where an adversary has already obtained a code via phishing, CSRF, or redirect manipulation.

Exploit ScenarioDerived

An attacker who has legitimately obtained or intercepted a valid OAuth2 authorization code sends a high volume of simultaneous token-exchange POST requests to the CXF token endpoint before the first request completes its invalidation of the code. Because JCache reads and deletes are non-atomic, multiple requests pass the validity check concurrently and each receives a distinct, valid access token. The attacker now holds multiple tokens and can use them across parallel sessions for unauthorized resource access.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 06, 2026

Double-spending of OAuth2 authorization codes in Apache CXF's JCacheCodeDataProvider enables issuance of multiple valid access tokens from a single code. Concurrent requests to the token endpoint during the brief window between code validation and invalidation exploit the TOCTOU race condition (CWE-367), allowing an attacker in possession of a valid authorization code to obtain additional access tokens beyond the one they are entitled to. No public exploit has been identified at time of analysis, and fixed versions are available across all maintained branches.

RemediationAI

Upgrade to Apache CXF 4.2.3, 4.1.8, or 3.6.12, which resolve the race condition by making authorization code redemption atomic. The vendor advisory is available at https://lists.apache.org/thread/7q08mz8bcbosp25wok7gr537zlp15mfz. If an immediate upgrade is not feasible, a compensating control is to replace JCacheCodeDataProvider with a database-backed authorization code store that enforces atomic compare-and-delete semantics (e.g., via SELECT FOR UPDATE or equivalent), which eliminates the TOCTOU window at the persistence layer. Alternatively, placing a distributed lock or serialization layer in front of the token endpoint for code exchanges would prevent concurrent redemption attempts, though this introduces latency and a potential single point of failure. Rate-limiting the token endpoint per client_id and code value can reduce the exploitability window but does not eliminate it.

Affected VersionsENISA

Apache CXF 4.0.0 <4.1.8
Apache CXF 4.2.0 <4.2.3
Apache CXF 0 <3.6.12

Affected Packages

euvd apache_cxf fix: 3.6.12, 4.1.8, 4.2.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Apache CXF (CPE: cpe:2.3:a:apache_software_foundation:apache_cxf:*:*:*:*:*:*:*:*) is a widely-deployed Java framework for building SOAP and REST web services, including OAuth2 authorization server functionality. The JCacheCodeDataProvider component manages authorization code storage and redemption using the JCache (JSR-107) caching API. The root cause is CWE-367 (Time-of-Check Time-of-Use): the check confirming an authorization code is unredeemed and the subsequent invalidation of that code are not performed as an atomic operation. In the OAuth2 authorization code flow, codes must be single-use per RFC 6749 Section 4.1.2. Because JCache operations are non-atomic in the affected implementation, a window exists between the validity check and the deletion where multiple concurrent redemption requests all pass the check before any invalidation occurs, each receiving a distinct, valid access token.

Know when Apache Cxf gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (apache) PRIMARY 8.1 LOW
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 6.5 MEDIUM

Network-exploitable but AC:H due to race window timing; code possession is a prerequisite but not a privilege level; confidentiality high for unauthorized token issuance, integrity low, no availability impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 4.2 MEDIUM

Primary rating from Vendor (apache).

CVSS VectorVendor: apache

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

1
Patch available
Aug 06, 2026 - 13:02 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Medium
widely used Java enterprise web services framework
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Total

Priority Score

20
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +20
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-66909 CRITICAL
9.8 Aug 06

Unsafe deserialization in Apache CXF's JMS transport allows any party able to publish to the service's JMS destination t

CVE-2026-44930 CRITICAL
9.8 May 22

Arbitrary certificate disclosure in Apache CXF's XKMS server lets remote attackers abuse an LDAP injection flaw (CWE-90)

CVE-2026-97468 CRITICAL
9.1 Oct 09

Token validation bypass in Apache CXF's STSTokenValidator and Security Token Service (STS) allows unauthenticated remote

CVE-2026-107938 CRITICAL
9.1 Oct 09

Man-in-the-middle attackers can impersonate any TLS server contacted by Apache CXF's optional Netty-based HTTP client tr

CVE-2026-65432 HIGH
7.5 Aug 06

XML External Entity injection in Apache CXF's WSDL import processing allows attackers who can influence imported WSDL or

CVE-2026-64958 HIGH
7.5 Aug 06

Denial of service persists in Apache CXF due to an incomplete remediation of CVE-2026-50645, allowing unauthenticated ne

CVE-2026-100227 HIGH
7.5 Oct 09

XML signature wrapping in Apache CXF's JAX-RS XML Security module allows remote, unauthenticated attackers to have unsig

CVE-2026-97791 HIGH
7.5 Oct 09

Trust bypass in Apache CXF's STSTokenValidator allows a remote, unauthenticated attacker to have a forged SAML assertion

CVE-2026-78384 HIGH
7.5 Oct 09

A remote, unauthenticated attacker can exhaust server heap memory in Apache CXF by submitting a small (kilobyte-scale) D

CVE-2026-44417 HIGH
7.5 May 22

Remote code execution in Apache CXF (versions before 3.6.11, 4.0.0-4.1.5, and 4.2.0) arises because the fix for CVE-2025

CVE-2026-61466 CRITICAL
9.1 Aug 06

Authorization scope escalation in Apache CXF's OAuth2 Dynamic Client Registration endpoint allows any registering client

CVE-2026-79650 MEDIUM
6.1 Oct 09

Open redirect in Apache CXF's OIDC relying-party component lets remote, unauthenticated attackers steer users to an atta

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy