Impact
The vulnerability originates in the dynamic‑router‑control endpoint introduced in Camel 4.4.0. When a subscribe or update message is received, the endpoint extracts a predicate expression and the language name directly from the message’s body or headers, compiles that expression with no allow‑list or opt‑in, and injects it into the rule base that is evaluated against every exchange routed through the dynamic router. This design flaw permits arbitrary code execution via expression‑language injection (CWE‑94) or code injection (CWE‑917). An attacker who can send a message to any transport whose route forwards to the dynamic‑router control endpoint can supply a malicious expression; no additional authentication or user interaction is required.
Affected Systems
Apache Camel versions 4.4.0 through 4.18.4 and 4.19.0 through 4.22.0 are affected. The issue does not exist in releases prior to 4.4.0. Support for 4.14.x and earlier ended before the fix, so any deployment still on those branches must move to a supported release. The patch is available in Camel 4.18.5, 4.22.1, and 4.23.0, which introduce the allowPredicateFromMessage option and related security metadata.
Risk and Exploitability
The CVSS base score is 8.8, indicating high severity. EPSS is not available, but the vulnerability can be exploited by any actor able to write to a transport that forwards to the control endpoint, so the risk is significant in environments where such transports are exposed to untrusted or shared traffic. The issue is not listed in CISA’s KEV, yet urgent remediation is advised, especially because the attacker requires no credentials and the compromise would execute within the Camel process with full privileges.
OpenCVE Enrichment