Vulnerabilities in pkg:maven/org.springframework.cloud/spring-cloud-netflix-hystrix-dashboard

PACKAGE
Advisory Identifier: GHSA-gx3f-hq7p-8fxv
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.springframework.cloud/spring-cloud-netflix-hystrix-dashboard

1 Known Advisory Record(s)

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

CVE Identifier CVE-2021-22053
GHSA Identifier GHSA-gx3f-hq7p-8fxv
Severity HIGH
CVSS v3.1 Base Score 7.6
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Spring Framework
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity High (I:H)
Availability Low (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.

org.springframework.cloud:spring-cloud-netflix-hystrix-dashboard fixed: 2.2.10.RELEASE
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-netflix-hystrix-dashboard</artifactId>
    <version>2.2.10.RELEASE</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

CVE-2021-22053 Affected Spring Framework Versions

1 component(s)
Fixed Versions:
2.2.10.RELEASE
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?
CVE-2021-22053 is a security vulnerability in Spring Framework involving Code injection in spring-cloud-netflix-hystrix-dashboard under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Spring Framework versions are affected?
Affected versions include releases prior to 2.2.10.RELEASE across affected packages: org.springframework.cloud:spring-cloud-netflix-hystrix-dashboard.
What version fixes CVE-2021-22053?
Upgrading to 2.2.10.RELEASE (or the latest patched release for your respective branch) resolves the vulnerability.
Is spring-cloud-netflix-hystrix-dashboard affected?
Yes, org.springframework.cloud:spring-cloud-netflix-hystrix-dashboard is affected in releases prior to 2.2.10.RELEASE. Upgrade your dependency to 2.2.10.RELEASE or later.
What is the CVSS score of CVE-2021-22053?
CVE-2021-22053 has a CVSS v3.1 base score of 7.6 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L.
What CWE is associated with CVE-2021-22053?
CVE-2021-22053 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (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.).
How can I check Maven dependencies for CVE-2021-22053?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.springframework.cloud'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}