グラファナのJSONデータソースプラグインにおけるパストラバーサルの脆弱性
タイトル グラファナのJSONデータソースプラグインにおけるパストラバーサルの脆弱性
概要

JSONデータソースプラグインは、Grafana Labsが管理するGrafanaの拡張機能であり、管理者が設定したリモートエンドポイントの特定サブパスからJSONデータを取得・処理することを目的としています。不十分なパスパラメータのサニタイズにより、エディタ権限のユーザーがパストラバーサル文字(../)を含むクエリを発行し、設定されたサブパス以外のエンドポイントにリクエストを送信できてしまいます。管理者がデータソースを安全なサブパスに指定した場合でも、意図しない任意のサブパスへアクセスすることが可能となります。さらに、プラグインがGrafanaインスタンス自体へ向けて設定されている場合、管理者が悪意あるパネルを閲覧することで自身の資格情報を使ってGrafana管理APIにリクエストを送信し、権限昇格が発生する可能性があります。このため、本脆弱性の深刻度は非常に高いと評価されています。

想定される影響 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
対策

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

公表日 2024年2月14日0:00
登録日 2025年12月25日17:18
最終更新日 2025年12月25日17:18
CVSS3.0 : 重要
スコア 8
ベクター CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
影響を受けるシステム
Grafana Labs
JSON datasource plugin 1.3.21 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
変更履歴
No 変更内容 変更日
1 [2025年12月25日]
  掲載
2025年12月25日17:18

NVD脆弱性情報
CVE-2023-5123
概要

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/some_safe_api/ ), 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/admin_api/) .

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.

公表日 2024年2月15日0:15
登録日 2024年2月15日10:00
最終更新日 2024年11月21日17:41
関連情報、対策とツール
共通脆弱性一覧