ghsa-8pjx-jj86-j47p
Vulnerability from github
Published
2024-02-01 00:16
Modified
2024-02-01 00:16
Summary
Grafana path traversal
Details

Today we are releasing Grafana 8.3.1, 8.2.7, 8.1.8, 8.0.7. This patch release includes a high severity security fix that affects Grafana versions from v8.0.0-beta1 through v8.3.0.

Release v8.3.1, only containing a security fix:

Release v8.2.7, only containing a security fix:

Release v8.1.8, only containing a security fix:

Release v8.0.7, only containing a security fix:

Path Traversal (CVE-2021-43798)

Summary

On 2021-12-03, we received a report that Grafana is vulnerable to directory traversal, allowing access to local files. We have confirmed this for versions 8.0.0-beta1 to 8.3.0. Thanks to our defense-in-depth approach, at no time has Grafana Cloud been vulnerable.

The vulnerable URL path is: /public/plugins//, where is the plugin ID for any installed plugin.

Every Grafana instance comes with pre-installed plugins like the Prometheus plugin or MySQL plugin so the following URLs are vulnerable for every instance:

  • /public/plugins/alertlist/
  • /public/plugins/annolist/
  • /public/plugins/barchart/
  • /public/plugins/bargauge/
  • /public/plugins/candlestick/
  • /public/plugins/cloudwatch/
  • /public/plugins/dashlist/
  • /public/plugins/elasticsearch/
  • /public/plugins/gauge/
  • /public/plugins/geomap/
  • /public/plugins/gettingstarted/
  • /public/plugins/grafana-azure-monitor-datasource/
  • /public/plugins/graph/
  • /public/plugins/heatmap/
  • /public/plugins/histogram/
  • /public/plugins/influxdb/
  • /public/plugins/jaeger/
  • /public/plugins/logs/
  • /public/plugins/loki/
  • /public/plugins/mssql/
  • /public/plugins/mysql/
  • /public/plugins/news/
  • /public/plugins/nodeGraph/
  • /public/plugins/opentsdb
  • /public/plugins/piechart/
  • /public/plugins/pluginlist/
  • /public/plugins/postgres/
  • /public/plugins/prometheus/
  • /public/plugins/stackdriver/
  • /public/plugins/stat/
  • /public/plugins/state-timeline/
  • /public/plugins/status-history/
  • /public/plugins/table/
  • /public/plugins/table-old/
  • /public/plugins/tempo/
  • /public/plugins/testdata/
  • /public/plugins/text/
  • /public/plugins/timeseries/
  • /public/plugins/welcome/
  • /public/plugins/zipkin/

We have received CVE-2021-43798 for this issue. The CVSS score for this vulnerability is 7.5 High (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) for Grafana versions 8.0.0-beta1 to 8.3.0

Affected versions with high severity

Grafana 8.0.0-beta1 to 8.3.0

Solutions and mitigations

All installations between v8.0.0-beta1 and v8.3.0 should be upgraded as soon as possible.

If you can not upgrade, running a reverse proxy in front of Grafana that normalizes the PATH of the request will mitigate the vulnerability. For example the normalize_path setting in envoy.

Thanks to our defense-in-depth approach, Grafana Cloud instances have not been affected by the vulnerability.

As always, we closely coordinated with all cloud providers licensed to offer Grafana Pro. They have received early notification under embargo and confirmed that their offerings are secure at the time of this announcement. In alphabetical order, this is applicable to Amazon Managed Grafana, and Azure Managed Grafana.

Timeline and postmortem

Here is a detailed timeline starting from when we originally learned of the issue. All times in UTC.

  • 2021-12-03: Security researcher sends the initial report
  • 2021-12-03: Confirmed for 8.0.0-beta1 through 8.3.0
  • 2021-12-03: Confirmed that Grafana Cloud is not vulnerable
  • 2021-12-03: Security fix determined and committed to Git
  • 2021-12-03: Release timeline determined: 2021-12-07 for private customer release, 2021-12-14 for public release
  • 2021-12-06: Second report about the vulnerability received
  • 2021-12-07: We received information that the vulnerability has been leaked to the public, turning it into a 0 day
  • 2021-12-07: Decision made to release as quickly as feasible
  • 2021-12-07: Private release with reduced two hour grace period instead of the usual 1 week
  • 2021-12-07: Public release

Acknowledgements

We would like to thank Jordy Versmissen for finding the vulnerability and alerting us to it.

Reporting security Issues

If you think you have found a security vulnerability, please send a report to security@grafana.com. This address can be used for all of Grafana Labs' open source and commercial products (including but not limited to Grafana, Grafana Cloud, Grafana Enterprise, and grafana.com). We can accept only vulnerability reports at this address. We would prefer that you encrypt your message to us by using our PGP key. The key fingerprint is

F988 7BEA 027A 049F AE8E 5CAA D125 8932 BE24 C5CA

The key is available from keyserver.ubuntu.com.

Security announcements

We maintain a security category on our blog, where we will always post a summary, remediation, and mitigation details for any patch containing security fixes.

