{
  "threat_severity" : "Important",
  "public_date" : "2021-10-05T00:00:00Z",
  "bugzilla" : {
    "description" : "grafana: Snapshot authentication bypass",
    "id" : "2011063",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2011063"
  },
  "cvss3" : {
    "cvss3_base_score" : "7.3",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
    "status" : "verified"
  },
  "cwe" : "CWE-639",
  "details" : [ "Grafana is an open source data visualization platform. In affected versions unauthenticated and authenticated users are able to view the snapshot with the lowest database key by accessing the literal paths: /dashboard/snapshot/:key, or /api/snapshots/:key. If the snapshot \"public_mode\" configuration setting is set to true (vs default of false), unauthenticated users are able to delete the snapshot with the lowest database key by accessing the literal path: /api/snapshots-delete/:deleteKey. Regardless of the snapshot \"public_mode\" setting, authenticated users are able to delete the snapshot with the lowest database key by accessing the literal paths: /api/snapshots/:key, or /api/snapshots-delete/:deleteKey. The combination of deletion and viewing enables a complete walk through all snapshot data while resulting in complete snapshot data loss. This issue has been resolved in versions 8.1.6 and 7.5.11. If for some reason you cannot upgrade you can use a reverse proxy or similar to block access to the literal paths: /api/snapshots/:key, /api/snapshots-delete/:deleteKey, /dashboard/snapshot/:key, and /api/snapshots/:key. They have no normal function and can be disabled without side effects.", "An authentication bypass was found in grafana. An attacker on the network is able to view and delete snapshots by accessing a literal path." ],
  "statement" : "In OpenShift Container Platform (OCP), Red Hat Advanced Cluster Management for Kubernetes (RHACM), and OpenShift ServiceMesh (OSSM) the grafana components are protected by OpenShift OAuth that reduces the impact of this flaw to Moderate. Access to the grafana panel where snapshots can be created requires admin permissions. Additionally snapshots by default are not available to unauthenticated users and don't contain sensitive data.\nSince snapshots by default are not available to unauthenticated users and don't contain sensitive data, impact has been lowered for Red Hat Gluster Storage 3.",
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2021-10-12T00:00:00Z",
    "advisory" : "RHSA-2021:3771",
    "cpe" : "cpe:/a:redhat:enterprise_linux:8",
    "package" : "grafana-0:7.3.6-3.el8_4"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.1 Extended Update Support",
    "release_date" : "2021-10-12T00:00:00Z",
    "advisory" : "RHSA-2021:3769",
    "cpe" : "cpe:/a:redhat:rhel_eus:8.1",
    "package" : "grafana-0:6.2.2-7.el8_1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.2 Extended Update Support",
    "release_date" : "2021-10-12T00:00:00Z",
    "advisory" : "RHSA-2021:3770",
    "cpe" : "cpe:/a:redhat:rhel_eus:8.2",
    "package" : "grafana-0:6.3.6-3.el8_2"
  }, {
    "product_name" : "Red Hat OpenShift Container Platform 3.11",
    "release_date" : "2022-09-07T00:00:00Z",
    "advisory" : "RHSA-2022:6252",
    "cpe" : "cpe:/a:redhat:openshift:3.11::el7",
    "package" : "openshift3/grafana:v3.11.784-1.g423963f",
    "impact" : "moderate"
  }, {
    "product_name" : "Red Hat OpenShift Container Platform 4.10",
    "release_date" : "2022-03-10T00:00:00Z",
    "advisory" : "RHSA-2022:0056",
    "cpe" : "cpe:/a:redhat:openshift:4.10::el8",
    "package" : "openshift4/ose-grafana:v4.10.0-202202160023.p0.g48aec35.assembly.stream",
    "impact" : "moderate"
  }, {
    "product_name" : "Red Hat OpenShift Container Platform 4.6",
    "release_date" : "2022-09-09T00:00:00Z",
    "advisory" : "RHSA-2022:6262",
    "cpe" : "cpe:/a:redhat:openshift:4.6::el8",
    "package" : "openshift4/ose-grafana:v4.6.0-202208310224.p0.gcf170c0.assembly.stream",
    "impact" : "moderate"
  }, {
    "product_name" : "Red Hat OpenShift Container Platform 4.7",
    "release_date" : "2022-09-13T00:00:00Z",
    "advisory" : "RHSA-2022:6322",
    "cpe" : "cpe:/a:redhat:openshift:4.7::el8",
    "package" : "openshift4/ose-grafana:v4.7.0-202208310205.p0.g613acad.assembly.stream",
    "impact" : "moderate"
  }, {
    "product_name" : "Red Hat OpenShift Container Platform 4.8",
    "release_date" : "2022-09-14T00:00:00Z",
    "advisory" : "RHSA-2022:6308",
    "cpe" : "cpe:/a:redhat:openshift:4.8::el8",
    "package" : "openshift4/ose-grafana:v4.8.0-202208311019.p0.gf98b47f.assembly.stream",
    "impact" : "moderate"
  }, {
    "product_name" : "Red Hat OpenShift Container Platform 4.9",
    "release_date" : "2022-09-12T00:00:00Z",
    "advisory" : "RHSA-2022:6317",
    "cpe" : "cpe:/a:redhat:openshift:4.9::el8",
    "package" : "openshift4/ose-grafana:v4.9.0-202208311003.p0.g3b7bed6.assembly.stream",
    "impact" : "moderate"
  } ],
  "package_state" : [ {
    "product_name" : "OpenShift Service Mesh 1",
    "fix_state" : "Out of support scope",
    "package_name" : "servicemesh-grafana",
    "cpe" : "cpe:/a:redhat:service_mesh:1",
    "impact" : "moderate"
  }, {
    "product_name" : "OpenShift Service Mesh 2.0",
    "fix_state" : "Affected",
    "package_name" : "servicemesh-grafana",
    "cpe" : "cpe:/a:redhat:service_mesh:2.0"
  }, {
    "product_name" : "Red Hat Advanced Cluster Management for Kubernetes 2",
    "fix_state" : "Not affected",
    "package_name" : "grafana",
    "cpe" : "cpe:/a:redhat:acm:2",
    "impact" : "moderate"
  }, {
    "product_name" : "Red Hat Ceph Storage 2",
    "fix_state" : "Affected",
    "package_name" : "grafana",
    "cpe" : "cpe:/a:redhat:ceph_storage:2"
  }, {
    "product_name" : "Red Hat Ceph Storage 3",
    "fix_state" : "Affected",
    "package_name" : "grafana",
    "cpe" : "cpe:/a:redhat:ceph_storage:3"
  }, {
    "product_name" : "Red Hat Ceph Storage 3",
    "fix_state" : "Affected",
    "package_name" : "grafana-container",
    "cpe" : "cpe:/a:redhat:ceph_storage:3"
  }, {
    "product_name" : "Red Hat Ceph Storage 4",
    "fix_state" : "Affected",
    "package_name" : "rhceph/rhceph-4-dashboard-rhel8",
    "cpe" : "cpe:/a:redhat:ceph_storage:4"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Not affected",
    "package_name" : "grafana",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  }, {
    "product_name" : "Red Hat Storage 3",
    "fix_state" : "Will not fix",
    "package_name" : "grafana",
    "cpe" : "cpe:/a:redhat:storage:3",
    "impact" : "moderate"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2021-39226\nhttps://nvd.nist.gov/vuln/detail/CVE-2021-39226\nhttps://github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9\nhttps://grafana.com/blog/2021/10/05/grafana-7.5.11-and-8.1.6-released-with-critical-security-fix/\nhttps://www.cisa.gov/known-exploited-vulnerabilities-catalog" ],
  "csaw" : true,
  "name" : "CVE-2021-39226"
}