Vulnerabilities in pkg:golang/github.com/grafana/alloy
PACKAGECVE-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.
pkg:golang/github.com/grafana/alloy
Vulnerability advisories affecting package pkg:golang/github.com/grafana/alloy. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-chqx-36rm-rf8h | CVE-2024-8975 | MODERATE | Grafana Alloy on Windows has Unquoted Search Path or Element vulnerability |
CVE-2024-8975 at a Glance
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).
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.
Upgrade github.com/grafana/alloy to 1.3.4
Upgrade github.com/grafana/alloy to 1.4.1
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
CVE-2024-8975 Affected Github.com/grafana/alloy Versions
2 component(s)| 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?
Which Github.com/grafana/alloy versions are affected?
What version fixes CVE-2024-8975?
Is github.com/grafana/alloy affected?
What is the CVSS score of CVE-2024-8975?
What CWE is associated with CVE-2024-8975?
How can I check Go dependencies for CVE-2024-8975?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}