CVE-2020-12459: Infoleak

Published Apr 23, 2020
·
Updated

An information-disclosure flaw was found in Grafana distributed by Red Hat. This flaw allows a local attacker access to potentially sensitive information such as secretkey and a bindpassword from the world-readable files /etc/grafana/grafana.ini and /etc/grafana/ldap.toml.

Other sources

For Grafana versions 6.x through 6.4.3 distributed by Red Hat, configuration files /etc/grafana/grafana.ini and /etc/grafana/ldap.toml which contains secretkey and bindpassword are world readable.

Grafana Versions 5.x : sets correct file permission 0640 ==================== %files [...] %attr(0640, root, grafana) %{sysconfdir}/%{name}/grafana.ini %attr(0640, root, grafana) %{sysconfdir}/%{name}/ldap.toml

Grafana Version 6.x through 6.4.3 : sets insecure file permission 0644 =================================

config defaults install -p -m 644 conf/distro-defaults.ini \ %{buildroot}%{sysconfdir}/%{binaryname}/grafana.ini install -p -m 644 conf/distro-defaults.ini \ %{buildroot}%{datadir}/%{binaryname}/conf/defaults.ini install -p -m 644 conf/ldap.toml %{buildroot}%{sysconfdir}/%{binaryname}/ldap.toml install -p -m 644 packaging/rpm/sysconfig/grafana-server \ %{buildroot}%{sysconfdir}/sysconfig/grafana-server

config files %dir %{sysconfdir}/%{binaryname} %config(noreplace) %attr(644, root, root) %{sysconfdir}/%{binaryname}/grafana.ini %config(noreplace) %attr(644, root, root) %{sysconfdir}/%{binaryname}/ldap.toml %config(noreplace) %{sysconfdir}/sysconfig/grafana-server

Notable fixes which removes readable bits: - change permissions of grafana.ini and ldap.toml to 640(contains secretkey/bindpassword)

Commit: - https://src.fedoraproject.org/rpms/grafana/c/fab93d67363eb0a9678d9faf160cc88237f26277

Red Hat

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 secretkey and a bindpassword) are world readable.

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 secretkey and a bindpassword) are world readable.

GitHub

Affected Software

9 affected componentsFixes available
redhat/jaeger<0:v1.13.1.redhat7-1.el7
0:v1.13.1.redhat7-1.el7
redhat/kiali<0:v1.0.11.redhat1-1.el7
0:v1.0.11.redhat1-1.el7
redhat/servicemesh-grafana<0:6.2.2-36.el8
0:6.2.2-36.el8
redhat/grafana<0:6.7.4-3.el8
0:6.7.4-3.el8
redhat/grafana 6.7.3<1
1
go/github.com/grafana/grafana>=6.0<7.2.1
7.2.1
Grafana Grafana>=6.0.0<=6.3.6
fedoraproject fedora=31
fedoraproject fedora=32

Remediation

Information

Manually change the files permission to remove readable bits for others: # chmod 640 /etc/grafana/grafana.ini /etc/grafana/ldap.toml

Event History

Apr 23, 2020
CVE Published
08:00 PM
Apr 29, 2020
CVE Published
via MITRE·03:56 PM
Data Sourced
via MITRE·03:56 PM
Description
May 24, 2022
Advisory Published
via GitHub·05:16 PM

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2020-12459?

CVE-2020-12459 is classified as an information-disclosure vulnerability that can expose sensitive information.

2

How do I fix CVE-2020-12459?

To fix CVE-2020-12459, upgrade to the patched versions of Grafana and associated packages as specified by Red Hat.

3

What are the affected versions of Grafana related to CVE-2020-12459?

Affected versions include Grafana versions below 6.7.4 and all versions before 7.2.1.

4

Who is affected by CVE-2020-12459?

Any organization using vulnerable versions of Grafana and its associated packages on Red Hat distributions is affected.

5

What information could be disclosed due to CVE-2020-12459?

CVE-2020-12459 can potentially expose sensitive information such as the secret_key and bind_password from specific configuration files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203