CVE-2019-19499: Github.com/grafana/grafana Grafana Arbitrary File Read Vulnerability
MODERATECVE-2019-19499 is a MODERATE (CVSS 6.5) grafana arbitrary file read vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Github.com/grafana/grafana libraries in the Go ecosystem. The issue involves grafana arbitrary file read. Remediation is available by upgrading affected packages to version 6.4.4.
CVE-2019-19499 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:P).
How to Fix CVE-2019-19499
To remediate this vulnerability, upgrade all affected Github.com/grafana/grafana dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/grafana/grafana to 6.4.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/grafana/grafana
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-19499, inspect your project dependencies for Github.com/grafana/grafana:
inspect dependencies for github.com/grafana/grafana
Analyze the terminal output to locate any version of Github.com/grafana/grafana in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.4.4), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Github.com/grafana/grafana, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-19499 Affected Github.com/grafana/grafana Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/grafana/grafana
|
Go |
< 6.4.4
|
6.4.4
|
References
Frequently Asked Questions
What is CVE-2019-19499?
Which Github.com/grafana/grafana versions are affected?
What version fixes CVE-2019-19499?
Is github.com/grafana/grafana affected?
What is the CVSS score of CVE-2019-19499?
What CWE is associated with CVE-2019-19499?
How can I check Go dependencies for CVE-2019-19499?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4pwp-cx67-5cpx",
"modified" : "2024-09-16T17:33:27Z",
"published" : "2024-01-31T23:11:17Z",
"aliases" : [ "CVE-2019-19499" ],
"summary" : "Grafana Arbitrary File Read",
"details" : "Grafana <= 6.4.3 has an Arbitrary File Read vulnerability, which could be exploited by an authenticated attacker that has privileges to modify the data source configurations.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:P"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/grafana/grafana"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.4.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-19499"
}, {
"type" : "WEB",
"url" : "https://github.com/grafana/grafana/pull/20192"
}, {
"type" : "WEB",
"url" : "https://github.com/grafana/grafana/commit/19dbd27c5caa1a160bd5854b65a4e1fe2a8a4f00"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/grafana/grafana"
}, {
"type" : "WEB",
"url" : "https://github.com/grafana/grafana/blob/master/CHANGELOG.md#644-2019-11-06"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20200918-0003"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200", "CWE-22", "CWE-89" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-31T23:11:17Z",
"nvd_published_at" : "2020-08-28T15:15:00Z"
}
}