Skip to main content
Vulnerability Database/CVE-2026-84178

CVE-2026-84178: Apache Camel OAuth Component CSRF Vulnerability

CVE-2026-84178 is a cross-site request forgery flaw in Apache Camel OAuth component that enables login CSRF attacks and open redirects. This post explains its technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-84178 Overview

CVE-2026-84178 is a Cross-Site Request Forgery (CSRF) vulnerability in the Apache Camel OAuth component. The authorization code callback does not issue or validate a state parameter bound to the originating authorization request. An attacker can obtain an authorization code in their own browser, then trick a victim's browser into redeeming that code against the Camel callback endpoint. The victim is silently signed in under the attacker's identity, so any data the victim subsequently submits lands in the attacker-controlled account. The same unvalidated callback also permits manipulation of the post-authentication redirect target, producing an open redirect from a trusted origin.

Critical Impact

Login CSRF enabling account confusion and an open redirect from a trusted origin, both reachable without identity provider interaction.

Affected Products

  • Apache Camel 4.11.0 through versions before 4.18.5
  • Apache Camel 4.19.0 through versions before 4.22.1
  • Apache Camel OAuth component

Discovery Timeline

  • 2026-10-19 - CVE-2026-84178 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-84178

Vulnerability Analysis

The vulnerability resides in the OAuth 2.0 authorization code flow implemented by the Apache Camel OAuth component. In a correct implementation, the client generates a cryptographically random state value, binds it to the user's session, and sends it with the authorization request. On callback, the client confirms the returned state matches the session-bound value before redeeming the code.

The Camel OAuth component omits both steps. The authorization request does not include a session-bound state, and the callback handler does not verify one. Any authorization code presented at the callback is accepted and associated with whichever session delivers it.

The advisory also notes that the state check runs before the authorization code is redeemed. This means the vulnerable code paths are reachable without any round trip to the identity provider, broadening the attack surface. This weakness is tracked under CWE-352: Cross-Site Request Forgery.

Root Cause

The root cause is missing anti-CSRF state binding in the OAuth authorization code flow. The authorization request carries no session-bound state parameter, and the callback accepts codes without correlating them to an in-flight authorization request. This violates RFC 6749 Section 10.12, which requires state to mitigate CSRF.

Attack Vector

An attacker initiates an OAuth authorization flow in their own browser against the victim application and captures the issued authorization code at the redirect URI. The attacker then crafts a page or link that causes the victim's browser to issue a GET to the Camel OAuth callback URL carrying the attacker's code. The Camel callback redeems the code and binds the resulting identity to the victim's session. The victim operates under the attacker's account, submitting data and performing actions that persist in attacker-controlled storage. The same callback logic additionally permits an open redirect from the trusted application origin, usable in phishing chains. User interaction is required, consistent with the network attack vector described in the advisory.

See the Apache Camel CVE-2026-84178 Advisory for additional detail.

Detection Methods for CVE-2026-84178

Indicators of Compromise

  • Callback requests to the Camel OAuth endpoint lacking a state query parameter, or carrying a state not seen in any prior authorization request from the same session.
  • Successful OAuth callbacks where the Referer header points to an external, untrusted origin rather than the application's own authorization initiation page.
  • Sudden identity switches within an existing session, such as the authenticated subject changing without an explicit logout and re-login.
  • Redirects from the Camel OAuth callback to hosts outside the application's allow list.

Detection Strategies

  • Inspect web server and application logs for OAuth callback requests on affected Camel versions and flag any without a state parameter.
  • Correlate authorization request and callback events per session identifier; alert when a callback cannot be matched to a prior authorization request from the same session.
  • Monitor for authorization codes being redeemed from source IP addresses or user agents different from those that initiated the flow.

Monitoring Recommendations

  • Enable verbose logging on the Camel OAuth route to capture state, code, session ID, and client IP for every callback.
  • Forward OAuth component logs to a centralized log platform and build dashboards tracking callback-to-authorization request correlation ratios.
  • Alert on spikes of 400 responses from the OAuth callback after upgrading, as these may indicate proxy configurations stripping the state parameter.

How to Mitigate CVE-2026-84178

Immediate Actions Required

  • Inventory all deployments running Apache Camel 4.11.0 through 4.18.4 and 4.19.0 through 4.22.0 that use the OAuth component.
  • Upgrade to Apache Camel 4.23.0, or to 4.18.5 on the 4.18.x LTS stream, or to 4.22.1 on the 4.22.x LTS stream.
  • For deployments that cannot upgrade immediately, terminate the OAuth authorization code flow in an external component that performs its own state binding, bypassing the Camel callback.
  • Review proxy and ingress configurations to confirm the callback query string, including state, is preserved end to end.

Patch Information

The fixes are tracked in Apache JIRA Issue CAMEL-24437 and delivered through GitHub Pull Request #25821, GitHub Pull Request #25944, and GitHub Pull Request #25946. After upgrading, the authorization request issues a state value bound to the session, and the callback rejects any request whose state is absent or does not match, stopping the route with a 400 response.

Workarounds

  • Replace the Camel OAuth callback with a front-end component (such as an API gateway or dedicated OAuth proxy) that generates, stores, and validates a session-bound state parameter.
  • Restrict the post-authentication redirect target to an allow list of internal URLs to neutralize the open redirect path.
  • Require re-authentication for sensitive actions so that a silently swapped identity cannot immediately exercise privileged workflows.
  • Verify that any reverse proxy in front of the Camel application preserves the full callback query string after upgrade, since the state parameter must survive the round trip.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.