Vulnerability Name:

CVE-2021-43815 (CCN-215138)

Assigned:2021-12-10
Published:2021-12-10
Updated:2022-03-31
Summary:Grafana is an open-source platform for monitoring and observability. Grafana prior to versions 8.3.2 and 7.5.12 has a directory traversal for arbitrary .csv files. It only affects instances that have the developer testing tool called TestData DB data source enabled and configured. The vulnerability is limited in scope, and only allows access to files with the extension .csv to authenticated users only. Grafana Cloud instances have not been affected by the vulnerability. Versions 8.3.2 and 7.5.12 contain a patch for this issue. There is a workaround available for users who cannot upgrade. Running a reverse proxy in front of Grafana that normalizes the PATH of the request will mitigate the vulnerability. The proxy will have to also be able to handle url encoded paths.
CVSS v3 Severity:4.3 Medium (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N)
3.8 Low (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): Low
Integrity (I): None
Availibility (A): None
4.3 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N)
3.8 Low (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): Low
Integrity (I): None
Availibility (A): None
CVSS v2 Severity:3.5 Low (CVSS v2 Vector: AV:N/AC:M/Au:S/C:P/I:N/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Partial
Integrity (I): None
Availibility (A): None
4.0 Medium (CCN CVSS v2 Vector: AV:N/AC:L/Au:S/C:P/I:N/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Partial
Integrity (I): None
Availibility (A): None
Vulnerability Type:CWE-22
Vulnerability Consequences:Obtain Information
References:Source: MITRE
Type: CNA
CVE-2021-43815

Source: MLIST
Type: Mailing List, Patch, Third Party Advisory
[oss-security] 20211210 CVE-2021-43813 and CVE-2021-43815 - Grafana directory traversal for some .md and .csv files

Source: XF
Type: UNKNOWN
grafana-cve202143815-dir-traversal(215138)

Source: MISC
Type: Patch, Third Party Advisory
https://github.com/grafana/grafana/commit/d6ec6f8ad28f0212e584406730f939105ff6c6d3

Source: MISC
Type: Patch, Third Party Advisory
https://github.com/grafana/grafana/commit/fd48aee61e4328aae8d5303a9efd045fa0ca308d

Source: MISC
Type: Release Notes, Third Party Advisory
https://github.com/grafana/grafana/releases/tag/v8.3.2

Source: CCN
Type: grafana GIT Repository
CVE-2021-43815: Grafana directory traversal for `.csv` files, 8.0.0-beta3 - 8.3.1

Source: CONFIRM
Type: Patch, Third Party Advisory
https://github.com/grafana/grafana/security/advisories/GHSA-7533-c8qv-jm9m

Source: MISC
Type: Patch, Third Party Advisory
https://grafana.com/blog/2021/12/10/grafana-8.3.2-and-7.5.12-released-with-moderate-severity-security-fix/

Source: CCN
Type: oss-sec Mailing List, Fri, 10 Dec 2021 21:52:26 +0100
CVE-2021-43813 and CVE-2021-43815 - Grafana directory traversal for some .md and .csv files

Source: CONFIRM
Type: Third Party Advisory
https://security.netapp.com/advisory/ntap-20220107-0006/

Vulnerable Configuration:Configuration 1:
  • cpe:/a:grafana:grafana:*:*:*:*:*:*:*:* (Version < 7.5.12)
  • OR cpe:/a:grafana:grafana:*:*:*:*:*:*:*:* (Version >= 8.0.0 and < 8.3.2)

  • Configuration CCN 1:
  • cpe:/a:grafana:grafana:8.0.0:beta3:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:127300
    P
    Security update for SUSE Manager Client Tools (Important)
    2022-06-20
    oval:org.opensuse.security:def:6077
    P
    Security update for SUSE Manager Client Tools (Important)
    2022-06-20
    oval:org.opensuse.security:def:125737
    P
    Security update for SUSE Manager Client Tools (Important)
    2022-06-20
    oval:org.opensuse.security:def:126903
    P
    Security update for SUSE Manager Client Tools (Important)
    2022-06-20
    oval:org.opensuse.security:def:102173
    P
    Security update for SUSE Manager Client Tools (Moderate)
    2022-04-25
    BACK
    grafana grafana *
    grafana grafana *
    grafana grafana 8.0.0 beta3