cve.bz

CVE-2020-12459

5.5 mediumEPSS 0.3%Fix available

Medium (5.5). EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/grafana/grafana 7.2.1.

On this page
In certain Red Hat packages for Grafana 6.x through 6.3.6, the configuration files /etc/grafana/grafana.ini and /etc/grafana/ldap.toml (which contain a secret_key and a bind_password) are world readable.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 25th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-732 Incorrect Permission Assignment for Critical Resource
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-12459 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-12459?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-12459?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-12459 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
grafana:grafanafrom 6.0.0 through 6.3.6
fedoraproject:fedora31
fedoraproject:fedora32

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-m25m-5778-fm22Gogithub.com/grafana/grafana>=6.0.0-beta1 <7.2.17.2.1
GO-2024-2519Gogithub.com/grafana/grafanaall versionsno fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatenterprise_linux:8::appstreamgrafana, grafana-loki, grafana-mssql and 11 more0:6.7.4-3.el8RHSA-2020:4682
Red Hatservice_mesh:1.0::el7jaeger0:v1.13.1.redhat7-1.el7RHSA-2020:2362
Red Hatservice_mesh:1.0::el7kiali0:v1.0.11.redhat1-1.el7RHSA-2020:2362
Red Hatservice_mesh:1.0::el8servicemesh-grafana, servicemesh-grafana-prometheus0:6.2.2-36.el8RHSA-2020:2362
AlmaLinux8grafana, grafana-loki, grafana-mssql and 10 more6.7.4-3.el8ALSA-2020:4682

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Ceph Storage 3 and 4 are not affected by this vulnerability, as the shared grafana container uses grafana v5.2.4 which sets correct permissions for configuration files.

This issue did not affect the version of grafana as shipped with Red Hat Gluster Storage 3, as it ships grafana v4.6.4 which sets correct permissions for configuration files.

In both OpenShift Container Platform (OCP) and OpenShift ServiceMesh (OSSM), the grafana containers set their database files to world readable. However, as it's run in a container image with SELinux MCS labels this prevents other processes on the host from reading it. Therefore, for both (OCP and OSSM) the impact is low.

Red Hat's mitigation

Manually change the files permission to remove readable bits for others:

# chmod 640 /etc/grafana/grafana.ini /etc/grafana/ldap.toml

ProductPackageStateAdvisory
Openshift Service Mesh 1.0jaeger-0:v1.13.1.redhat7-1.el7Fixed 2020-06-02RHSA-2020:2362
Openshift Service Mesh 1.0kiali-0:v1.0.11.redhat1-1.el7Fixed 2020-06-02RHSA-2020:2362
OpenShift Service Mesh 1.0servicemesh-grafana-0:6.2.2-36.el8Fixed 2020-06-02RHSA-2020:2362
Red Hat Enterprise Linux 8grafana-0:6.7.4-3.el8Fixed 2020-11-04RHSA-2020:4682
Red Hat Ceph Storage 2grafanaOut of support scope
Red Hat Ceph Storage 3grafanaNot affected
Red Hat Ceph Storage 3grafana-containerNot affected
Red Hat Ceph Storage 4rhceph/rhceph-4-dashboard-rhel8Not affected
Red Hat OpenShift Container Platform 3.11openshift3/grafanaFix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-grafanaFix deferred
Red Hat Storage 3grafanaNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-12459.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-732 (11).

References

Check your stackJSON