# CVE-2020-13379: Server Side Request Forgery in Grafana

> Unauthenticated attackers can exploit Grafana's avatar feature to perform Server-Side Request Forgery, accessing internal network resources and causing denial of service.

- **Severity:** High 8.2 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 3 Jun 2020
- **Updated:** 4 Aug 2024
- **Also known as:** BIT-grafana-2020-13379, GHSA-wc9w-wvq2-ffm9, RHSA-2020:2641, RHSA-2020:2676, RHSA-2020:5599

## What is CVE-2020-13379?

CVE-2020-13379 is a high-severity server-side request forgery vulnerability in Fedoraproject Fedora, published on 3 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

The avatar feature in Grafana 3.0.1 through 7.0.1 has an SSRF Incorrect Access Control issue. This vulnerability allows any unauthenticated user/client to make Grafana send HTTP requests to any URL and return its result to the user/client. This can be used to gain information about the network that Grafana is running on. Furthermore, passing invalid URL objects could be used for DOS'ing Grafana via SegFault.

Weakness: CWE-918 (Server-Side Request Forgery)

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

5 open source packages ship an affected version, including github.com/grafana/grafana and grafana. It affects 5 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/grafana/grafana` | Go | From 3.0.1 | 6.7.4 |
| `github.com/grafana/grafana` | Go | From 3.0.1 | 6.7.4 |
| `github.com/grafana/grafana` | Go | From 7.0.0 | 7.0.2 |
| `github.com/grafana/grafana` | Go | From 7.0.0 | 7.0.2 |
| `grafana` | Bitnami | From 3.0.1 | 7.0.2 |
| `grafana` | Red Hat:enterprise_linux:8::appstream | All versions | 0:6.3.6-2.el8_2 |
| `grafana-azure-monitor` | Red Hat:enterprise_linux:8::appstream | All versions | 0:6.3.6-2.el8_2 |
| `grafana-cloudwatch` | Red Hat:enterprise_linux:8::appstream | All versions | 0:6.3.6-2.el8_2 |
| `grafana-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:6.3.6-2.el8_2 |
| `grafana-elasticsearch` | Red Hat:enterprise_linux:8::appstream | All versions | 0:6.3.6-2.el8_2 |
| `grafana-graphite` | Red Hat:enterprise_linux:8::appstream | All versions | 0:6.3.6-2.el8_2 |
| `grafana-influxdb` | Red Hat:enterprise_linux:8::appstream | All versions | 0:6.3.6-2.el8_2 |
| `grafana-loki` | Red Hat:enterprise_linux:8::appstream | All versions | 0:6.3.6-2.el8_2 |
| `grafana-mssql` | Red Hat:enterprise_linux:8::appstream | All versions | 0:6.3.6-2.el8_2 |
| `grafana-mysql` | Red Hat:enterprise_linux:8::appstream | All versions | 0:6.3.6-2.el8_2 |
| `grafana-opentsdb` | Red Hat:enterprise_linux:8::appstream | All versions | 0:6.3.6-2.el8_2 |
| `grafana-postgres` | Red Hat:enterprise_linux:8::appstream | All versions | 0:6.3.6-2.el8_2 |
| `grafana-prometheus` | Red Hat:enterprise_linux:8::appstream | All versions | 0:6.3.6-2.el8_2 |
| `grafana-stackdriver` | Red Hat:enterprise_linux:8::appstream | All versions | 0:6.3.6-2.el8_2 |
| `grafana` | Red Hat:rhel_eus:8.1::appstream | All versions | 0:6.2.2-6.el8_1 |
| `grafana-azure-monitor` | Red Hat:rhel_eus:8.1::appstream | All versions | 0:6.2.2-6.el8_1 |
| `grafana-cloudwatch` | Red Hat:rhel_eus:8.1::appstream | All versions | 0:6.2.2-6.el8_1 |
| `grafana-debuginfo` | Red Hat:rhel_eus:8.1::appstream | All versions | 0:6.2.2-6.el8_1 |
| `grafana-elasticsearch` | Red Hat:rhel_eus:8.1::appstream | All versions | 0:6.2.2-6.el8_1 |
| `grafana-graphite` | Red Hat:rhel_eus:8.1::appstream | All versions | 0:6.2.2-6.el8_1 |
| `grafana-influxdb` | Red Hat:rhel_eus:8.1::appstream | All versions | 0:6.2.2-6.el8_1 |
| `grafana-loki` | Red Hat:rhel_eus:8.1::appstream | All versions | 0:6.2.2-6.el8_1 |
| `grafana-mssql` | Red Hat:rhel_eus:8.1::appstream | All versions | 0:6.2.2-6.el8_1 |
| `grafana-mysql` | Red Hat:rhel_eus:8.1::appstream | All versions | 0:6.2.2-6.el8_1 |
| `grafana-opentsdb` | Red Hat:rhel_eus:8.1::appstream | All versions | 0:6.2.2-6.el8_1 |
| `grafana-postgres` | Red Hat:rhel_eus:8.1::appstream | All versions | 0:6.2.2-6.el8_1 |
| `grafana-prometheus` | Red Hat:rhel_eus:8.1::appstream | All versions | 0:6.2.2-6.el8_1 |
| `grafana-stackdriver` | Red Hat:rhel_eus:8.1::appstream | All versions | 0:6.2.2-6.el8_1 |
| `grafana` | Red Hat:storage:3.5:wa:el7 | All versions | 0:5.2.4-3.el7rhgs |

Products: Fedoraproject Fedora, Grafana Grafana, Netapp E-Series Performance Analyzer, Opensuse Backports Sle, Opensuse Leap.

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

Upgrade github.com/grafana/grafana to a fixed version for your release line: 6.7.4 or 7.0.2.

## Is CVE-2020-13379 being exploited?

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

Public exploit code:

- Grafana 7.0.1 - Denial of Service (PoC) (exploitdb)
- Grafana 3.0.1-7.0.1 - Server-Side Request Forgery (nuclei): http/cves/2020/CVE-2020-13379.yaml

## Other vulnerabilities in Fedoraproject Fedora

- [CVE-2024-4577](https://insights.sbomify.com/CVE-2024-4577/): PHP-CGI OS Command Injection (critical 9.8, exploited in the wild)
- [CVE-2021-39226](https://insights.sbomify.com/CVE-2021-39226/): Grafana Authentication Bypass (critical 9.8, exploited in the wild)
- [CVE-2019-5544](https://insights.sbomify.com/CVE-2019-5544/): VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow (critical 9.8, exploited in the wild)
- [CVE-2024-4947](https://insights.sbomify.com/CVE-2024-4947/): Google Chromium V8 Type Confusion (critical 9.6, exploited in the wild)
- [CVE-2024-4671](https://insights.sbomify.com/CVE-2024-4671/): Google Chromium Visuals Use-After-Free (critical 9.6, exploited in the wild)

## Fix prompt for AI coding agents

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

What it is: CVE-2020-13379 is a high-severity server-side request forgery vulnerability in Fedoraproject Fedora, published on 3 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-13379 exists.

Affected packages and fixed versions:
- github.com/grafana/grafana (Go): affected from 3.0.1; fixed in 6.7.4
- github.com/grafana/grafana (Go): affected from 3.0.1; fixed in 6.7.4
- github.com/grafana/grafana (Go): affected from 7.0.0; fixed in 7.0.2
- github.com/grafana/grafana (Go): affected from 7.0.0; fixed in 7.0.2
- grafana (Bitnami): affected from 3.0.1; fixed in 7.0.2

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-13379/ (Markdown: https://insights.sbomify.com/CVE-2020-13379/index.md)
```

## Sources

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

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