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-85312 Overview
CVE-2026-85312 is an improper input validation vulnerability [CWE-20] in the Apache Camel Core component affecting the saga processor. The flaw stems from the Long-Running-Action header lacking the Camel prefix, which places it outside the namespace blocked by consumer header filters. An external sender can supply this header on an inbound message to join an existing saga or trigger compensation for an action they did not initiate. The issue affects Apache Camel versions 4.0.0 through 4.18.4 and 4.19.0 through 4.22.0. Exposure is bounded to deployments running sagas over a Long-Running Action (LRA) coordinator.
Critical Impact
Attackers can attach forged requests to existing long-running actions or associate compensation with unrelated sagas, violating transaction integrity in LRA-based deployments.
Affected Products
- Apache Camel 4.0.0 through versions before 4.18.5
- Apache Camel 4.19.0 through versions before 4.22.1
- Deployments running sagas over an LRA coordinator
Discovery Timeline
- 2026-10-19 - CVE-2026-85312 published to the National Vulnerability Database (NVD)
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-85312
Vulnerability Analysis
The Apache Camel saga processor identifies which saga an exchange belongs to by inspecting a header named Long-Running-Action. Camel applies consumer header filters to headers prefixed with Camel, isolating internal routing metadata from external input. Because the Long-Running-Action header carries no such prefix, it bypasses the default filter boundary and flows in from untrusted senders.
An attacker who can send a message to a Camel endpoint running the saga service can set this header to a known or guessed saga identifier. The exchange then joins the target saga, allowing the attacker to inject their request into another participant's long-running transaction. Alternatively, the attacker can trigger compensation logic tied to an action they did not initiate, undoing legitimate work.
Root Cause
The root cause is improper input validation combined with a naming convention mismatch. The saga processor consulted the Long-Running-Action header on every exchange, regardless of whether the configured saga service required it. Because the header name lacks the Camel namespace prefix, consumer header filters treat it as application payload rather than internal routing state.
Attack Vector
The attack requires network access to a Camel consumer endpoint and knowledge or guessing of a target saga identifier. An external sender attaches the Long-Running-Action header to an inbound message. The saga processor accepts the attacker-supplied value and associates the exchange with the named saga. For details on the fix, see the Apache Camel CVE-2026-85312 Advisory and the related Apache JIRA CAMEL-24449 Issue.
Detection Methods for CVE-2026-85312
Indicators of Compromise
- Inbound messages from untrusted senders containing a Long-Running-Action header value.
- Saga compensation events that do not correlate with any legitimate initiating request in application logs.
- Unexpected participation of exchanges in sagas owned by other tenants or workflows.
Detection Strategies
- Audit Camel route logs for the presence of Long-Running-Action headers on consumer endpoints exposed to external networks.
- Correlate saga identifiers across initiating services and participants to detect mismatched or forged associations.
- Review LRA coordinator transaction logs for compensation events with no matching initiator in trusted service traces.
Monitoring Recommendations
- Enable verbose logging on saga processors to capture header values during development and staging validation.
- Instrument consumer endpoints to count inbound occurrences of the Long-Running-Action header from external sources.
- Alert on anomalous rates of saga compensation calls that deviate from baseline application behavior.
How to Mitigate CVE-2026-85312
Immediate Actions Required
- Upgrade Apache Camel to version 4.23.0, which contains the fix.
- Users on the 4.18.x LTS stream should upgrade to 4.18.5.
- Users on the 4.22.x LTS stream should upgrade to 4.22.1.
- Inventory all Camel deployments that use the saga Enterprise Integration Pattern (EIP) over an LRA coordinator to prioritize patching.
Patch Information
The fix changes the saga processor so that the Long-Running-Action header is consulted only when a saga service actually requires it, rather than on every exchange. The patch is tracked in GitHub Pull Request #25828, GitHub Pull Request #25940, and GitHub Pull Request #25942.
Workarounds
- Strip the header at the trust boundary by calling removeHeaders("Long-Running-Action") on every consumer that accepts messages from untrusted senders.
- Restrict network access to Camel consumer endpoints running saga services so that only trusted producers can reach them.
- Apply a reverse proxy or API gateway rule that drops the Long-Running-Action HTTP header before requests reach Camel.
# Configuration example: strip the header at the trust boundary in a Camel route
from("jetty:http://0.0.0.0:8080/orders")
.removeHeaders("Long-Running-Action")
.to("direct:processOrder");
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

