{"answers":{"affected":"3 open source packages ship an affected version, including github.com/grafana/agent. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-8996 in the wild and no public exploit code.","fix":"Upgrade github.com/grafana/agent to 0.43.3 or later.","what":"CVE-2024-8996 is a high-severity vulnerability in Grafana Agent Flow, published on 25 Sep 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-8996 and fix it if it is affected.\n\nWhat it is: CVE-2024-8996 is a high-severity vulnerability in Grafana Agent Flow, published on 25 Sep 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-8996 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/grafana/agent (Go): affected all versions; fixed in 0.43.3\n- github.com/grafana/agent (Go): affected all versions; fixed in 0.43.3\n- github.com/grafana/agent (Go): affected all versions; fixed in 0.43.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-8996/ (Markdown: https://insights.sbomify.com/CVE-2024-8996/index.md)","id":"CVE-2024-8996","markdown":"https://insights.sbomify.com/CVE-2024-8996/index.md","name":"CVE-2024-8996","record":{"aliases":["GHSA-m5gv-m5f9-wgv4","GO-2024-3170"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Grafana Agent Flow","requires_auth":"low_privilege","summary":"Local attackers can escalate privileges to SYSTEM on Windows due to an unquoted service path in Grafana Agent Flow.","user_interaction":"required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GRAFANA","cpe":[{"product":"agent","vendor":"grafana"}],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-428","name":"Unquoted Search Path or Element"}],"description":"Unquoted Search Path or Element vulnerability in Grafana Agent (Flow mode) on Windows allows Privilege Escalation from Local User to SYSTEM\nThis issue affects Agent Flow: before 0.43.2","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Grafana Agent Flow on Windows Unquoted service path","id":"CVE-2024-8996","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"privilege_escalation","year":"2024"},"n_packages":3,"n_references":3,"next":{"headline":"SQLi in Vestel's EVC04 Configuration Interface","id":"CVE-2024-8997"},"packages":[{"ecosystem":"Go","fixed":["0.43.3"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/agent","purl":null,"source":"GHSA-m5gv-m5f9-wgv4"},{"ecosystem":"Go","fixed":["0.43.3"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/agent","purl":"pkg:golang/github.com/grafana/agent","source":"GHSA-m5gv-m5f9-wgv4"},{"ecosystem":"Go","fixed":["0.43.3"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/agent","purl":"pkg:golang/github.com/grafana/agent","source":"GO-2024-3170"}],"prev":{"headline":"Authorization Code issued for Deleted User reuse in Multiple WSO2 Products Allows Unauthorized Access","id":"CVE-2024-8995"},"products":["Agent Flow"],"published":"2024-09-25","related":[{"cvss_score":6.5,"headline":"Instance config inline secret exposure","id":"CVE-2021-41090","kev_date_added":null,"published":"2021-12-08"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-09-26","vendors":["Grafana"]},"summary":"Local attackers can escalate privileges to SYSTEM on Windows due to an unquoted service path in Grafana Agent Flow.","url":"https://insights.sbomify.com/CVE-2024-8996/"}