CVE-2021-39226
Scores
EPSS Score
0.9435
CVSS
3.x 7.3
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
All CVSS Scores
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P
Description
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.
Sources
CWEs
Related Vulnerabilities
Exploits
Exploit ID: CVE-2021-39226
Source: cisa
URL: https://www.cisa.gov/known-exploited-vulnerabilities-catalog
Reference Links
Vulnerable Software
Type: Configuration
Product: grafana
Operating System: debian
{
"unfixed": true
}
Source: debian
Type: Configuration
Product: grafana
Operating System: rhel
{
"fixed": "7.3.6-3.el8_4"
}
Source: redhat
Type: Configuration
Product: grafana
Operating System: rhel
{
"fixed": "6.2.2-7.el8_1"
}
Source: redhat
Type: Configuration
Product: grafana
Operating System: rhel
{
"fixed": "6.3.6-3.el8_2"
}
Source: redhat
Type: Configuration
Product: grafana
Operating System: ubuntu trusty 14.04
{
"unfixed": true
}
Source: ubuntu
Type: Configuration
Product: grafana
Operating System: ubuntu xenial 16.04
{
"unfixed": true
}
Source: ubuntu
Type: Configuration
Vendor: fedoraproject
Product: fedora
Operating System: * * *
{
"cpe_match": [
{
"cpe23uri": "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*",
"vulnerable": true
},
{
"cpe23uri": "cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*",
"vulnerable": true
}
],
"operator": "OR"
}
Source: nvd
Type: Configuration
Vendor: grafana
Product: grafana
Operating System: * * *
{
"cpe_match": [
{
"cpe23uri": "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.5.11",
"vulnerable": true
},
{
"cpe23uri": "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*",
"versionEndExcluding": "8.1.6",
"versionStartIncluding": "8.0.0",
"vulnerable": true
}
],
"operator": "OR"
}
Source: nvd