Skip to content
blogs of mekrina
Go back

Apache Camel CoAP 组件漏洞

Updated:
Edit page

https://github.com/dinosn/CVE-2026-33453

camel-coap组件 CVE-2026-33453

利用条件

Camel < 4.18.1 || Camel<4.14.6 应用(自己写的)中调用了 to(“exec:…”) 组件

原理

没过滤 CamelExecCommandExecutable,CamelExecCommandArgs参数,当调用到to时,会先检查这两个参数,如果存在,会执行这个参数指定的命令,而不是exec中写的命令

DefaultExecBinding#readInput

修复

CoAPComponent#createEndpoint中加上filterStrategy,过滤掉这两个参数 CoAPEndpoint改继承于DefaultHeaderFilterStrategyEndpoint 在sink点再加上判断


Edit page