CVE-2024-8975: Github.com/grafana/alloy Grafana Alloy On Windows Has Vulnerability

MODERATE
Advisory Identifier: GHSA-chqx-36rm-rf8h
CVSS 7.3
CWE-428
Published
Advisory Summary

CVE-2024-8975 is a MODERATE (CVSS 7.3) grafana alloy on windows has vulnerability (CWE-428: Unquoted Search Path or Element) affecting Github.com/grafana/alloy libraries in the Go ecosystem. The issue involves grafana alloy on windows has unquoted search path or element vulnerability. Remediation is available by upgrading affected packages to version 1.3.4, 1.4.1.

CVE-2024-8975 at a Glance

CVE Identifier CVE-2024-8975
GHSA Identifier GHSA-chqx-36rm-rf8h
Severity MODERATE
CVSS v3.1 Base Score 7.3
CWE Classification CWE-428: Unquoted Search Path or Element
Affected Product Github.com/grafana/alloy
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.3

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

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2024-8975

To remediate this vulnerability, upgrade all affected Github.com/grafana/alloy 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/alloy fixed: 1.3.4
Upgrade github.com/grafana/alloy to 1.3.4
github.com/grafana/alloy fixed: 1.4.1
Upgrade github.com/grafana/alloy to 1.4.1
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/alloy

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-8975, inspect your project dependencies for Github.com/grafana/alloy:

inspect dependencies for github.com/grafana/alloy

Analyze the terminal output to locate any version of Github.com/grafana/alloy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.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-428: Unquoted Search Path or Element, where the product uses a search path that contains an unquoted element, in which the element contains whitespace or other separators. this can cause the product to access resources in a parent path. In Github.com/grafana/alloy, 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

Unquoted Search Path or Element vulnerability in Grafana Alloy on Windows allows Privilege Escalation from Local User to SYSTEM. This issue affects Alloy: before 1.3.4, from 1.4.0-rc.0 and prior to 1.4.1.

CVE-2024-8975 Affected Github.com/grafana/alloy Versions

2 component(s)
Fixed Versions:
1.3.41.4.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/grafana/alloy
Go
< 1.3.4
1.3.4
github.com/grafana/alloy
Go
≥ 1.4.0-rc.0
< 1.4.1
1.4.1

References

Frequently Asked Questions

What is CVE-2024-8975?
CVE-2024-8975 is a security vulnerability in Github.com/grafana/alloy involving Grafana Alloy on Windows has Unquoted Search Path or Element vulnerability under CWE-428: Unquoted Search Path or Element.
Which Github.com/grafana/alloy versions are affected?
Affected versions include releases prior to 1.3.4, 1.4.1 across affected packages: github.com/grafana/alloy.
What version fixes CVE-2024-8975?
Upgrading to 1.3.4, 1.4.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/grafana/alloy affected?
Yes, github.com/grafana/alloy is affected in releases prior to 1.3.4, 1.4.1. Upgrade your dependency to 1.3.4, 1.4.1 or later.
What is the CVSS score of CVE-2024-8975?
CVE-2024-8975 has a CVSS v3.1 base score of 7.3 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2024-8975?
CVE-2024-8975 is classified under CWE-428: Unquoted Search Path or Element (The product uses a search path that contains an unquoted element, in which the element contains whitespace or other separators. This can cause the product to access resources in a parent path.).
How can I check Go dependencies for CVE-2024-8975?
Run the dependency tree command: 'inspect dependencies for github.com/grafana/alloy'. 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-chqx-36rm-rf8h",
  "modified" : "2024-10-09T22:05:01Z",
  "published" : "2024-09-25T18:31:21Z",
  "aliases" : [ "CVE-2024-8975" ],
  "summary" : "Grafana Alloy on Windows has Unquoted Search Path or Element vulnerability",
  "details" : "Unquoted Search Path or Element vulnerability in Grafana Alloy on Windows allows Privilege Escalation from Local User to SYSTEM.\nThis issue affects Alloy: before 1.3.4, from 1.4.0-rc.0 and prior to 1.4.1.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/alloy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/alloy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.4.0-rc.0"
      }, {
        "fixed" : "1.4.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-8975"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/alloy/commit/88e779887690954c009503598a3f4bf563cb6596"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/alloy/commit/f14249012fd970d3fd73604e6fff9b6c7990a9bb"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/grafana/alloy"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/alloy/releases/tag/v1.3.4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/alloy/releases/tag/v1.4.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/alloy/releases/tag/v1.4.1"
  }, {
    "type" : "WEB",
    "url" : "https://grafana.com/blog/2024/09/25/grafana-alloy-and-grafana-agent-flow-security-release-high-severity-fix-for-cve-2024-8975-and-cve-2024-8996"
  }, {
    "type" : "WEB",
    "url" : "https://grafana.com/security/security-advisories/cve-2024-8975"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-3168"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-428" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-10-01T22:28:59Z",
    "nvd_published_at" : "2024-09-25T17:15:19Z"
  }
}