CVE-2020-12459 Grafana world readable configuration files

Medium 5.5 Published Updated

Attackers can read Grafana configuration files to steal secret keys and LDAP bind passwords due to world-readable permissions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2020-12459?

CVE-2020-12459 is a medium-severity vulnerability in Fedoraproject Fedora, published on 29 Apr 2020. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-732

Which versions are affected by CVE-2020-12459?

4 open source packages ship an affected version, including github.com/grafana/grafana and grafana. It affects 2 products.

PackageAffectedFixed in
github.com/grafana/grafana GoAll versionsNone
github.com/grafana/grafana GoFrom 6.0.0-beta17.2.1
github.com/grafana/grafana GoFrom 6.0.0-beta17.2.1
grafana BitnamiFrom 6.0.06.3.7

Products include Fedoraproject Fedora, Grafana Grafana.

How do I fix CVE-2020-12459?

Upgrade github.com/grafana/grafana to 7.2.1 or later.

Is CVE-2020-12459 being exploited?

There is no known exploitation of CVE-2020-12459 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as BIT-grafana-2020-12459, GHSA-m25m-5778-fm22, GO-2024-2519, MINI-2hw7-74vj-xvc6, MINI-4727-p7fh-39w3, MINI-76qv-wfwf-v8v2 and 14 more.

Is CVE-2020-12459 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free