Known exploited vulnerability

CVE-2021-39226

highCVSS 3.1 7.3In CISA KEVEPSS 100%Published · grafana

The short answer

CVE-2021-39226 affects grafana grafana and is rated high (CVSS 7.3). CISA added it to the Known Exploited Vulnerabilities catalog on 2022-08-25: attackers are using it, so patch it first. Fixed versions are published for github.com/grafana/grafana (7.5.11, 8.1.6).

What it is

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.

Weakness: CWE-287, CWE-862.

Severity

7.3 high

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Exploited (CISA KEV)

Yes, since Aug 25, 2022

Federal due date Sep 15, 2022

EPSS, next 30 days

100%

Higher than 100% of scored CVEs

How it can be exploited

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
Low
Integrity impact
Low
Availability impact
Low

What CISA says to do

Apply updates per vendor instructions.

Affected packages and fixed versions

PackageEcosystemFixed inAdvisory
github.com/grafana/grafanaGo7.5.11, 8.1.6GHSA-69j6-29vr-p3j9

Is it in your code? Drop your lockfile into the free vulnerability check, or let vulnerability watch check your repository every day and open the upgrade as a pull request.

Affected products

grafana. NVD's record lists the exact affected versions.

References

Questions

Is CVE-2021-39226 being exploited?

Yes. CISA added CVE-2021-39226 to its Known Exploited Vulnerabilities catalog on 2022-08-25, with a federal remediation due date of 2022-09-15.

How do I fix CVE-2021-39226?

Upgrade to a fixed version: github.com/grafana/grafana (Go) 7.5.11 or 8.1.6. CISA's required action: Apply updates per vendor instructions.

From NVD, CISA KEV, FIRST EPSS and OSV.dev, checked . Status on NVD: Analyzed. The description is NVD's text, quoted as published.

Related

Know the day a CVE lands in your code

Connect a GitHub repository and ZeusQA checks its dependencies daily, briefs each advisory and opens the fix. Three test runs free, no card.