{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2023-0594",
        "assignerOrgId": "57da9224-a3e2-4646-9d0e-c4dc2e05e7da",
        "state": "PUBLISHED",
        "assignerShortName": "GRAFANA",
        "dateReserved": "2023-01-31T10:37:31.334Z",
        "datePublished": "2023-03-01T15:36:43.881Z",
        "dateUpdated": "2024-08-02T05:17:50.130Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "defaultStatus": "unaffected",
                    "product": "Grafana",
                    "vendor": "Grafana",
                    "versions": [
                        {
                            "lessThan": "8.5.21",
                            "status": "affected",
                            "version": "7.0.0",
                            "versionType": "semver"
                        },
                        {
                            "lessThan": "9.2.13",
                            "status": "affected",
                            "version": "9.0.0",
                            "versionType": "semver"
                        },
                        {
                            "lessThan": "9.3.8",
                            "status": "affected",
                            "version": "9.3.0",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "defaultStatus": "unaffected",
                    "product": "Grafana Enterprise",
                    "vendor": "Grafana",
                    "versions": [
                        {
                            "lessThan": "8.5.21",
                            "status": "affected",
                            "version": "7.0.0",
                            "versionType": "semver"
                        },
                        {
                            "lessThan": "9.2.13",
                            "status": "affected",
                            "version": "9.0.0",
                            "versionType": "semver"
                        },
                        {
                            "lessThan": "9.3.8",
                            "status": "affected",
                            "version": "9.3.0",
                            "versionType": "semver"
                        }
                    ]
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "<p>Grafana is an open-source platform for monitoring and observability. </p><p>Starting with the 7.0 branch, Grafana had a stored XSS vulnerability in the trace view visualization. </p><p>The stored XSS vulnerability was possible due the value of a span's attributes/resources were not properly sanitized and this will be rendered when the span's attributes/resources are expanded.</p><p>An attacker needs to have the Editor role in order to change the value of a trace view visualization to contain JavaScript. </p><p>This means that vertical privilege escalation is possible, where a user with Editor role can change to a known password for a user having Admin role if the user with Admin role executes malicious JavaScript viewing a dashboard. </p><p>Users may upgrade to version 8.5.21, 9.2.13 and 9.3.8 to receive a fix. </p>"
                        }
                    ],
                    "value": "Grafana is an open-source platform for monitoring and observability. \n\nStarting with the 7.0 branch, Grafana had a stored XSS vulnerability in the trace view visualization. \n\nThe stored XSS vulnerability was possible due the value of a span's attributes/resources were not properly sanitized and this will be rendered when the span's attributes/resources are expanded.\n\nAn attacker needs to have the Editor role in order to change the value of a trace view visualization to contain JavaScript. \n\nThis means that vertical privilege escalation is possible, where a user with Editor role can change to a known password for a user having Admin role if the user with Admin role executes malicious JavaScript viewing a dashboard. \n\nUsers may upgrade to version 8.5.21, 9.2.13 and 9.3.8 to receive a fix. \n\n"
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-592",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-592"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "NONE",
                        "baseScore": 7.3,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "LOW",
                        "scope": "UNCHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N",
                        "version": "3.1"
                    },
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-79",
                            "description": "CWE-79",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "57da9224-a3e2-4646-9d0e-c4dc2e05e7da",
                "shortName": "GRAFANA",
                "dateUpdated": "2023-04-04T10:15:49.096Z"
            },
            "references": [
                {
                    "url": "https://grafana.com/security/security-advisories/cve-2023-0594/"
                }
            ],
            "source": {
                "discovery": "UNKNOWN"
            },
            "x_generator": {
                "engine": "Vulnogram 0.1.0-dev"
            }
        },
        "adp": [
            {
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://security.netapp.com/advisory/ntap-20230331-0007/"
                    },
                    {
                        "url": "https://grafana.com/security/security-advisories/cve-2023-0594/",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ],
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T05:17:50.130Z"
                }
            }
        ]
    }
}