You can also subscribe to our RSS feed.

Show details on source website


{
  "affected": [
    {
      "package": {
        "ecosystem": "Go",
        "name": "github.com/grafana/grafana"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "8.3.0"
            },
            {
              "fixed": "8.3.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Go",
        "name": "github.com/grafana/grafana"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "8.2.0"
            },
            {
              "fixed": "8.2.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Go",
        "name": "github.com/grafana/grafana"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "8.1.0"
            },
            {
              "fixed": "8.1.8"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Go",
        "name": "github.com/grafana/grafana"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "8.0.0-beta1"
            },
            {
              "fixed": "8.0.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2021-43798"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-22"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2024-02-01T00:16:10Z",
    "nvd_published_at": "2021-12-07T19:15:00Z",
    "severity": "HIGH"
  },
  "details": "Today we are releasing Grafana 8.3.1, 8.2.7, 8.1.8, 8.0.7. This patch release includes a high severity security fix that affects Grafana versions from v8.0.0-beta1 through v8.3.0.\n\nRelease v8.3.1, only containing a security fix:\n\n- [Download Grafana 8.3.1](https://grafana.com/grafana/download/8.3.1)\n- [Release notes](https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-3-1/)\n\nRelease v8.2.7, only containing a security fix:\n\n- [Download Grafana 8.2.7](https://grafana.com/grafana/download/8.2.7)\n- [Release notes](https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-2-7/)\n\nRelease v8.1.8, only containing a security fix:\n\n- [Download Grafana 8.1.8](https://grafana.com/grafana/download/8.1.8)\n- [Release notes](https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-8/)\n\nRelease v8.0.7, only containing a security fix:\n\n- [Download Grafana 8.0.7](https://grafana.com/grafana/download/8.0.7)\n- [Release notes](https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-0-7/)\n\n\n## Path Traversal ([CVE-2021-43798](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-43798))\n\n### Summary \n\nOn 2021-12-03, we received a report that Grafana is vulnerable to directory traversal, allowing access to local files. We have confirmed this for versions 8.0.0-beta1 to 8.3.0. Thanks to our defense-in-depth approach, at no time has [Grafana Cloud](https://grafana.com/cloud) been vulnerable.\n\nThe vulnerable URL path is: \u003cgrafana_host_url\u003e/public/plugins/\u003cplugin-id\u003e/, where \u003cplugin-id\u003e is the plugin ID for any installed plugin.\n\nEvery Grafana instance comes with pre-installed plugins like the Prometheus plugin or MySQL plugin so the following URLs are vulnerable for every instance:\n\n* \u003cgrafana_host_url\u003e/public/plugins/alertlist/\n* \u003cgrafana_host_url\u003e/public/plugins/annolist/\n* \u003cgrafana_host_url\u003e/public/plugins/barchart/\n* \u003cgrafana_host_url\u003e/public/plugins/bargauge/\n* \u003cgrafana_host_url\u003e/public/plugins/candlestick/\n* \u003cgrafana_host_url\u003e/public/plugins/cloudwatch/\n* \u003cgrafana_host_url\u003e/public/plugins/dashlist/\n* \u003cgrafana_host_url\u003e/public/plugins/elasticsearch/\n* \u003cgrafana_host_url\u003e/public/plugins/gauge/\n* \u003cgrafana_host_url\u003e/public/plugins/geomap/\n* \u003cgrafana_host_url\u003e/public/plugins/gettingstarted/\n* \u003cgrafana_host_url\u003e/public/plugins/grafana-azure-monitor-datasource/\n* \u003cgrafana_host_url\u003e/public/plugins/graph/\n* \u003cgrafana_host_url\u003e/public/plugins/heatmap/\n* \u003cgrafana_host_url\u003e/public/plugins/histogram/\n* \u003cgrafana_host_url\u003e/public/plugins/influxdb/\n* \u003cgrafana_host_url\u003e/public/plugins/jaeger/\n* \u003cgrafana_host_url\u003e/public/plugins/logs/\n* \u003cgrafana_host_url\u003e/public/plugins/loki/\n* \u003cgrafana_host_url\u003e/public/plugins/mssql/\n* \u003cgrafana_host_url\u003e/public/plugins/mysql/\n* \u003cgrafana_host_url\u003e/public/plugins/news/\n* \u003cgrafana_host_url\u003e/public/plugins/nodeGraph/\n* \u003cgrafana_host_url\u003e/public/plugins/opentsdb\n* \u003cgrafana_host_url\u003e/public/plugins/piechart/\n* \u003cgrafana_host_url\u003e/public/plugins/pluginlist/\n* \u003cgrafana_host_url\u003e/public/plugins/postgres/\n* \u003cgrafana_host_url\u003e/public/plugins/prometheus/\n* \u003cgrafana_host_url\u003e/public/plugins/stackdriver/\n* \u003cgrafana_host_url\u003e/public/plugins/stat/\n* \u003cgrafana_host_url\u003e/public/plugins/state-timeline/\n* \u003cgrafana_host_url\u003e/public/plugins/status-history/\n* \u003cgrafana_host_url\u003e/public/plugins/table/\n* \u003cgrafana_host_url\u003e/public/plugins/table-old/\n* \u003cgrafana_host_url\u003e/public/plugins/tempo/\n* \u003cgrafana_host_url\u003e/public/plugins/testdata/\n* \u003cgrafana_host_url\u003e/public/plugins/text/\n* \u003cgrafana_host_url\u003e/public/plugins/timeseries/\n* \u003cgrafana_host_url\u003e/public/plugins/welcome/\n* \u003cgrafana_host_url\u003e/public/plugins/zipkin/\n\nWe have received CVE-2021-43798 for this issue. The CVSS score for this vulnerability is 7.5 High (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) for Grafana versions 8.0.0-beta1 to 8.3.0 \n\n### Affected versions with high severity \n\nGrafana 8.0.0-beta1 to 8.3.0\n\n### Solutions and mitigations\n\nAll installations between v8.0.0-beta1 and v8.3.0 should be upgraded as soon as possible.\n\nIf you can not upgrade, running a reverse proxy in front of Grafana that normalizes the PATH of the request will mitigate the vulnerability. For example the normalize_path setting in envoy.\n\nThanks to our defense-in-depth approach, [Grafana Cloud](https://grafana.com/cloud) instances have not been affected by the vulnerability.\n\nAs always, we closely coordinated with all cloud providers licensed to offer Grafana Pro. They have received early notification under embargo and confirmed that their offerings are secure at the time of this announcement. In alphabetical order, this is applicable to Amazon Managed Grafana, and Azure Managed Grafana.\n\n### Timeline and postmortem\n\nHere is a detailed timeline starting from when we originally learned of the issue. All times in UTC.\n\n* 2021-12-03: Security researcher sends the initial report\n* 2021-12-03: Confirmed for 8.0.0-beta1 through 8.3.0\n* 2021-12-03: Confirmed that Grafana Cloud is not vulnerable\n* 2021-12-03: Security fix determined and committed to Git\n* 2021-12-03: Release timeline determined: 2021-12-07 for private customer release, 2021-12-14 for public release\n* 2021-12-06: Second report about the vulnerability received\n* 2021-12-07: We received information that the vulnerability has been leaked to the public, turning it into a 0 day\n* 2021-12-07: Decision made to release as quickly as feasible\n* 2021-12-07: Private release with reduced two hour grace period instead of the usual 1 week\n* 2021-12-07: Public release\n\n### Acknowledgements\n\nWe would like to thank [Jordy Versmissen](https://twitter.com/j0v0x0) for finding the vulnerability and alerting us to it.\n\n## Reporting security Issues\n\nIf you think you have found a security vulnerability, please send a report to [security@grafana.com](mailto:security@grafana.com). This address can be used for all of\nGrafana Labs\u0027 open source and commercial products (including but not limited to Grafana, Grafana Cloud, Grafana Enterprise, and grafana.com). We can accept only vulnerability reports at this address. We would prefer that you encrypt your message to us by using our PGP key. The key fingerprint is\n\nF988 7BEA 027A 049F AE8E  5CAA D125 8932 BE24 C5CA\n\nThe key is available from [keyserver.ubuntu.com](https://keyserver.ubuntu.com/pks/lookup?search=0xF9887BEA027A049FAE8E5CAAD1258932BE24C5CA\u0026fingerprint=on\u0026op=index).\n\n## Security announcements\n\nWe maintain a [security category on our blog](https://grafana.com/tags/security/), where we will always post a summary, remediation, and mitigation details for any patch containing security fixes. \n\nYou can also subscribe to our [RSS feed](https://grafana.com/tags/security/index.xml).\n",
  "id": "GHSA-8pjx-jj86-j47p",
  "modified": "2024-02-01T00:16:10Z",
  "published": "2024-02-01T00:16:10Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/grafana/grafana/security/advisories/GHSA-8pjx-jj86-j47p"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-43798"
    },
    {
      "type": "WEB",
      "url": "https://github.com/grafana/grafana/commit/c798c0e958d15d9cc7f27c72113d572fa58545ce"
    },
    {
      "type": "WEB",
      "url": "https://grafana.com/blog/2021/12/08/an-update-on-0day-cve-2021-43798-grafana-directory-traversal"
    },
    {
      "type": "WEB",
      "url": "https://security.netapp.com/advisory/ntap-20211229-0004"
    },
    {
      "type": "WEB",
      "url": "http://packetstormsecurity.com/files/165198/Grafana-Arbitrary-File-Reading.html"
    },
    {
      "type": "WEB",
      "url": "http://packetstormsecurity.com/files/165221/Grafana-8.3.0-Directory-Traversal-Arbitrary-File-Read.html"
    },
    {
      "type": "WEB",
      "url": "http://www.openwall.com/lists/oss-security/2021/12/09/2"
    },
    {
      "type": "WEB",
      "url": "http://www.openwall.com/lists/oss-security/2021/12/10/4"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Grafana path traversal"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading...

Loading...

Loading...

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.