Vulnerabilities in pkg:maven/org.springframework.cloud/spring-cloud-netflix-hystrix-dashboard
PACKAGECVE-2021-22053 is a HIGH (CVSS 7.6) code injection vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Spring Framework libraries in the Maven ecosystem. The issue involves code injection in spring-cloud-netflix-hystrix-dashboard. Remediation is available by upgrading affected packages to version 2.2.10.RELEASE.
pkg:maven/org.springframework.cloud/spring-cloud-netflix-hystrix-dashboard
Vulnerability advisories affecting package pkg:maven/org.springframework.cloud/spring-cloud-netflix-hystrix-dashboard. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-gx3f-hq7p-8fxv | CVE-2021-22053 | HIGH | Code injection in spring-cloud-netflix-hystrix-dashboard |
CVE-2021-22053 at a Glance
Security Impact
CVSS: 7.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L).
How to Fix CVE-2021-22053
To remediate this vulnerability, upgrade all affected Spring Framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-netflix-hystrix-dashboard</artifactId>
<version>2.2.10.RELEASE</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.springframework.cloud
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2021-22053, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.springframework.cloud
Analyze the terminal output to locate any version of Spring Framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.10.RELEASE), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.springframework.cloud command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Spring Framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-22053 Affected Spring Framework Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.springframework.cloud:spring-cloud-netflix-hystrix-dashboard
|
Maven |
< 2.2.10.RELEASE
|
2.2.10.RELEASE
|
References
Frequently Asked Questions
What is CVE-2021-22053?
Which Spring Framework versions are affected?
What version fixes CVE-2021-22053?
Is spring-cloud-netflix-hystrix-dashboard affected?
What is the CVSS score of CVE-2021-22053?
What CWE is associated with CVE-2021-22053?
How can I check Maven dependencies for CVE-2021-22053?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gx3f-hq7p-8fxv",
"modified" : "2021-11-22T19:53:38Z",
"published" : "2021-11-23T17:53:33Z",
"aliases" : [ "CVE-2021-22053" ],
"summary" : "Code injection in spring-cloud-netflix-hystrix-dashboard",
"details" : "Applications using the `spring-cloud-netflix-hystrix-dashboard` 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.cloud:spring-cloud-netflix-hystrix-dashboard"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.2.10.RELEASE"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.2.9.RELEASE"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-22053"
}, {
"type" : "WEB",
"url" : "https://tanzu.vmware.com/security/cve-2021-22053"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-11-22T19:53:38Z",
"nvd_published_at" : "2021-11-19T16:15:00Z"
}
}