CVE-2024-8986 Information Leakage in grafana-plugin-sdk-go

Critical 9.1 Published Updated

Developers using the Grafana Plugin SDK may inadvertently leak repository credentials in compiled binaries if the git remote URL contains them.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-8986?

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.

Official 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`. If 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.

Weakness: CWE-522

Which versions are affected by CVE-2024-8986?

3 open source packages ship an affected version, including github.com/grafana/grafana-plugin-sdk-go.

PackageAffectedFixed in
github.com/grafana/grafana-plugin-sdk-go GoAll versions0.250.0
github.com/grafana/grafana-plugin-sdk-go GoAll versions0.250.0
github.com/grafana/grafana-plugin-sdk-go GoAll versions0.250.0

How do I fix CVE-2024-8986?

Upgrade github.com/grafana/grafana-plugin-sdk-go to 0.250.0 or later.

Is CVE-2024-8986 being exploited?

There is no known exploitation of CVE-2024-8986 in the wild and no public exploit code.

Sources

Also known as GHSA-xxxw-3j6h-q7h6, GO-2024-3140.

Is CVE-2024-8986 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free