CVE-2021-45029:
Code injection in ShenYu
9.8
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
1/28/2022
Updated
2/3/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.shenyu:shenyu-common | maven | >= 2.4.0, < 2.4.2 | 2.4.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key unsafe code evaluation patterns: 1) Use of Groovy's Eval.me which directly executes arbitrary Groovy code, and 2) Use of Spring's SpEL parser with full evaluation context. Both were identified in the plugin condition handling logic (SpELExpressionEvaluator class) where user-controlled expressions were processed without proper sandboxing or input validation. The CVE description and mitigation PR #2576 explicitly reference these unsafe evaluation methods being patched by implementing input validation and switching to safer evaluation contexts.