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

Impact

The OpenID Connect Core 1.0 specification mandates that the RP MUST validate the c_hash parameter when operating in the Hybrid Flow. Because Apache CXF does not enforce this check, a non‑compliant or misconfigured IdP that omits the c_hash can lead the RP to accept a substituted authorization code. This flaw permits an attacker to replace the legitimate code with one they control, thereby gaining access with the victim's privileges. The weakness is a classic input validation error (CWE‑20).

Affected Systems

The affected product is Apache CXF from the Apache Software Foundation. Versions older than 4.2.3, 4.1.8, and 3.6.12 are vulnerable. The recommendation is to upgrade to any of those fixed releases, or apply supplementary verification of the c_hash if backward compatibility constraints exist.

Risk and Exploitability

The exact CVSS score is not publicly listed, and the EPSS score is unavailable. The vulnerability is not included in CISA’s KEV catalog. The risk manifests when an IdP fails to provide the required c_hash, which can happen due to misconfiguration or intentional suppression. An attacker could subvert the authorization process by injecting a malicious code, leading to unauthorized session acquisition. The exploit requires the ability to manipulate the auth flow, likely through a compromised or poorly configured IdP.

Generated by OpenCVE AI on August 6, 2026 at 12:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Apache CXF to release 4.2.3, 4.1.8, or 3.6.12.
  • Verify that the IdP configuration produces and sends the c_hash parameter in Hybrid Flow responses.
  • If upgrading is not immediately possible, implement an additional check on the RP side to validate the c_hash value against the expected hash of the code.
  • Monitor authentication logs for anomalous authorization codes indicative of injection attempts.

Generated by OpenCVE AI on August 6, 2026 at 12:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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

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

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

Type Values Removed Values Added
Description 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.
Title Apache CXF: The authorization code hash (c_hash) is not enforced for the hybrid OIDC flow
Weaknesses CWE-20
References

cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-08-06T10:24:05.877Z

Reserved: 2026-06-25T10:09:34.655Z

Link: CVE-2026-57817

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-06T12:45:02Z

Weaknesses
  • CWE-20

    Improper Input Validation