{"answers":{"affected":"3 open source packages ship an affected version, including github.com/grafana/grafana-plugin-sdk-go.","exploited":"There is no known exploitation of CVE-2024-8986 in the wild and no public exploit code.","fix":"Upgrade github.com/grafana/grafana-plugin-sdk-go to 0.250.0 or later.","what":"CVE-2024-8986 is a critical vulnerability in grafana-plugin-sdk-go Grafana Plugin SDK, published on 19 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-8986 and fix it if it is affected.\n\nWhat it is: CVE-2024-8986 is a critical vulnerability in grafana-plugin-sdk-go Grafana Plugin SDK, published on 19 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-8986 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/grafana/grafana-plugin-sdk-go (Go): affected all versions; fixed in 0.250.0\n- github.com/grafana/grafana-plugin-sdk-go (Go): affected all versions; fixed in 0.250.0\n- github.com/grafana/grafana-plugin-sdk-go (Go): affected all versions; fixed in 0.250.0\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-8986/ (Markdown: https://insights.sbomify.com/CVE-2024-8986/index.md)","id":"CVE-2024-8986","markdown":"https://insights.sbomify.com/CVE-2024-8986/index.md","name":"CVE-2024-8986","record":{"aliases":["GHSA-xxxw-3j6h-q7h6","GO-2024-3140"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Grafana Plugin SDK","requires_auth":"none","summary":"Developers using the Grafana Plugin SDK may inadvertently leak repository credentials in compiled binaries if the git remote URL contains them.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GRAFANA","cpe":[],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:H/SA:H/AU:Y/R:U/RE:L","version":"4.0"},"cwes":[{"id":"CWE-522","name":"Insufficiently Protected Credentials"}],"description":"The grafana plugin SDK bundles build metadata into the binaries it compiles; this metadata includes the repository URI for the plugin being built, as retrieved by running `git remote get-url origin`.\n \nIf credentials are included in the repository URI (for instance, to allow for fetching of private dependencies), the final binary will contain the full URI, including said credentials.","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":"Information Leakage in grafana-plugin-sdk-go","id":"CVE-2024-8986","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":3,"n_references":1,"next":{"headline":"Cross-site scripting in Youzify – BuddyPress Community, User Profile, Social Network \u0026 Membership Plugin for WordPress","id":"CVE-2024-8987"},"packages":[{"ecosystem":"Go","fixed":["0.250.0"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/grafana-plugin-sdk-go","purl":null,"source":"GHSA-xxxw-3j6h-q7h6"},{"ecosystem":"Go","fixed":["0.250.0"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/grafana-plugin-sdk-go","purl":"pkg:golang/github.com/grafana/grafana-plugin-sdk-go","source":"GHSA-xxxw-3j6h-q7h6"},{"ecosystem":"Go","fixed":["0.250.0"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/grafana-plugin-sdk-go","purl":"pkg:golang/github.com/grafana/grafana-plugin-sdk-go","source":"GO-2024-3140"}],"prev":{"headline":"Cross-site scripting in Social Proof (Testimonial) Slider","id":"CVE-2024-8985"},"products":["Grafana Plugin SDK"],"published":"2024-09-19","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-19","vendors":["grafana-plugin-sdk-go"]},"summary":"Developers using the Grafana Plugin SDK may inadvertently leak repository credentials in compiled binaries if the git remote URL contains them.","url":"https://insights.sbomify.com/CVE-2024-8986/"}