CVE-2026-57817

Apache CXF: The authorization code hash (c_hash) is not enforced for the hybrid OIDC flow

Published Aug 6, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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) and an improper authentication/authorization flaw (CWE‑303).

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 CVSS score is 8.1, and the EPSS score is < 1%. The vulnerability is not listed 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.

Remediation

No solution or workaround provided in the CVE record.

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 12, 2026 at 10:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Apache
Apache cxf
Vendors & Products Apache
Apache cxf
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
Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-303

    Incorrect Implementation of Authentication Algorithm

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Aug 7, 2026, 3:55 AM
Reserved
Jun 25, 2026, 10:09 AM
Status
Modified
Published
Aug 6, 2026, 11:16 AM
Modified
Oct 24, 2026, 4:10 PM
Severity
Low
Public date
Aug 6, 2026, 10:24 AM