{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-5123 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2023-5123 yet. Limit exposure of the affected software until one is available.","what":"CVE-2023-5123 is a high-severity path traversal vulnerability in grafana-json-datasource, published on 14 Feb 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-5123 and fix it if it is affected.\n\nWhat it is: CVE-2023-5123 is a high-severity path traversal vulnerability in grafana-json-datasource, published on 14 Feb 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-5123 in the wild and no public exploit code.\n\nAffected product: grafana-json-datasource. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2023-5123/ (Markdown: https://insights.sbomify.com/CVE-2023-5123/index.md)","id":"CVE-2023-5123","markdown":"https://insights.sbomify.com/CVE-2023-5123/index.md","name":"CVE-2023-5123","record":{"aliases":["GHSA-xg2r-m5g9-vr82"],"analysis":{"component_type":"cms_plugin","fix_type":"patch","impacts":["data_read","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Grafana JSON plugin","requires_auth":"low_privilege","summary":"Attackers can traverse paths to access unauthorized data or escalate privileges via malicious dashboard queries in the Grafana JSON datasource plugin.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GRAFANA","cpe":[{"product":"json_api_data_source","vendor":"grafana"}],"cvss":{"score":8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"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. \n\n    \n    \n            \n\n    \n    \n            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/) .\n\nIn 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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Improper Path Sanitization in JSON Datasource Plugin","id":"CVE-2023-5123","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2023"},"n_packages":0,"n_references":2,"next":{"headline":"PageLayer \u003c 1.8.0 - Author+ Stored XSS","id":"CVE-2023-5124"},"packages":[],"prev":{"headline":"SSRF in CSV Datasource Plugin","id":"CVE-2023-5122"},"products":["grafana-json-datasource"],"published":"2024-02-14","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"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":"total"},"state":"PUBLISHED","updated":"2025-03-24","vendors":["Grafana"]},"summary":"Attackers can traverse paths to access unauthorized data or escalate privileges via malicious dashboard queries in the Grafana JSON datasource plugin.","url":"https://insights.sbomify.com/CVE-2023-5123/"}