Skip to main content

Apache CXF CVE-2026-57817

| EUVDEUVD-2026-53855 HIGH
Improper Input Validation (CWE-20)
2026-08-06 apache GHSA-h8f8-97w2-2925
8.1
CVSS 3.1 · Vendor: apache
View

Attack ChainAIDerived

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

  1. Access
    Identify CXF RP operating in OIDC Hybrid Flow
  2. Delivery
    Confirm integrated IdP omits c_hash in ID tokens
  3. Exploit
    Obtain valid authorization code from victim's authentication session
  4. Execution
    Substitute captured code into attacker-controlled OIDC exchange
  5. Persist
    CXF RP accepts code without c_hash binding validation
  6. Impact
    Attacker 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.

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

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

Alert me

AnalysisAIv4 – 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)
v3 Aug 06, 2026 - 22:45 cvss changed CVSS 8.1

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.

v2 Aug 06, 2026 - 16:28 cvss changed CVSS 9.8

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.

v1 Aug 06, 2026 - 11:38

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

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

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

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

AC:H reflects the mandatory non-compliant IdP precondition; A:N because authentication bypass via code substitution does not directly cause availability loss.

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

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

5
Severity Changed
Aug 06, 2026 - 22:22 NVD
CRITICAL HIGH
CVSS changed
Aug 06, 2026 - 22:22 NVD
9.8 (CRITICAL) 8.1 (HIGH)
Severity Changed
Aug 06, 2026 - 16:22 NVD
LOW CRITICAL
CVSS changed
Aug 06, 2026 - 16:22 NVD
9.8 (LOW) 9.8 (CRITICAL)
Patch available
Aug 06, 2026 - 12:01 EUVD

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

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 64% exploitable
Prevalence
Medium
widely-used enterprise Java web services and API framework
Data Quality
4 sources
Confidence: Medium
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.4%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
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

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

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