You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shenyu.apache.org by Zhang Yonglun <zh...@apache.org> on 2022/01/26 06:21:09 UTC

CVE-2021-45029: Apache ShenYu (incubating) Groovy Code Injection and SpEL Injection

Severity: moderate

Description:

Groovy Code Injection & SpEL Injection which lead to Remote Code Execution.
Apache ShenYu (incubating)  provides some plugins, and we can define
our own Selectors And Rules in which we can set some condition match
including "match = regEx like contain SpEL Groovy".
There are no filters to avoid Remote Code Execution before
parseExpression and Eval.me.
This issue affects Apache ShenYu (incubating)  2.4.0 and 2.4.1.

Mitigation:

Upgrade to Apache ShenYu (incubating) 2.4.2 or apply patch
https://github.com/apache/incubator-shenyu/pull/2576.


--

Zhang Yonglun
Apache ShenYu (Incubating)
Apache ShardingSphere