CVE-2021-22053 Code injection in spring-cloud-netflix-hystrix-dashboard
Attackers can execute arbitrary code via SpringEL injection in Hystrix Dashboard when Thymeleaf is also present.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-22053?
CVE-2021-22053 is a high-severity code injection vulnerability in Spring Cloud Netflix, published on 19 Nov 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Applications using both `spring-cloud-netflix-hystrix-dashboard` and `spring-boot-starter-thymeleaf` expose a way to execute code submitted within the request URI path during the resolution of view templates. When a request is made at `/hystrix/monitor;[user-provided data]`, the path elements following `hystrix/monitor` are being evaluated as SpringEL expressions, which can lead to code execution.
Weakness: CWE-94
Which versions are affected by CVE-2021-22053?
2 open source packages ship an affected version, including org.springframework.cloud:spring-cloud-netflix-hystrix-dashboard. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework.cloud:spring-cloud-netflix-hystrix-dashboard Maven | All versions | 2.2.10.RELEASE |
org.springframework.cloud:spring-cloud-netflix-hystrix-dashboard Maven | All versions | 2.2.10.RELEASE |
Products include Vmware Spring Cloud Netflix.
How do I fix CVE-2021-22053?
Upgrade org.springframework.cloud:spring-cloud-netflix-hystrix-dashboard to 2.2.10.RELEASE or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2021-22053 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-22053 exists.
Public exploit code: 1 Nuclei template and 2 proofs of concept on GitHub.
Other vulnerabilities in Spring Cloud Netflix
Sources
Also known as GHSA-gx3f-hq7p-8fxv.