# CVE-2020-5412: Hystrix Dashboard Proxy In spring-cloud-netflix-hystrix-dashboard

> Attackers can exploit the Hystrix Dashboard proxy endpoint to perform Server-Side Request Forgery, accessing internal servers not intended for public exposure.

- **Severity:** Medium 6.5 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 7 Aug 2020
- **Updated:** 16 Sep 2024
- **Also known as:** GHSA-qgcg-p3v2-9h4p

## What is CVE-2020-5412?

CVE-2020-5412 is a medium-severity server-side request forgery vulnerability in Spring Cloud Netflix, published on 7 Aug 2020. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

Spring Cloud Netflix, versions 2.2.x prior to 2.2.4, versions 2.1.x prior to 2.1.6, and older unsupported versions allow applications to use the Hystrix Dashboard proxy.stream endpoint to make requests to any server reachable by the server hosting the dashboard. A malicious user, or attacker, can send a request to other servers that should not be exposed publicly.

Weakness: CWE-610 (Externally Controlled Reference to a Resource in Another Sphere), CWE-441 (Unintended Proxy or Intermediary)

## Which versions are affected by CVE-2020-5412?

4 open source packages ship an affected version, including org.springframework.cloud:spring-cloud-netflix. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.springframework.cloud:spring-cloud-netflix` | Maven | From 2.1.0 | 2.1.6 |
| `org.springframework.cloud:spring-cloud-netflix` | Maven | From 2.1.0 | 2.1.6 |
| `org.springframework.cloud:spring-cloud-netflix` | Maven | From 2.2.0 | 2.2.4 |
| `org.springframework.cloud:spring-cloud-netflix` | Maven | From 2.2.0 | 2.2.4 |

Products: Vmware Spring Cloud Netflix.

## How do I fix CVE-2020-5412?

Upgrade org.springframework.cloud:spring-cloud-netflix to a fixed version for your release line: 2.1.6 or 2.2.4.

## Is CVE-2020-5412 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-5412 exists.

Public exploit code:

- Spring Cloud Netflix - Server-Side Request Forgery (nuclei): http/cves/2020/CVE-2020-5412.yaml

## Other vulnerabilities in Spring Cloud Netflix

- [CVE-2021-22053](https://insights.sbomify.com/CVE-2021-22053/): Code injection in spring-cloud-netflix-hystrix-dashboard (high 8.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2020-5412 and fix it if it is affected.

What it is: CVE-2020-5412 is a medium-severity server-side request forgery vulnerability in Spring Cloud Netflix, published on 7 Aug 2020. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-5412 exists.

Affected packages and fixed versions:
- org.springframework.cloud:spring-cloud-netflix (Maven): affected from 2.1.0; fixed in 2.1.6
- org.springframework.cloud:spring-cloud-netflix (Maven): affected from 2.1.0; fixed in 2.1.6
- org.springframework.cloud:spring-cloud-netflix (Maven): affected from 2.2.0; fixed in 2.2.4
- org.springframework.cloud:spring-cloud-netflix (Maven): affected from 2.2.0; fixed in 2.2.4

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2020-5412/ (Markdown: https://insights.sbomify.com/CVE-2020-5412/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2020-5412
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2020-5412
- OSV: https://osv.dev/vulnerability/CVE-2020-5412

---
From sbomify Insights: https://insights.sbomify.com/CVE-2020-5412/
Summaries are generated and may contain mistakes; the official description above is the record.
