{"id":"CVE-2026-83531","kind":"vulnerability","aliases":["CVE-2026-83531"],"related":[],"title":"Apache Camel: dynamic-router control messages let senders run arbitrary expressions","description":"Improper Control of Generation of Code ('Code Injection'), Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection') vulnerability in Apache Camel.\n\n\n\nThis issue affects Apache Camel: from 4.4.0 before 4.18.5, from 4.19.0 before 4.22.1.\n\n\n\nThe dynamic-router-control endpoint, introduced in 4.4.0, lets routing participants manage Dynamic Router subscriptions by sending control messages. When it handled a subscribe or update request, DynamicRouterControlProducer took the subscription predicate and the name of the language used to compile it from the incoming message, either from the predicate and expressionLanguage fields of a DynamicRouterControlMessage body or from the CamelDynamicRouterPredicate and CamelDynamicRouterExpressionLanguage headers. DynamicRouterControlService then resolved that language from the CamelContext and compiled the expression into a Predicate, with no allow-list and no opt-in. The compiled predicate was added to the channel's rule base and evaluated against every exchange routed through the corresponding dynamic-router endpoint for as long as the subscription existed. A route that forwards messages from an external transport to the control endpoint, as shown in the component documentation for routing participants in other JVMs or applications, therefore let any actor able to send a message on that transport supply an expression of their choosing, which was evaluated with the privileges of the Camel process. Any expression language available on the classpath could be selected, including the simple language, which is always present and was the default on the header path, so removing optional expression languages from the classpath did not prevent the issue. Exploitation requires the ability to send a message on a transport whose route forwards it to a dynamic-router-control endpoint; no other authentication or user interaction is needed. Releases before 4.4.0 are not affected, because their control channel took predicate expressions only from the endpoint URI configured by the route author.\n\n\n\nUsers are recommended to upgrade to version 4.23.0, which fixes the issue. If users are on the 4.22.x releases stream, then they are suggested to upgrade to 4.22.1. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.5. The 4.14.x releases stream and earlier reached end of life before this issue was resolved and will not receive a fix, so deployments on those lines must move to a supported release. After upgrading, a control message that carries a predicate expression or an expression language is rejected unless the new allowPredicateFromMessage option is enabled on the dynamic-router-control endpoint; enable it only when every sender of control messages is trusted. For deployments that cannot upgrade immediately, do not forward messages from untrusted or shared transports to a dynamic-router-control endpoint. Where control messages must cross such a transport, authenticate the sender and make sure the predicate and expression language of each subscription are set by the route rather than taken from the incoming message, for example by removing the CamelDynamicRouterPredicate and CamelDynamicRouterExpressionLanguage headers and clearing the predicate and expressionLanguage fields of a DynamicRouterControlMessage before it reaches the endpoint. Removing optional expression languages from the classpath is not a sufficient workaround. As defence in depth, restrict who can send to the transports that feed the control endpoint, and on 4.23.0 and 4.22.1 set the allowedSchemes option of the dynamic-router endpoint to limit which endpoints a subscription's destinationUri may name.","summary":"Apache Camel's dynamic-router-control endpoint compiles subscription predicates taken from incoming messages, using any expression language on the classpath. Anyone who can send a message on a transport routed to that endpoint can make the Camel process evaluate an expression of their choosing with its privileges.","severity":"high","cvss":8.8,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["apache-camel","dynamic-router","java","package","self-hosted"],"not_affected_if":["no-dynamic-router-control-endpoint","releases-before-4.4.0","trusted-transports-only"],"how_to_check":"Find routes that send messages to a dynamic-router-control endpoint, then check whether those routes are fed by transports others can write to.\nCheck the Camel version in the project's dependency tree (4.4.0 up to but not including 4.18.5, or 4.19.0 up to but not including 4.22.1, is affected).","fix":"Upgrade to Apache Camel 4.23.0, or 4.22.1 on the 4.22.x line, or 4.18.5 on the 4.18.x line; 4.14.x and earlier are end of life and need a supported release. After upgrading, leave allowPredicateFromMessage disabled unless every sender is trusted.","status":"open","published_at":"2026-10-19T11:17:21+00:00","first_seen_at":"2026-10-23T21:57:17+00:00","triaged_at":"2026-10-23T22:33:12+00:00","updated_at":"2026-10-23T22:33:12+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-10-23T22:33:12Z","model":"claude-haiku-5-5","output":{"fix":"Upgrade to Apache Camel 4.23.0, or 4.22.1 on the 4.22.x line, or 4.18.5 on the 4.18.x line; 4.14.x and earlier are end of life and need a supported release. After upgrading, leave allowPredicateFromMessage disabled unless every sender is trusted.","reach":"network","title":"Apache Camel: dynamic-router control messages let senders run arbitrary expressions","impact":"high","summary":"Apache Camel's dynamic-router-control endpoint compiles subscription predicates taken from incoming messages, using any expression language on the classpath. Anyone who can send a message on a transport routed to that endpoint can make the Camel process evaluate an expression of their choosing with its privileges.","category":"package","who_cares":["apache-camel","java","dynamic-router","self-hosted"],"confidence":0.8,"needs_auth":"unknown","worst_case":"Attacker runs arbitrary expressions with the Camel process privileges","analyst_note":"","how_to_check":"Find routes that send messages to a dynamic-router-control endpoint, then check whether those routes are fed by transports others can write to.\nCheck the Camel version in the project's dependency tree (4.4.0 up to but not including 4.18.5, or 4.19.0 up to but not including 4.22.1, is affected).","needs_analyst":false,"not_affected_if":["releases-before-4.4.0","no-dynamic-router-control-endpoint","trusted-transports-only"],"user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"high"},"cost_usd":0.000674,"input_tokens":3981,"output_tokens":552,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-2026':14A,17A '-83531':15A,18A '4.14':433C '4.18':420C '4.18.5':113C,431C '4.19.0':115C '4.22':403C '4.22.1':117C,414C,618C '4.23.0':393C,616C '4.4.0':111C,126C,365C 'abil':336C 'abl':270C 'actor':269C 'add':212C 'affect':107C,368C 'allow':201C 'allow-list':200C 'allowedschem':621C 'allowpredicatefrommessag':484C 'alway':310C 'anyon':52B 'apach':1A,20B,30B,103C,108C 'apache-camel':19B 'applic':265C 'arbitrari':11A 'authent':357C,536C 'author':385C 'avail':297C 'base':218C 'bodi':175C 'camel':2A,21B,31B,68B,104C,109C,292C 'camelcontext':190C 'cameldynamicrouterexpressionlanguag':181C,569C 'cameldynamicrouterpred':179C,567C 'cannot':509C 'carri':471C 'channel':215C,372C 'choos':75B,283C 'classpath':51B,300C,327C,592C 'clear':572C 'code':84C,85C 'compil':38B,159C,192C,209C 'compon':256C 'configur':381C 'control':6A,36B,80C,122C,136C,250C,353C,371C,468C,493C,502C,526C,529C,612C 'correspond':227C 'could':301C 'cross':532C 'cve':13A,16A 'default':315C 'defenc':599C 'deploy':455C,507C 'depth':601C 'destinationuri':636C 'document':257C 'dynam':4A,23B,34B,120C,131C,229C,351C,491C,524C,626C 'dynamic-rout':3A,22B,228C,625C 'dynamic-router-control':33B,119C,350C,490C,523C 'dynamicroutercontrolmessag':174C,580C 'dynamicroutercontrolproduc':146C 'dynamicroutercontrolservic':183C 'earlier':438C 'either':165C 'element':91C 'enabl':487C,495C 'end':440C 'endpoint':37B,64B,123C,231C,251C,354C,379C,494C,527C,585C,613C,628C,632C 'evalu':70B,220C,286C 'everi':222C,499C 'exampl':563C 'exchang':223C 'exist':238C 'exploit':333C 'express':12A,47B,72B,95C,98C,194C,280C,295C,323C,375C,474C,477C,545C,588C 'expressionlanguag':170C,576C 'extern':246C 'feed':610C 'field':171C,577C 'fix':395C,453C 'forward':242C,346C,514C 'generat':82C 'handl':140C 'header':182C,318C,570C 'host':29B 'immedi':511C 'improp':79C,87C 'includ':304C 'incom':43B,163C,560C 'inject':86C,100C 'interact':360C 'introduc':124C 'issu':106C,332C,397C,445C 'java':25B 'jvms':263C 'languag':48B,96C,99C,156C,187C,296C,307C,324C,478C,546C,589C 'let':8A,127C,267C 'life':442C 'limit':630C 'line':458C 'list':202C 'long':234C 'make':66B,540C 'manag':130C 'may':637C 'messag':7A,44B,57B,137C,164C,243C,274C,340C,469C,503C,515C,530C,561C 'move':460C 'must':459C,531C 'name':153C,638C 'need':362C 'neutral':88C 'new':483C 'opt':206C 'opt-in':205C 'option':322C,485C,587C,622C 'packag':26B 'particip':129C,260C 'path':319C 'predic':40B,150C,168C,197C,210C,374C,473C,543C,574C 'present':311C 'prevent':330C 'privileg':78B,289C 'process':69B,293C 'rather':555C 'reach':439C,583C 'receiv':451C 'recommend':388C 'reject':480C 'releas':363C,405C,422C,435C,464C 'remov':321C,565C,586C 'request':145C 'requir':334C 'resolv':185C,447C 'restrict':602C 'rout':61B,128C,224C,240C,259C,345C,384C,554C 'router':5A,24B,35B,121C,132C,230C,352C,492C,525C,627C 'rule':217C 'run':10A 'select':303C 'self':28B 'self-host':27B 'send':55B,135C,272C,338C,605C 'sender':9A,500C,538C 'set':551C,619C 'share':519C 'shown':253C 'simpl':306C 'special':90C 'statement':97C 'stream':406C,423C,436C 'subscrib':142C 'subscript':39B,133C,149C,237C,549C,634C 'suffici':596C 'suggest':410C,427C 'suppli':278C 'support':463C 'sure':541C 'taken':41B,557C 'therefor':266C 'took':147C,373C 'transport':60B,247C,277C,343C,520C,535C,608C 'trust':505C 'unless':481C 'untrust':517C 'updat':144C 'upgrad':390C,412C,429C,466C,510C 'uri':380C 'use':45B,92C,157C 'user':359C,386C,399C,416C 'version':392C 'vulner':101C 'whose':344C 'workaround':597C 'x':404C,421C,434C","nicknames":[],"mitigations":[],"who_affected":null,"tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-19T11:17:21+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cvss_by":"security@apache.org","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-83531","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-83531","severity":null,"published_at":"2026-10-19T11:17:21+00:00","modified_at":"2026-10-20T04:17:06+00:00","first_seen_at":"2026-10-23T21:57:17+00:00","fetched_at":"2026-10-23T22:28:57+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}