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: 8.1 High
EPSS: < 1% Very Low
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) 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.

Generated by OpenCVE AI on August 12, 2026 at 10:16 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 12, 2026 at 10:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 11 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:apache:cxf:*:*:*:*:*:*:*:*
References

Tue, 11 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-303
References
Metrics threat_severity

None

threat_severity

Low


Fri, 07 Aug 2026 01:30:00 +0000

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


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

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


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-07T03:55:29.695Z

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

Link: CVE-2026-57817

cve-icon Vulnrichment

Updated: 2026-08-07T00:01:40.536Z

cve-icon NVD

Status : Modified

Published: 2026-08-06T11:16:30.120

Modified: 2026-08-07T05:17:02.503

Link: CVE-2026-57817

cve-icon Redhat

Severity : Low

Publid Date: 2026-08-06T10:24:05Z

Links: CVE-2026-57817 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-12T10:30:02Z

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-303

    Incorrect Implementation of Authentication Algorithm