Vulnerabilities in pkg:golang/github.com/grafana/google-sheets-datasource

PACKAGE
Advisory Identifier: GHSA-37x5-qpm8-53rq
Advisory Summary

CVE-2023-4457 is a MODERATE (CVSS 5.5) remote code execution vulnerability (CWE-209: Generation of Error Message Containing Sensitive Information) affecting Github.com/grafana/google sheets datasource libraries in the Go ecosystem. The issue involves google sheets data source plugin for grafana information disclosure vulnerability. Remediation is available by upgrading affected packages to version 1.2.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/grafana/google-sheets-datasource

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/grafana/google-sheets-datasource. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-37x5-qpm8-53rq CVE-2023-4457 MODERATE Google Sheets data source plugin for Grafana information disclosure vulnerability

CVE-2023-4457 at a Glance

CVE Identifier CVE-2023-4457
GHSA Identifier GHSA-37x5-qpm8-53rq
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-209: Generation of Error Message Containing Sensitive Information
Affected Product Github.com/grafana/google sheets datasource
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2023-4457

To remediate this vulnerability, upgrade all affected Github.com/grafana/google sheets datasource dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/grafana/google-sheets-datasource fixed: 1.2.2
Upgrade github.com/grafana/google-sheets-datasource to 1.2.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/grafana/google-sheets-datasource

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-4457, inspect your project dependencies for Github.com/grafana/google sheets datasource:

inspect dependencies for github.com/grafana/google-sheets-datasource

Analyze the terminal output to locate any version of Github.com/grafana/google sheets datasource in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.2), 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-209: Generation of Error Message Containing Sensitive Information, where the product generates an error message that includes sensitive information about its environment, users, or associated data. In Github.com/grafana/google sheets datasource, 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

Grafana is an open-source platform for monitoring and observability. The Google Sheets data source plugin for Grafana, versions 0.9.0 to 1.2.2 are vulnerable to an information disclosure vulnerability. The plugin did not properly sanitize error messages, making it potentially expose the Google Sheet API-key that is configured for the data source. This vulnerability was fixed in version 1.2.2.

CVE-2023-4457 Affected Github.com/grafana/google sheets datasource Versions

1 component(s)
Fixed Versions:
1.2.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/grafana/google-sheets-datasource
Go
≥ 0.9.0
< 1.2.2
1.2.2

References

Frequently Asked Questions

What is CVE-2023-4457?
CVE-2023-4457 is a security vulnerability in Github.com/grafana/google sheets datasource involving Google Sheets data source plugin for Grafana information disclosure vulnerability under CWE-209: Generation of Error Message Containing Sensitive Information.
Which Github.com/grafana/google sheets datasource versions are affected?
Affected versions include releases prior to 1.2.2 across affected packages: github.com/grafana/google-sheets-datasource.
What version fixes CVE-2023-4457?
Upgrading to 1.2.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/grafana/google-sheets-datasource affected?
Yes, github.com/grafana/google-sheets-datasource is affected in releases prior to 1.2.2. Upgrade your dependency to 1.2.2 or later.
What is the CVSS score of CVE-2023-4457?
CVE-2023-4457 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2023-4457?
CVE-2023-4457 is classified under CWE-209: Generation of Error Message Containing Sensitive Information (The product generates an error message that includes sensitive information about its environment, users, or associated data.).
How can I check Go dependencies for CVE-2023-4457?
Run the dependency tree command: 'inspect dependencies for github.com/grafana/google-sheets-datasource'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-37x5-qpm8-53rq",
  "modified" : "2024-05-20T21:57:06Z",
  "published" : "2023-10-16T12:33:36Z",
  "aliases" : [ "CVE-2023-4457" ],
  "summary" : "Google Sheets data source plugin for Grafana information disclosure vulnerability",
  "details" : "Grafana is an open-source platform for monitoring and observability.\n\nThe Google Sheets data source plugin for Grafana, versions 0.9.0 to 1.2.2 are vulnerable to an information disclosure vulnerability.\n\nThe plugin did not properly sanitize error messages, making it potentially expose the Google Sheet API-key that is configured for the data source.\n\nThis vulnerability was fixed in version 1.2.2.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/google-sheets-datasource"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.9.0"
      }, {
        "fixed" : "1.2.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-4457"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/grafana/google-sheets-datasource"
  }, {
    "type" : "WEB",
    "url" : "https://grafana.com/security/security-advisories/cve-2023-4457"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-209" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-20T23:27:36Z",
    "nvd_published_at" : "2023-10-16T10:15:12Z"
  }
}