CVE-2026-130612
Camel-Core: message-supplied option values of a dynamic endpoint (toD, enrich, pollEnrich) are resolved as property placeholders and #class: references, allowing disclosure of configuration secrets and instantiation of attacker-selected classes
Description
In Apache Camel, the option values of a dynamically-computed endpoint URI - such as the URI built from message content by the toD, enrich and pollEnrich EIPs (and recipientList, routingSlip, dynamicRouter, wireTap) - are processed by the generic endpoint option binding, which resolves Camel property placeholders ({{...}}) and bean/class references (#class:, #bean:, #type:). As a result an untrusted message sender can cause configuration values and secrets (environment variables, system properties, vault/secret functions, registry bean state) to be disclosed into an option value, and attacker-selected classes to be instantiated during endpoint creation. The earlier fix tracked as CAMEL-24282 made only the per-message URI string literal for the toD/enrich path and did not cover the option-binding step.
Mitigation
Credit
This issue was discovered by Shashank Mohan Jain
Notes
The JIRA ticket: https://issues.apache.org/jira/browse/CAMEL-27160 refers to the various commits that resolved the issue, and have more details.