Description
In Apache CXF's DefaultEncryptingCodeDataProvider, a captured authorization code can be redeemed an unlimited number of times due to a flaw in the implementation of the removeCodeGrant functionality. This violates the RFC requirement that "The authorization code MUST NOT be used more than once." 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: 9.8 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the DefaultEncryptingCodeDataProvider component of Apache CXF, a flaw in the removeCodeGrant logic lets a captured authorization code be redeemed repeatedly, violating the RFC requirement that an authorization code must not be used more than once. This flaw can allow an attacker who has intercepted or otherwise obtained a valid authorization code to repeatedly request access tokens, effectively bypassing single-use restrictions and potentially gaining unauthorized access to protected resources. The weakness is classified as CWE‑294, reflecting improper handling of authentication credentials.

Affected Systems

Apache CXF is the affected product from the Apache Software Foundation. Versions prior to 4.2.3 in the 4.x line, 4.1.8 in the 4.1.x line, and 3.6.12 in the 3.6.x line contain the flaw and must be upgraded to a patched release; all other versions remain unaffected. Users should verify the installed version and apply the mentioned patch to eliminate the replay vulnerability.

Risk and Exploitability

The vulnerability allows unlimited replay of a captured authorization code, leading to a high impact if an attacker can intercept OAuth flows, though no public exploitation data is currently available and the EPSS score is not reported. The attack vector is likely application-level; an adversary would need to capture an authorization code through network interception or phishing, then replay it to obtain tokens. The CVSS score is 9.8, indicating a critical severity. Secure transport (HTTPS) and monitoring the reuse of codes can reduce exploitability, but the absence of a publicly known exploit suggests current risk is moderate until proven otherwise.

Generated by OpenCVE AI on August 6, 2026 at 17:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Apache CXF to version 4.2.3, 4.1.8, or 3.6.12 as available to replace the DefaultEncryptingCodeDataProvider.
  • Verify that the removeCodeGrant logic is active; if using a custom provider, enforce single-use of authorization codes to prevent replay.
  • Deploy network monitoring to detect repeated usage of the same authorization code and ensure all OAuth flows occur over TLS to prevent interception.

Generated by OpenCVE AI on August 6, 2026 at 17:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 06 Aug 2026 16: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 14:30:00 +0000

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

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

Type Values Removed Values Added
Description In Apache CXF's DefaultEncryptingCodeDataProvider, a captured authorization code can be redeemed an unlimited number of times due to a flaw in the implementation of the removeCodeGrant functionality. This violates the RFC requirement that "The authorization code MUST NOT be used more than once." 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: DefaultEncryptingCodeDataProvider allows unlimited authorization code replay
Weaknesses CWE-294
References

cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

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

Reserved: 2026-07-30T09:22:10.738Z

Link: CVE-2026-68079

cve-icon Vulnrichment

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

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-06T17:45:03Z

Weaknesses
  • CWE-294

    Authentication Bypass by Capture-replay