CVE-2021-43813: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22)
value: 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.
CWE description: The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
CVSS v3 base score: 4.3
Published: 2021-12-10T18:15Z
Repository: https://github.com/grafana/grafana
Language: Markdown
Files changed: CHANGELOG.md, docs/sources/release-notes/_index.md, docs/sources/release-notes/release-notes-7-5-12.md, docs/sources/release-notes/release-notes-8-3-2.md, latest.json
Commit date: 2021-12-10 16:52:27 +0100
Commit message: chore(release-notes): add release notes for 8.2.3 and 7.5.12 (#42987)

* chore(release-notes): add release notes for 8.2.3 and 7.5.12

* chore(release-notes): add release notes to the index

* chore(release-notes): add release notes to index and changelog

* chore(release-notes): add release notes to index and changelog

* chore(latest.json): bump
Diff: diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1930a061eb..695be1c2f6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
+<!-- 8.3.2 START -->
+
+# 8.3.2 (2021-12-10)
+
+- **Security**: Fixes CVE-2021-43813 and CVE-2021-PENDING. For more information, see our [blog](https://grafana.com/blog/2021/12/10/grafana-8.3.2-and-7.5.12-released-with-moderate-severity-security-fix/
+
+<!-- 8.3.2 END -->
+
 <!-- 8.3.1 START -->
 
 # 8.3.1 (2021-12-07)
 
 - **Security**: Fixes CVE-2021-43798. For more information, see our [blog](https://grafana.com/blog/2021/12/07/grafana-8.3.1-8.2.7-8.1.8-and-8.0.7-released-with-high-severity-security-fix/)
diff --git a/docs/sources/release-notes/_index.md b/docs/sources/release-notes/_index.md
index 97d17192b2..3feeca8b75 100644
--- a/docs/sources/release-notes/_index.md
+++ b/docs/sources/release-notes/_index.md
@@ -6,10 +6,11 @@ weight = 10000
 # Release notes
 
 Here you can find detailed release notes that list everything that is included in every release as well as notices
 about deprecations, breaking changes as well as changes that relate to plugin development.
 
+- [Release notes for 8.3.2]({{< relref "release-notes-8-3-2" >}})
 - [Release notes for 8.3.1]({{< relref "release-notes-8-3-1" >}})
 - [Release notes for 8.3.0]({{< relref "release-notes-8-3-0" >}})
 - [Release notes for 8.3.0-beta2]({{< relref "release-notes-8-3-0-beta2" >}})
 - [Release notes for 8.3.0-beta1]({{< relref "release-notes-8-3-0-beta1" >}})
 - [Release notes for 8.2.7]({{< relref "release-notes-8-2-7" >}})
@@ -43,10 +44,11 @@ about deprecations, breaking changes as well as changes that relate to plugin de
 - [Release notes for 8.0.1]({{< relref "release-notes-8-0-1" >}})
 - [Release notes for 8.0.0]({{< relref "release-notes-8-0-0" >}})
 - [Release notes for 8.0.0-beta3]({{< relref "release-notes-8-0-0-beta3" >}})
 - [Release notes for 8.0.0-beta2]({{< relref "release-notes-8-0-0-beta2" >}})
 - [Release notes for 8.0.0-beta1]({{< relref "release-notes-8-0-0-beta1" >}})
+- [Release notes for 7.5.12]({{< relref "release-notes-7-5-12" >}})
 - [Release notes for 7.5.11]({{< relref "release-notes-7-5-11" >}})
 - [Release notes for 7.5.10]({{< relref "release-notes-7-5-10" >}})
 - [Release notes for 7.5.9]({{< relref "release-notes-7-5-9" >}})
 - [Release notes for 7.5.8]({{< relref "release-notes-7-5-8" >}})
 - [Release notes for 7.5.7]({{< relref "release-notes-7-5-7" >}})
diff --git a/docs/sources/release-notes/release-notes-7-5-12.md b/docs/sources/release-notes/release-notes-7-5-12.md
new file mode 100644
index 0000000000..b8c7f3fe77
--- /dev/null
+++ b/docs/sources/release-notes/release-notes-7-5-12.md
@@ -0,0 +1,13 @@
++++
+title = "Release notes for Grafana 7.5.12"
+[_build]
+list = false
++++
+
+<!-- Auto generated by update changelog github action -->
+
+# Release notes for Grafana 7.5.12
+
+### Bug fixes
+
+- **Security**: Fixes CVE-2021-43813 and CVE-2021-PENDING. For more information, see our [blog](https://grafana.com/blog/2021/12/10/grafana-8.3.2-and-7.5.12-released-with-moderate-severity-security-fix/)
diff --git a/docs/sources/release-notes/release-notes-8-3-2.md b/docs/sources/release-notes/release-notes-8-3-2.md
new file mode 100644
index 0000000000..e6937deec6
--- /dev/null
+++ b/docs/sources/release-notes/release-notes-8-3-2.md
@@ -0,0 +1,13 @@
++++
+title = "Release notes for Grafana 8.3.2"
+[_build]
+list = false
++++
+
+<!-- Auto generated by update changelog github action -->
+
+# Release notes for Grafana 8.3.2
+
+### Bug fixes
+
+- **Security**: Fixes CVE-2021-43813 and CVE-2021-PENDING. For more information, see our [blog](https://grafana.com/blog/2021/12/10/grafana-8.3.2-and-7.5.12-released-with-moderate-severity-security-fix/)
diff --git a/latest.json b/latest.json
index c46870a408..f3422c14cf 100644
--- a/latest.json
+++ b/latest.json
@@ -1,4 +1,4 @@
 {
-  "stable": "8.3.1",
-  "testing": "8.3.1"
+  "stable": "8.3.2",
+  "testing": "8.3.2"
 }

Vulnerable code:   "stable": "8.3.1",
  "testing": "8.3.1"
Fixed code: <!-- 8.3.2 START -->

# 8.3.2 (2021-12-10)

- **Security**: Fixes CVE-2021-43813 and CVE-2021-PENDING. For more information, see our [blog](https://grafana.com/blog/2021/12/10/grafana-8.3.2-and-7.5.12-released-with-moderate-severity-security-fix/

<!-- 8.3.2 END -->

- [Release notes for 8.3.2]({{< relref "release-notes-8-3-2" >}})
- [Release notes for 7.5.12]({{< relref "release-notes-7-5-12" >}})
title = "Release notes for Grafana 7.5.12"
[_build]
list = false

<!-- Auto generated by update changelog github action -->

# Release notes for Grafana 7.5.12

### Bug fixes

- **Security**: Fixes CVE-2021-43813 and CVE-2021-PENDING. For more information, see our [blog](https://grafana.com/blog/2021/12/10/grafana-8.3.2-and-7.5.12-released-with-moderate-severity-security-fix/)
title = "Release notes for Grafana 8.3.2"
[_build]
list = false

<!-- Auto generated by update changelog github action -->

# Release notes for Grafana 8.3.2

### Bug fixes

- **Security**: Fixes CVE-2021-43813 and CVE-2021-PENDING. For more information, see our [blog](https://grafana.com/blog/2021/12/10/grafana-8.3.2-and-7.5.12-released-with-moderate-severity-security-fix/)
  "stable": "8.3.2",
  "testing": "8.3.2"