Vulnerability Name:

CVE-2021-43813 (CCN-215139)

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 contains a directory traversal vulnerability for fully lowercase or fully uppercase .md files. The vulnerability is limited in scope, and only allows access to files with the extension .md to authenticated users only. Grafana Cloud instances have not been affected by the vulnerability. Users should upgrade to patched versions 8.3.2 or 7.5.12. 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. Alternatively, for fully lowercase or fully uppercase .md files, users can block /api/plugins/.*/markdown/.* without losing any functionality beyond inlined plugin help text.
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
4.3 Medium (REDHAT 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 (REDHAT 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:4.0 Medium (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
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
CWE-22
Vulnerability Consequences:Obtain Information
References:Source: MITRE
Type: CNA
CVE-2021-43813

Source: MLIST
Type: Mailing List, Patch, Release Notes, 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-cve202143813-dir-traversal(215139)

Source: MISC
Type: Broken Link
https://github.com/github/securitylab-vulnerabilities/commit/689fc5d9fd665be4d5bba200a6a433b532172d0f

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

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, Release Notes, Third Party Advisory
https://github.com/grafana/grafana/security/advisories/GHSA-c3q8-26ph-9g2q

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

Source: MISC
Type: Release Notes, Vendor Advisory
https://grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-12/

Source: MISC
Type: Release Notes, Vendor Advisory
https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-3-2/

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 >= 5.0.0 and < 7.5.12)
  • OR cpe:/a:grafana:grafana:*:*:*:*:*:*:*:* (Version >= 8.0.0 and < 8.3.2)

  • Configuration RedHat 1:
  • cpe:/a:redhat:enterprise_linux:8:*:*:*:*:*:*:*

  • Configuration RedHat 2:
  • cpe:/a:redhat:enterprise_linux:8::appstream:*:*:*:*:*

  • 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: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:127300
    P
    Security update for SUSE Manager Client Tools (Important)
    2022-06-20
    oval:com.redhat.rhsa:def:20221781
    P
    RHSA-2022:1781: grafana security, bug fix, and enhancement update (Low)
    2022-05-10
    oval:org.opensuse.security:def:102173
    P
    Security update for SUSE Manager Client Tools (Moderate)
    2022-04-25
    oval:org.opensuse.security:def:112352
    P
    grafana-7.5.12-1.1 on GA media (Moderate)
    2022-01-17
    oval:org.opensuse.security:def:111859
    P
    Security update for grafana (Important) (in QA)
    2022-01-11
    oval:org.opensuse.security:def:67378
    P
    Security update for grafana (Important) (in QA)
    2022-01-11
    oval:org.opensuse.security:def:6289
    P
    Security update for grafana (Important) (in QA)
    2022-01-11
    oval:org.opensuse.security:def:76446
    P
    Security update for grafana (Important) (in QA)
    2022-01-11
    BACK
    grafana grafana *
    grafana grafana *
    grafana grafana 8.0.0 beta3