Information Exposure Affecting github.com/grafana/grafana/pkg/services/sqlstore/migrator package, versions >=6.0.0 <7.2.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (20th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMGRAFANAGRAFANAPKGSERVICESSQLSTOREMIGRATOR-6226637
  • published2 Feb 2024
  • disclosed24 May 2022
  • creditUnknown

Introduced: 24 May 2022

CVE-2020-12459  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade github.com/grafana/grafana/pkg/services/sqlstore/migrator to version 7.2.1 or higher.

Overview

Affected versions of this package are vulnerable to Information Exposure due to improperly set file permissions for configuration files. An attacker with local access to the system can read sensitive information contained in the files /etc/grafana/grafana.ini and /etc/grafana/ldap.toml, potentially leading to further system compromise.

Workaround

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

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

CVSS Scores

version 3.1