Description Preview
Overview
This vulnerability (CVE-2020-12459) affects Grafana versions 6.x through 6.3.6 when installed through certain Red Hat packages. The issue stems from incorrect file permissions that make critical configuration files readable by any user on the system. The affected files (/etc/grafana/grafana.ini and /etc/grafana/ldap.toml) contain sensitive information such as secret keys and LDAP bind passwords. This represents a CWE-732 vulnerability (Incorrect Permission Assignment for Critical Resource), allowing unauthorized access to authentication credentials and sensitive configuration data. Any local user on the affected system could potentially view these credentials, which might be used to access Grafana with elevated privileges or to compromise connected systems.
Remediation
To remediate this vulnerability, system administrators should:
- Update Grafana to a patched version through your package manager.
- For Fedora users, apply the updates mentioned in the referenced advisories (FEDORA-2020-d109a1d1d9 and FEDORA-2020-c6b0c7ebbb).
- If immediate updates are not possible, manually correct the file permissions:
- Change permissions on /etc/grafana/grafana.ini and /etc/grafana/ldap.toml to be readable only by the grafana user and group:
chmod 640 /etc/grafana/grafana.ini /etc/grafana/ldap.toml
- Ensure proper ownership:
chown grafana:grafana /etc/grafana/grafana.ini /etc/grafana/ldap.toml
- Change permissions on /etc/grafana/grafana.ini and /etc/grafana/ldap.toml to be readable only by the grafana user and group:
- After applying fixes, consider rotating any exposed secrets, including the secret_key and LDAP bind passwords.
- Audit your system for any unauthorized access that might have occurred while the vulnerability was present.
References
- Red Hat Security Advisory: https://access.redhat.com/security/cve/CVE-2020-12459
- Red Hat Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1829724
- Grafana GitHub Issue: https://github.com/grafana/grafana/issues/8283
- Fedora Package Announcement: https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CTQCKJZZYXMCSHJFZZ3YXEO5NUBANGZS/
- Fedora Package Announcement: https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WEBCIEVSYIDDCA7FTRS2IFUOYLIQU34A/
- NetApp Security Advisory: https://security.netapp.com/advisory/ntap-20200518-0004/
- Fedora Patch: https://src.fedoraproject.org/rpms/grafana/c/fab93d67363eb0a9678d9faf160cc88237f26277
Industry ExposureMost to leastThis section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.
- ManufacturingManufacturing
- Educational ServicesEducational Services
- Management of Companies & EnterprisesManagement of Companies & Enterprises
- Other Services (except Public Administration)Other Services (except Public Administration)
- Professional, Scientific, & Technical ServicesProfessional, Scientific, & Technical Services
- Transportation & WarehousingTransportation & Warehousing
- Accommodation & Food ServicesAccommodation & Food Services
- Administrative, Support, Waste Management & Remediation ServicesAdministrative, Support, Waste Management & Remediation Services
- Agriculture, Forestry Fishing & HuntingAgriculture, Forestry Fishing & Hunting
- Arts, Entertainment & RecreationArts, Entertainment & Recreation
- ConstructionConstruction
- Finance and InsuranceFinance and Insurance
- Health Care & Social AssistanceHealth Care & Social Assistance
- InformationInformation
- MiningMining
- Public AdministrationPublic Administration
- Real Estate Rental & LeasingReal Estate Rental & Leasing
- Retail TradeRetail Trade
- UtilitiesUtilities
- Wholesale TradeWholesale Trade