CVE-2021-43798 in grafana

LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.

What the vulnerability is

Grafana is an open-source platform for monitoring and observability. Grafana versions 8.0.0-beta1 through 8.3.0 (except for patched versions) iss vulnerable to directory traversal, allowing access to local files. The vulnerable URL path is: `<grafana_host_url>/public/plugins//`, where is the plugin ID for any installed plugin. At no time has Grafana Cloud been vulnerable. Users are advised to upgrade to patched versions 8.0.7, 8.1.8, 8.2.7, or 8.3.1. The GitHub Security Advisory contains more information about vulnerable URL paths, mitigation, and the disclosure timeline.

Affected software: grafana

Scores

What LogPulse has for it

How to mitigate it

Upgrade Grafana to 8.3.1, 8.2.7, 8.1.8 or 8.0.7 or later (CVE-2021-43798)

Patch or upgrade. Grafana 8.0.0-beta1 to 8.3.0 lets an unauthenticated user read arbitrary files through the plugin assets path (KEV). Upgrading to a fixed release removes the flaw.

Applies to: Grafana and Grafana Enterprise 8.0.0-beta1 to 8.3.0. Grafana Cloud was patched by Grafana Labs.

  1. Find the Grafana version: the help menu (question mark) in the web UI, or 'grafana-server -v' on the server.
  2. Back up grafana.ini and the Grafana database (grafana.db or the external database).
  3. Upgrade the grafana or grafana-enterprise package to 8.3.1, 8.2.7, 8.1.8 or 8.0.7, or preferably a current supported release: 'sudo apt-get install grafana' or the yum/dnf equivalent; for Docker pull the matching grafana/grafana image.
  4. Restart Grafana and check the version in the help menu.
  5. If you cannot upgrade at once, put Grafana behind a reverse proxy that normalises paths and blocks '..' in /public/plugins/ requests, or restrict access to internal networks.
  6. After upgrading, rotate secrets that Grafana stores in files on the server (the secret_key in grafana.ini, data source passwords, LDAP bind passwords) if the server was reachable from untrusted networks.

Sources:

Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.

We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.

Start free with LogPulse