CVE-2023-5123: Improper Path Sanitization in JSON Datasource Plugin

Published Feb 14, 2024
·
Updated

The JSON datasource plugin ( https://grafana.com/grafana/plugins/marcusolsson-json-datasource/ ) is a Grafana Labs maintained plugin for Grafana that allows for retrieving and processing JSON data from a remote endpoint (including a specific sub-path) configured by an administrator. Due to inadequate sanitization of the dashboard-supplied path parameter, it was possible to include path traversal characters (../) in the path parameter and send requests to paths on the configured endpoint outside the configured sub-path.

This means that if the datasource was configured by an administrator to point at some sub-path of a domain (e.g. https://example.com/api/somesafeapi/ ), it was possible for an editor to create a dashboard referencing the datasource which issues queries containing path traversal characters, which would in turn cause the datasource to instead query arbitrary subpaths on the configured domain (e.g. https://example.com/api/adminapi/) .

In the rare case that this plugin is configured by an administrator to point back at the Grafana instance itself, this vulnerability becomes considerably more severe, as an administrator browsing a maliciously configured panel could be compelled to make requests to Grafana administrative API endpoints with their credentials, resulting in the potential for privilege escalation, hence the high score for this vulnerability.

Affected Software

2 affected components
Grafana Labs JSON Datasource Plugin
Grafana Json Api Data Source Grafana<1.3.21

Event History

Feb 14, 2024
CVE Published
via MITRE·03:06 PM
Data Sourced
via MITRE·03:06 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-5123?

CVE-2023-5123 has been classified with a severity rating that indicates it poses a significant risk to systems using the JSON datasource plugin.

2

How do I fix CVE-2023-5123?

To fix CVE-2023-5123, update the JSON datasource plugin to the latest version provided by Grafana Labs.

3

Which software is affected by CVE-2023-5123?

CVE-2023-5123 affects the JSON datasource plugin maintained by Grafana Labs.

4

What types of vulnerabilities does CVE-2023-5123 represent?

CVE-2023-5123 represents vulnerabilities related to improper processing of JSON data from remote endpoints.

5

Can I mitigate CVE-2023-5123 without updating?

Mitigating CVE-2023-5123 without updating is not recommended, but reviewing and restricting access to the JSON datasource configuration can provide temporary protection.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203