GHSA-wc9w-wvq2-ffm9 BIT-grafana-2020-13379 CVE-2020-13379
Server Side Request Forgery in Grafana
- Severity
- 5.8 / 10
- Medium · CVSS 3.1
- Exploit chance (EPSS)
- 99.86%
- Chance of exploitation in the next 30 days. Higher than 99.96% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-918 Server-Side Request Forgery (SSRF)
- Fix
6.7.4- Upgrade github.com/grafana/grafana to this version or later
Description
The avatar feature in Grafana (github.com/grafana/grafana/pkg/api/avatar) 3.0.1 through 7.0.1 has an SSRF Incorrect Access Control issue that allows remote code execution. 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.
Affected versions
Go
| Package | Vulnerable | Fixed in |
|---|---|---|
| github.com/grafana/grafana | >= 3.0.1, < 6.7.4 |
6.7.4 |
| github.com/grafana/grafana | >= 7.0.0, < 7.0.2 |
7.0.2 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
github.com/grafana/grafana Go → 6.7.4
- go
go get github.com/grafana/grafana@v6.7.4 && go mod tidy
Severity breakdown
CVSS 3.1 5.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N/E:F/RL:O/RC:C
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
- Exploit maturity
- F
Weakness
CWE-918: Server-Side Request Forgery (SSRF)
The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.
References
Advisories
Other links
- github.com/grafana/grafana/commit/ba953be95f0302c2ea80d23f1e5f2c1847365192
- exploit-db.com/exploits/48638
- security.netapp.com/advisory/ntap-20200608-0006
- rhynorater.github.io/CVE-2020-13379-Write-Up
- mostwanted002.cf/post/grafanados
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O2KSC…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EEKSZ…
- lists.apache.org/thread.html/rff71126fa7d9f572baafb9be44078ad409c85d2c0f3e26664f1ef5a…
- lists.apache.org/thread.html/re7c4b251b52f49ba6ef752b829bca9565faaf93d03206b1db6644d3…
- lists.apache.org/thread.html/re75f59639f3bc1d14c7ab362bc4485ade84f3c6a3c1a03200c20fe1…
- lists.apache.org/thread.html/rd0fd283e3844b9c54cd5ecc92d966f96d3f4318815bbf3ac41f9c82…
- lists.apache.org/thread.html/rba0247a27be78bd14046724098462d058a9969400a82344b3007cf9…
- lists.apache.org/thread.html/rad99b06d7360a5cf6e394afb313f8901dcd4cb777aee9c9197b3b23…
- lists.apache.org/thread.html/r984c3b42a500f5a6a89fbee436b9432fada5dc27ebab04910aafe4d…
- lists.apache.org/thread.html/r6bb57124a21bb638f552d81650c66684e70fc1ff9f40b6a8840171c…
- lists.apache.org/thread.html/r6670a6c29044bcb77d4e5d165b5bd13fffe37b84caa5d6471b13b3a…
- lists.apache.org/thread.html/r40f0a97b6765de6b8938bc212ee9dfb5101e9efa48bcbbdec02b2a6…
- lists.apache.org/thread.html/r093b405a49fd31efa0d949ac1a887101af1ca95652a66094194ed93…
- lists.apache.org/thread.html/r0928ee574281f8b6156e0a6d0291bfc27100a9dd3f9b0177ece24ae…
- grafana.com/blog/2020/06/03/grafana-6.7.4-and-7.0.2-released-with-important-secu…
- community.grafana.com/t/release-notes-v7-0-x/29381
- community.grafana.com/t/release-notes-v6-7-x/27119
- community.grafana.com/t/grafana-7-0-2-and-6-7-4-security-update/31408
- lists.opensuse.org/opensuse-security-announce/2020-06/msg00060.html
- lists.opensuse.org/opensuse-security-announce/2020-07/msg00083.html
- lists.opensuse.org/opensuse-security-announce/2020-10/msg00009.html
- lists.opensuse.org/opensuse-security-announce/2020-10/msg00017.html
- packetstormsecurity.com/files/158320/Grafana-7.0.1-Denial-Of-Service.html
- openwall.com/lists/oss-security/2020/06/03/4
- openwall.com/lists/oss-security/2020/06/09/2
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-8pjx-jj86-j47p Grafana path traversal | High Known exploited | Also affects github.com/grafana/grafana |
| CVE-2021-39226 Authentication bypass for viewing and deletions of snapshots | High Known exploited | Also affects github.com/grafana/grafana |
| GHSA-3w66-95m3-8jxg Grafana: Pre-authentication denial of service in the public dashboard query handler | High | Also affects github.com/grafana/grafana |
| GHSA-9g84-39mm-q4p3 Grafana geomap panel's XYZ tile layer has a sanitize-then-interpolate ordering bug | Medium | Also affects github.com/grafana/grafana |
| GHSA-f74p-cwhp-x2wx Grafana Loki datasource plugin's callResource handler contains a path traversal vulnerability. | High | Also affects github.com/grafana/grafana |
| GHSA-9493-h4f5-633x Grafana: Path traversal in the Tempo and Loki data source plugins | Medium | Also affects github.com/grafana/grafana |
| GHSA-wfhv-mj62-f5xh Grafana: Users can generate Service Account tokens after permissions removal | High | Also affects github.com/grafana/grafana |
| GHSA-gxcp-jjxh-rwp4 Grafana: SQL Expressions Read File From Disk | Medium | Also affects github.com/grafana/grafana |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor