CVE-2021-45029 Apache ShenYu 2.4.1 Groovy Code Injection & SpEL Injection
Attackers can execute arbitrary code remotely via Groovy or SpEL injection in Apache ShenYu, requiring an upgrade to secure the gateway.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-45029?
CVE-2021-45029 is a critical code injection vulnerability in Apache ShenYu (incubating), published on 25 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Groovy Code Injection & SpEL Injection which lead to Remote Code Execution. This issue affected Apache ShenYu 2.4.0 and 2.4.1.
Weakness: CWE-94
Which versions are affected by CVE-2021-45029?
2 open source packages ship an affected version, including org.apache.shenyu:shenyu-common. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.shenyu:shenyu-common Maven | From 2.4.0 | 2.4.2 |
org.apache.shenyu:shenyu-common Maven | From 2.4.0 | 2.4.2 |
Products include Apache Shenyu.
How do I fix CVE-2021-45029?
Upgrade org.apache.shenyu:shenyu-common to 2.4.2 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2021-45029 being exploited?
There is no known exploitation of CVE-2021-45029 in the wild and no public exploit code.
Other vulnerabilities in Apache ShenYu (incubating)
- CVE-2021-37580 Apache ShenYu Admin bypass JWT authentication
- CVE-2022-23944 Apache ShenYu 2.4.1 Improper access control
- CVE-2022-42735 Apache ShenYu Admin ultra vires
- CVE-2022-37435 Apache ShenYu Admin Improper Privilege Management
- CVE-2022-26650 Apache ShenYu (incubating) Regular expression denial of service
Sources
Also known as GHSA-gh38-x2wm-xmc8.