← Security advisories
Apache Camel security advisory

CVE-2026-135917

Camel-A2A nested agent route shares control headers between the consumer and producer, letting a remote caller alter the outbound request and the reply identity

Description

Apache Camel's camel-a2a component provides both an A2A agent-server consumer and an A2A agent-client producer, which before the fix shared a single CamelA2A* message-header namespace. In a nested orchestrator route that consumes an A2A request and then calls a downstream A2A agent on the same exchange, metadata the consumer parsed from the incoming (untrusted) request reused the same header names the producer reads as its control inputs, so a remote caller could influence the operation and context of the downstream request and the task identity reflected back in the reply. The fix separates the consumer's request/reply metadata into distinct header names from the producer's control headers, so the two legs of a nested route no longer collide.

Mitigation

Upgrade to Apache Camel 4.24.0, which fixes the issue. Users on the 4.22.x LTS release stream should upgrade to 4.22.3.

Credit

This issue was discovered by Andrea Cosentino from Apache Software Foundation

Notes

The JIRA ticket: https://issues.apache.org/jira/browse/CAMEL-25931 refers to the various commits that resolved the issue, and have more details.

References