CVE-2020-13379: Github.com/grafana/grafana Server Side Request Forgery Vulnerability

MODERATE
Advisory Identifier: GHSA-wc9w-wvq2-ffm9
CVSS 5.8
CWE-918
Published
Advisory Summary

CVE-2020-13379 is a MODERATE (CVSS 5.8) server side request forgery vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Github.com/grafana/grafana libraries in the Go ecosystem. The issue involves server side request forgery in grafana. Remediation is available by upgrading affected packages to version 6.7.4, 7.0.2.

CVE-2020-13379 at a Glance

CVE Identifier CVE-2020-13379
GHSA Identifier GHSA-wc9w-wvq2-ffm9
Severity MODERATE
CVSS v3.1 Base Score 5.8
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Github.com/grafana/grafana
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (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 (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2020-13379

To remediate this vulnerability, upgrade all affected Github.com/grafana/grafana dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/grafana/grafana fixed: 6.7.4
Upgrade github.com/grafana/grafana to 6.7.4
github.com/grafana/grafana fixed: 7.0.2
Upgrade github.com/grafana/grafana to 7.0.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/grafana/grafana

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-13379, inspect your project dependencies for Github.com/grafana/grafana:

inspect dependencies for github.com/grafana/grafana

Analyze the terminal output to locate any version of Github.com/grafana/grafana in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.7.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where 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. In Github.com/grafana/grafana, 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

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.

CVE-2020-13379 Affected Github.com/grafana/grafana Versions

2 component(s)
Fixed Versions:
6.7.47.0.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/grafana/grafana
Go
≥ 3.0.1
< 6.7.4
6.7.4
github.com/grafana/grafana
Go
≥ 7.0.0
< 7.0.2
7.0.2

References

NVD — CVE-2020-13379 NVD
https://nvd.nist.gov/vuln/detail/CVE-2020-13379
Security Fix Commit FIX COMMIT
https://github.com/grafana/grafana/commit/ba953be95f0302c2ea80d23f1e5f2c1847365192
www.exploit-db.com/exploits/48638 WEB
https://www.exploit-db.com/exploits/48638
Github.com/grafana/grafana Security Information SECURITY
https://security.netapp.com/advisory/ntap-20200608-0006
rhynorater.github.io/cve-2020-13379-writ... WEB
https://rhynorater.github.io/CVE-2020-13379-Write-Up
mostwanted002.cf/post/grafanados WEB
https://mostwanted002.cf/post/grafanados
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O2KSCCGKNEENZN3DW7TSPFBBUZH3YZXZ
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EEKSZ6GE4EDOFZ23NGYWOCMD6O4JF5SO
lists.apache.org/thread.html/rff7112... WEB
https://lists.apache.org/thread.html/rff71126fa7d9f572baafb9be44078ad409c85d2c0f3e26664f1ef5a2@%3Cdev.ambari.apache.org%3E
lists.apache.org/thread.html/re7c4b2... WEB
https://lists.apache.org/thread.html/re7c4b251b52f49ba6ef752b829bca9565faaf93d03206b1db6644d31@%3Cdev.ambari.apache.org%3E
lists.apache.org/thread.html/re75f59... WEB
https://lists.apache.org/thread.html/re75f59639f3bc1d14c7ab362bc4485ade84f3c6a3c1a03200c20fe13@%3Cissues.ambari.apache.org%3E
lists.apache.org/thread.html/rd0fd28... WEB
https://lists.apache.org/thread.html/rd0fd283e3844b9c54cd5ecc92d966f96d3f4318815bbf3ac41f9c820@%3Ccommits.ambari.apache.org%3E
lists.apache.org/thread.html/rba0247... WEB
https://lists.apache.org/thread.html/rba0247a27be78bd14046724098462d058a9969400a82344b3007cf90@%3Cdev.ambari.apache.org%3E
lists.apache.org/thread.html/rad99b0... WEB
https://lists.apache.org/thread.html/rad99b06d7360a5cf6e394afb313f8901dcd4cb777aee9c9197b3b23d@%3Cdev.ambari.apache.org%3E
lists.apache.org/thread.html/r984c3b... WEB
https://lists.apache.org/thread.html/r984c3b42a500f5a6a89fbee436b9432fada5dc27ebab04910aafe4da@%3Cissues.ambari.apache.org%3E
lists.apache.org/thread.html/r6bb571... WEB
https://lists.apache.org/thread.html/r6bb57124a21bb638f552d81650c66684e70fc1ff9f40b6a8840171cd@%3Cissues.ambari.apache.org%3E
lists.apache.org/thread.html/r6670a6... WEB
https://lists.apache.org/thread.html/r6670a6c29044bcb77d4e5d165b5bd13fffe37b84caa5d6471b13b3a2@%3Cdev.ambari.apache.org%3E
lists.apache.org/thread.html/r40f0a9... WEB
https://lists.apache.org/thread.html/r40f0a97b6765de6b8938bc212ee9dfb5101e9efa48bcbbdec02b2a60@%3Cissues.ambari.apache.org%3E
lists.apache.org/thread.html/r093b40... WEB
https://lists.apache.org/thread.html/r093b405a49fd31efa0d949ac1a887101af1ca95652a66094194ed933@%3Cdev.ambari.apache.org%3E
lists.apache.org/thread.html/r0928ee... WEB
https://lists.apache.org/thread.html/r0928ee574281f8b6156e0a6d0291bfc27100a9dd3f9b0177ece24ae4@%3Cdev.ambari.apache.org%3E
Github.com/grafana/grafana Release RELEASE
https://grafana.com/blog/2020/06/03/grafana-6.7.4-and-7.0.2-released-with-important-security-fix
community.grafana.com/t/release-notes-v7-... WEB
https://community.grafana.com/t/release-notes-v7-0-x/29381
community.grafana.com/t/release-notes-v6-... WEB
https://community.grafana.com/t/release-notes-v6-7-x/27119
Github.com/grafana/grafana Security Information SECURITY
https://community.grafana.com/t/grafana-7-0-2-and-6-7-4-security-update/31408
Github.com/grafana/grafana Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2020-06/msg00060.html
Github.com/grafana/grafana Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00083.html
Github.com/grafana/grafana Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00009.html
Github.com/grafana/grafana Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00017.html
Github.com/grafana/grafana Security Information SECURITY
http://packetstormsecurity.com/files/158320/Grafana-7.0.1-Denial-Of-Service.html
Github.com/grafana/grafana Security Information SECURITY
http://www.openwall.com/lists/oss-security/2020/06/03/4
Github.com/grafana/grafana Security Information SECURITY
http://www.openwall.com/lists/oss-security/2020/06/09/2

Frequently Asked Questions

What is CVE-2020-13379?
CVE-2020-13379 is a security vulnerability in Github.com/grafana/grafana involving Server Side Request Forgery in Grafana under CWE-918: Server-Side Request Forgery (SSRF).
Which Github.com/grafana/grafana versions are affected?
Affected versions include releases prior to 6.7.4, 7.0.2 across affected packages: github.com/grafana/grafana.
What version fixes CVE-2020-13379?
Upgrading to 6.7.4, 7.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/grafana/grafana affected?
Yes, github.com/grafana/grafana is affected in releases prior to 6.7.4, 7.0.2. Upgrade your dependency to 6.7.4, 7.0.2 or later.
What is the CVSS score of CVE-2020-13379?
CVE-2020-13379 has a CVSS v3.1 base score of 5.8 (MODERATE) with vector string 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.
What CWE is associated with CVE-2020-13379?
CVE-2020-13379 is classified under 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.).
How can I check Go dependencies for CVE-2020-13379?
Run the dependency tree command: 'inspect dependencies for github.com/grafana/grafana'. 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-wc9w-wvq2-ffm9",
  "modified" : "2023-10-02T14:34:31Z",
  "published" : "2022-02-15T01:57:18Z",
  "aliases" : [ "CVE-2020-13379" ],
  "summary" : "Server Side Request Forgery in Grafana",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.1"
      }, {
        "fixed" : "6.7.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-13379"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/grafana/commit/ba953be95f0302c2ea80d23f1e5f2c1847365192"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/48638"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20200608-0006"
  }, {
    "type" : "WEB",
    "url" : "https://rhynorater.github.io/CVE-2020-13379-Write-Up"
  }, {
    "type" : "WEB",
    "url" : "https://mostwanted002.cf/post/grafanados"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O2KSCCGKNEENZN3DW7TSPFBBUZH3YZXZ"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EEKSZ6GE4EDOFZ23NGYWOCMD6O4JF5SO"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rff71126fa7d9f572baafb9be44078ad409c85d2c0f3e26664f1ef5a2@%3Cdev.ambari.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/re7c4b251b52f49ba6ef752b829bca9565faaf93d03206b1db6644d31@%3Cdev.ambari.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/re75f59639f3bc1d14c7ab362bc4485ade84f3c6a3c1a03200c20fe13@%3Cissues.ambari.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rd0fd283e3844b9c54cd5ecc92d966f96d3f4318815bbf3ac41f9c820@%3Ccommits.ambari.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rba0247a27be78bd14046724098462d058a9969400a82344b3007cf90@%3Cdev.ambari.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rad99b06d7360a5cf6e394afb313f8901dcd4cb777aee9c9197b3b23d@%3Cdev.ambari.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r984c3b42a500f5a6a89fbee436b9432fada5dc27ebab04910aafe4da@%3Cissues.ambari.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r6bb57124a21bb638f552d81650c66684e70fc1ff9f40b6a8840171cd@%3Cissues.ambari.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r6670a6c29044bcb77d4e5d165b5bd13fffe37b84caa5d6471b13b3a2@%3Cdev.ambari.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r40f0a97b6765de6b8938bc212ee9dfb5101e9efa48bcbbdec02b2a60@%3Cissues.ambari.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r093b405a49fd31efa0d949ac1a887101af1ca95652a66094194ed933@%3Cdev.ambari.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r0928ee574281f8b6156e0a6d0291bfc27100a9dd3f9b0177ece24ae4@%3Cdev.ambari.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://grafana.com/blog/2020/06/03/grafana-6.7.4-and-7.0.2-released-with-important-security-fix"
  }, {
    "type" : "WEB",
    "url" : "https://community.grafana.com/t/release-notes-v7-0-x/29381"
  }, {
    "type" : "WEB",
    "url" : "https://community.grafana.com/t/release-notes-v6-7-x/27119"
  }, {
    "type" : "WEB",
    "url" : "https://community.grafana.com/t/grafana-7-0-2-and-6-7-4-security-update/31408"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2020-06/msg00060.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00083.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00009.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00017.html"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/158320/Grafana-7.0.1-Denial-Of-Service.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2020/06/03/4"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2020/06/09/2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-14T16:27:02Z",
    "nvd_published_at" : null
  }
}