Research

Apache Camel

Dynamic Router control messages can inject executable expressions

High (8.8)Published

CVE-2026-83531 lets senders of Apache Camel Dynamic Router control messages inject predicate expressions that execute with the Camel process's privileges.

Affected
Apache Camel Dynamic Router 4.4.0–4.18.4 and 4.19.0–4.22.0
Attack requirements
Ability to send messages to a transport whose route forwards them to a dynamic-router-control endpoint

Impact

An attacker can execute code with the Camel process's privileges. The injected predicate remains active for exchanges on the channel until the subscription is removed. Apache assigns a CVSS 3.1 score of 8.8.

Technical detail

  • DynamicRouterControlProducer takes predicate and expressionLanguage values from a DynamicRouterControlMessage body or the CamelDynamicRouterPredicate and CamelDynamicRouterExpressionLanguage headers.
  • DynamicRouterControlService compiles the supplied expression without a language allow-list or opt-in, then adds the predicate to the channel's rule base.
  • Any language on the classpath can be selected, including the always-present Simple language; removing optional languages does not prevent exploitation.

Remediation

  • Upgrade to Apache Camel 4.18.5, 4.22.1, or 4.23.0 and later on the corresponding release line; move unsupported releases to a supported line.
  • Keep allowPredicateFromMessage disabled unless every sender of control messages is trusted.
  • Until upgrading, block untrusted control messages or authenticate senders and clear both predicate headers and the predicate and expressionLanguage body fields before forwarding. Configure predicates on the endpoint instead.
  • Restrict access to control transports. On 4.22.1 and 4.23.0, use allowedSchemes to limit subscription destination schemes.

News