CVE-2023-5122 SSRF in CSV Datasource Plugin

Medium 5.0 Published Updated

An attacker can trigger Server-Side Request Forgery in the Grafana CSV datasource plugin if configured with a bare host URL.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-5122?

CVE-2023-5122 is a medium-severity server-side request forgery vulnerability in Grafana Grafana, published on 14 Feb 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Grafana is an open-source platform for monitoring and observability. The CSV datasource plugin is a Grafana Labs maintained plugin for Grafana that allows for retrieving and processing CSV data from a remote endpoint configured by an administrator. If this plugin was configured to send requests to a bare host with no path (e.g. https://www.example.com/ https://www.example.com/` ), requests to an endpoint other than the one configured by the administrator could be triggered by a specially crafted request from any user, resulting in an SSRF vector. AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator

Weakness: CWE-918

Which versions are affected by CVE-2023-5122?

1 open source package ship an affected version, including grafana. It affects 1 product.

PackageAffectedFixed in
grafana BitnamiAll versions0.6.13

Products include Grafana Grafana.

How do I fix CVE-2023-5122?

Upgrade grafana to 0.6.13 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2023-5122 being exploited?

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

All Grafana Grafana vulnerabilities

Sources

Also known as BIT-grafana-2023-5122, GHSA-4pff-25fv-cm83.

Is CVE-2023-5122 in your software?

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

Check your SBOMs for free