CVE-2025-8341: Github.com/grafana/grafana infinity datasource Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-3c93-92r7-j934
CVSS 5.0
CWE-918
Published
Advisory Summary

CVE-2025-8341 is a MODERATE (CVSS 5.0) remote code execution vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Github.com/grafana/grafana infinity datasource libraries in the Go ecosystem. The issue involves grafana infinity datasource plugin ssrf vulnerability. Remediation is available by upgrading affected packages to version 1.4.2-0.20250731100004-9c736aa21b3a.

CVE-2025-8341 at a Glance

CVE Identifier CVE-2025-8341
GHSA Identifier GHSA-3c93-92r7-j934
Severity MODERATE
CVSS v3.1 Base Score 5.0
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Github.com/grafana/grafana infinity datasource
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.0

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:C/C:L/I:N/A:N).

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

How to Fix CVE-2025-8341

To remediate this vulnerability, upgrade all affected Github.com/grafana/grafana infinity 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/grafana-infinity-datasource fixed: 1.4.2-0.20250731100004-9c736aa21b3a
Upgrade github.com/grafana/grafana-infinity-datasource to 1.4.2-0.20250731100004-9c736aa21b3a
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/grafana-infinity-datasource

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-8341, inspect your project dependencies for Github.com/grafana/grafana infinity datasource:

inspect dependencies for github.com/grafana/grafana-infinity-datasource

Analyze the terminal output to locate any version of Github.com/grafana/grafana infinity datasource in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.2-0.20250731100004-9c736aa21b3a), 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Github.com/grafana/grafana infinity 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 Infinity datasource plugin, maintained by Grafana Labs, allows visualizing data from JSON, CSV, XML, GraphQL, and HTML endpoints. If the plugin was configured to allow only certain URLs, an attacker could bypass this restriction using a specially crafted URL. This vulnerability is fixed in version 3.4.1.

CVE-2025-8341 Affected Github.com/grafana/grafana infinity datasource Versions

1 component(s)
Fixed Versions:
1.4.2-0.20250731100004-9c736aa21b3a
Product / Package Ecosystem Affected Versions Fixed Version
github.com/grafana/grafana-infinity-datasource
Go
< 1.4.2-0.20250731100004-9c736aa21b3a
1.4.2-0.20250731100004-9c736aa21b3a

References

Frequently Asked Questions

What is CVE-2025-8341?
CVE-2025-8341 is a security vulnerability in Github.com/grafana/grafana infinity datasource involving Grafana Infinity Datasource Plugin SSRF Vulnerability under CWE-918: Server-Side Request Forgery (SSRF).
Which Github.com/grafana/grafana infinity datasource versions are affected?
Affected versions include releases prior to 1.4.2-0.20250731100004-9c736aa21b3a across affected packages: github.com/grafana/grafana-infinity-datasource.
What version fixes CVE-2025-8341?
Upgrading to 1.4.2-0.20250731100004-9c736aa21b3a (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/grafana/grafana-infinity-datasource affected?
Yes, github.com/grafana/grafana-infinity-datasource is affected in releases prior to 1.4.2-0.20250731100004-9c736aa21b3a. Upgrade your dependency to 1.4.2-0.20250731100004-9c736aa21b3a or later.
What is the CVSS score of CVE-2025-8341?
CVE-2025-8341 has a CVSS v3.1 base score of 5.0 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2025-8341?
CVE-2025-8341 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check Go dependencies for CVE-2025-8341?
Run the dependency tree command: 'inspect dependencies for github.com/grafana/grafana-infinity-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-3c93-92r7-j934",
  "modified" : "2025-08-04T20:25:39Z",
  "published" : "2025-08-04T09:30:28Z",
  "aliases" : [ "CVE-2025-8341" ],
  "summary" : "Grafana Infinity Datasource Plugin SSRF Vulnerability",
  "details" : "Grafana is an open-source platform for monitoring and observability. The Infinity datasource plugin, maintained by Grafana Labs, allows visualizing data from JSON, CSV, XML, GraphQL, and HTML endpoints.\n\n\nIf the plugin was configured to allow only certain URLs, an attacker could bypass this restriction using a specially crafted URL. This vulnerability is fixed in version 3.4.1.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana-infinity-datasource"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.4.2-0.20250731100004-9c736aa21b3a"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-8341"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/grafana-infinity-datasource/commit/9c736aa21b3a669d3070d3f5f80d949326fafa77"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/grafana/grafana-infinity-datasource"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/grafana-infinity-datasource/releases/tag/v3.4.1"
  }, {
    "type" : "WEB",
    "url" : "https://grafana.com/security/security-advisories/cve-2025-8341"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-08-04T20:25:39Z",
    "nvd_published_at" : "2025-08-04T09:15:26Z"
  }
}