Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify CXF RP operating in OIDC Hybrid Flow
-
DeliveryConfirm integrated IdP omits c_hash in ID tokens
-
ExploitObtain valid authorization code from victim's authentication session
-
ExecutionSubstitute captured code into attacker-controlled OIDC exchange
-
PersistCXF RP accepts code without c_hash binding validation
-
ImpactAttacker establishes authenticated session as victim user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires two simultaneous conditions: first, Apache CXF must be deployed as an OpenID Connect Relying Party using the Hybrid Flow grant type specifically - this is the flow where both an authorization code and ID token are returned from the authorization endpoint in the same redirect response. Second, the Identity Provider integrated with that CXF RP must be non-compliant with OIDC Core 1.0 or misconfigured such that it omits the c_hash claim from issued ID tokens. Exploitation is NOT possible when the CXF RP uses Authorization Code Flow (which does not use c_hash), when the IdP correctly and consistently includes c_hash in all ID tokens, or when the CXF deployment does not use OIDC functionality at all. CVSS PR:N confirms no authentication on the CXF system is required from the attacker's perspective. The IdP misconfiguration is the primary limiting factor: in environments where all integrated IdPs are fully OIDC-compliant, this vulnerability has no viable attack path. |
| Impact | The vendor-assigned CVSS 3.1 score of 8.1 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) reflects a network-exploitable flaw requiring no authentication, but AC:H correctly signals non-trivial exploitation - the attacker must interact with or control a non-compliant IdP that omits c_hash, a specific deployment-side precondition. SSVC assesses exploitation status as 'none' currently, consistent with the absence of a CISA KEV listing and no known public proof-of-concept; however, SSVC simultaneously rates the attack as automatable with total technical impact, indicating that once the IdP precondition is satisfied, the attack can be scripted reliably at scale. The A:H component in the vendor CVSS vector is potentially overstated: Authorization Code Substitution is primarily an authentication-bypass leading to account takeover, with confidentiality and integrity impact being the direct consequences - availability loss is at most indirect. No EPSS score was provided in the source data. The realistic attacker pool is meaningfully constrained by the need for a misconfigured or colluding IdP, but enterprise environments integrating third-party or legacy IdPs may face this condition without awareness. |
| Exploit ScenarioDerived | An attacker who controls or has compromised a non-compliant Identity Provider - or who is positioned to intercept and modify OIDC authorization responses in transit - captures a valid authorization code issued to a victim user during a Hybrid Flow authentication. Because Apache CXF does not validate the c_hash binding between the ID token and the authorization code, the attacker substitutes their captured code into the RP's token exchange request, causing CXF to accept it and establish an authenticated session as the victim. No public exploit code has been identified at time of analysis, but SSVC rates the attack automatable once the required IdP precondition exists. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv4 – Aug 06, 2026
Authorization Code Substitution in Apache CXF's OpenID Connect Relying Party implementation allows remote attackers to hijack authenticated sessions when CXF is deployed in Hybrid Flow mode with a non-compliant or misconfigured Identity Provider that omits the c_hash parameter. Successful exploitation yields full authenticated access equivalent to account takeover, with high confidentiality and integrity impact. No public exploit has been identified at time of analysis, but SSVC classifies the attack as automatable with total technical impact once the prerequisite IdP condition is present.
Earlier versions of this analysis (3)
Authorization Code Substitution in Apache CXF's OpenID Connect Hybrid Flow implementation allows network-based attackers to hijack authenticated sessions when paired with a non-compliant or misconfigured Identity Provider that omits the c_hash parameter. The OIDC Core 1.0 specification mandates c_hash validation by the Relying Party, but affected Apache CXF versions fail to enforce this requirement, permitting an attacker to inject a stolen authorization code and assume a victim's identity. No public exploit or active exploitation (CISA KEV) has been identified, though SSVC rates the attack as automatable with total technical impact across the affected CXF deployment.
Authorization Code Substitution/Injection is possible against Apache CXF applications acting as OpenID Connect Relying Parties (RPs) in the Hybrid Flow because the RP failed to enforce the mandatory c_hash validation when the Identity Provider omitted it. Affected versions span the 3.6.x, 4.0.x/4.1.x, and 4.2.x branches, fixed in 4.2.3, 4.1.8, and 3.6.12. There is no public exploit identified at time of analysis and SSVC records exploitation status as 'none', but CISA's framework flags the flaw as automatable with total technical impact.
Authorization Code Substitution/Injection attacks are possible against Apache CXF when it acts as an OpenID Connect Relying Party (RP) in the Hybrid Flow, because the framework fails to enforce validation of the c_hash parameter as required by the OIDC Core 1.0 specification. Affected deployments are those paired with a non-compliant or misconfigured Identity Provider (IdP) that omits the c_hash claim from the ID token - a gap CXF does not compensate for by rejecting the response. No public exploit code has been identified at time of analysis, and the vulnerability is not listed in the CISA KEV catalog.
RemediationAI
Vendor-released patches are available: upgrade Apache CXF to version 4.2.3 (for 4.2.x deployments), 4.1.8 (for 4.0.x/4.1.x deployments), or 3.6.12 (for 3.x deployments). These releases enforce mandatory c_hash validation as specified by OIDC Core 1.0. Full details are in the Apache security advisory at https://lists.apache.org/thread/pj63c3pf7kkp1xhr53do704fwj3t3htn and the oss-security disclosure at https://seclists.org/oss-sec/2026/q3/473. If an immediate upgrade is not feasible, the most effective compensating control is to disable the OIDC Hybrid Flow and reconfigure both the CXF RP and the Identity Provider to use the Authorization Code Flow exclusively - the pure back-channel token exchange in that flow does not involve c_hash and eliminates the injection vector, though it requires IdP reconfiguration and may affect SSO session behavior. Alternatively, configure the IdP to unconditionally include c_hash in all Hybrid Flow ID tokens and reject flows that omit it at the IdP level, shifting the enforcement upstream; note that this requires control over IdP configuration and does not fix the missing validation in CXF itself.
Affected VersionsENISA
Affected Packages
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 is a widely-deployed open-source Java framework for building SOAP and REST web services, including an OpenID Connect Relying Party (RP) implementation. The vulnerability arises specifically in the OIDC Hybrid Flow, where both an authorization code and an ID token are returned from the authorization endpoint in the same response. The OIDC Core 1.0 specification requires the ID token to include a c_hash claim - a truncated hash of the authorization code - enabling the RP to cryptographically bind the two artifacts and detect any substitution of the code. Apache CXF fails to enforce this binding check (CWE-20: Improper Input Validation) when the integrated Identity Provider omits c_hash, leaving the RP unable to detect that a different, potentially attacker-controlled authorization code has been injected. The affected CPE is cpe:2.3:a:apache_software_foundation:apache_cxf:*:*:*:*:*:*:*:*, encompassing all branches prior to the fixed releases across the 3.x, 4.1.x, and 4.2.x lines.
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
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
AC:H reflects the mandatory non-compliant IdP precondition; A:N because authentication bypass via code substitution does not directly cause availability loss.
Primary rating from Vendor (apache).
CVSS VectorVendor: apache
Lifecycle Timeline
5DescriptionCVE.org
The OpenID Connect Core 1.0 specification mandates that the RP MUST validate the c_hash parameter when operating in the Hybrid Flow. If an Apache CXF RP is integrated with a non-compliant or misconfigured Identity Provider (IdP) that omits the c_hash, the RP becomes vulnerable to Authorization Code Substitution/Injection attacks. Users are recommended to upgrade to versions 4.2.3 or 4.1.8 or 3.6.12, which fix this issue.
Articles & Coverage 1
Executive ViewAI
Apache CXF's OpenID Connect implementation contains an authorization bypass vulnerability (CVE-2026-57817, CVSS 8.1) that enables attackers to hijack authenticated user sessions and assume full account access when Hybrid Flow mode is configured with misconfigured identity providers. Organizations using CXF for authentication face direct account compromise and data exposure risk.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
More in Apache Cxf
View allArbitrary certificate disclosure in Apache CXF's XKMS server lets remote attackers abuse an LDAP injection flaw (CWE-90)
Unsafe deserialization in Apache CXF's JMS transport allows any party able to publish to the service's JMS destination t
Token validation bypass in Apache CXF's STSTokenValidator and Security Token Service (STS) allows unauthenticated remote
Man-in-the-middle attackers can impersonate any TLS server contacted by Apache CXF's optional Netty-based HTTP client tr
XML signature wrapping in Apache CXF's JAX-RS XML Security module allows remote, unauthenticated attackers to have unsig
Trust bypass in Apache CXF's STSTokenValidator allows a remote, unauthenticated attacker to have a forged SAML assertion
A remote, unauthenticated attacker can exhaust server heap memory in Apache CXF by submitting a small (kilobyte-scale) D
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
XML External Entity injection in Apache CXF's WSDL import processing allows attackers who can influence imported WSDL or
Denial of service persists in Apache CXF due to an incomplete remediation of CVE-2026-50645, allowing unauthenticated ne
Authorization scope escalation in Apache CXF's OAuth2 Dynamic Client Registration endpoint allows any registering client
Open redirect in Apache CXF's OIDC relying-party component lets remote, unauthenticated attackers steer users to an atta
EUVD-2026-53855
GHSA-h8f8-97w2-2925
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB