{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-9264",
        "assignerOrgId": "57da9224-a3e2-4646-9d0e-c4dc2e05e7da",
        "state": "PUBLISHED",
        "assignerShortName": "GRAFANA",
        "dateReserved": "2024-09-26T20:15:46.544Z",
        "datePublished": "2024-10-18T03:20:52.489Z",
        "dateUpdated": "2024-10-18T14:34:57.522Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "collectionURL": "https://github.com/grafana/grafana/",
                    "defaultStatus": "unaffected",
                    "product": "Grafana",
                    "vendor": "Grafana",
                    "versions": [
                        {
                            "changes": [
                                {
                                    "at": "+security-01",
                                    "status": "unaffected"
                                }
                            ],
                            "lessThan": "11.0.5",
                            "status": "affected",
                            "version": "11.0.0",
                            "versionType": "semver"
                        },
                        {
                            "changes": [
                                {
                                    "at": "+security-01",
                                    "status": "unaffected"
                                }
                            ],
                            "lessThan": "11.1.6",
                            "status": "affected",
                            "version": "11.1.0",
                            "versionType": "semver"
                        },
                        {
                            "changes": [
                                {
                                    "at": "+security-01",
                                    "status": "unaffected"
                                }
                            ],
                            "lessThan": "11.2.1",
                            "status": "affected",
                            "version": "11.2.0",
                            "versionType": "semver"
                        },
                        {
                            "changes": [
                                {
                                    "at": "+security-01",
                                    "status": "unaffected"
                                }
                            ],
                            "lessThan": "11.0.6",
                            "status": "affected",
                            "version": "11.0.0",
                            "versionType": "semver"
                        },
                        {
                            "changes": [
                                {
                                    "at": "+security-01",
                                    "status": "unaffected"
                                }
                            ],
                            "lessThan": "11.1.7",
                            "status": "affected",
                            "version": "11.1.0",
                            "versionType": "semver"
                        },
                        {
                            "changes": [
                                {
                                    "at": "+security-01",
                                    "status": "unaffected"
                                }
                            ],
                            "lessThan": "11.2.2",
                            "status": "affected",
                            "version": "11.2.0",
                            "versionType": "semver"
                        }
                    ]
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "The SQL Expressions experimental feature of Grafana allows for the evaluation of `duckdb` queries containing user input. These queries are insufficiently sanitized before being passed to `duckdb`, <span style=\"background-color: transparent;\">leading to a command injection and local file inclusion vulnerability. Any user with the VIEWER or higher permission is capable of executing this attack.  </span>The `duckdb` binary must be present in Grafana's $PATH for this attack to function; by default, this binary is not installed in Grafana distributions.<br>"
                        }
                    ],
                    "value": "The SQL Expressions experimental feature of Grafana allows for the evaluation of `duckdb` queries containing user input. These queries are insufficiently sanitized before being passed to `duckdb`, leading to a command injection and local file inclusion vulnerability. Any user with the VIEWER or higher permission is capable of executing this attack.  The `duckdb` binary must be present in Grafana's $PATH for this attack to function; by default, this binary is not installed in Grafana distributions."
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-242",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-242: Code Injection"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "Automatable": "NOT_DEFINED",
                        "Recovery": "NOT_DEFINED",
                        "Safety": "NOT_DEFINED",
                        "attackComplexity": "LOW",
                        "attackRequirements": "NONE",
                        "attackVector": "NETWORK",
                        "baseScore": 9.4,
                        "baseSeverity": "CRITICAL",
                        "privilegesRequired": "LOW",
                        "providerUrgency": "NOT_DEFINED",
                        "subAvailabilityImpact": "HIGH",
                        "subConfidentialityImpact": "HIGH",
                        "subIntegrityImpact": "HIGH",
                        "userInteraction": "NONE",
                        "valueDensity": "NOT_DEFINED",
                        "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H",
                        "version": "4.0",
                        "vulnAvailabilityImpact": "HIGH",
                        "vulnConfidentialityImpact": "HIGH",
                        "vulnIntegrityImpact": "HIGH",
                        "vulnerabilityResponseEffort": "NOT_DEFINED"
                    },
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ]
                },
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "HIGH",
                        "baseScore": 9.9,
                        "baseSeverity": "CRITICAL",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "LOW",
                        "scope": "CHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
                        "version": "3.1"
                    },
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-94",
                            "description": "CWE-94: Improper Control of Generation of Code ('Code Injection')",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "57da9224-a3e2-4646-9d0e-c4dc2e05e7da",
                "shortName": "GRAFANA",
                "dateUpdated": "2024-10-18T03:20:52.489Z"
            },
            "references": [
                {
                    "url": "https://grafana.com/security/security-advisories/cve-2024-9264/"
                }
            ],
            "source": {
                "discovery": "INTERNAL"
            },
            "title": "Grafana SQL Expressions allow for remote code execution",
            "x_generator": {
                "engine": "Vulnogram 0.2.0"
            }
        },
        "adp": [
            {
                "affected": [
                    {
                        "vendor": "grafana",
                        "product": "grafana",
                        "cpes": [
                            "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unaffected",
                        "versions": [
                            {
                                "version": "11.0.0",
                                "status": "affected",
                                "lessThan": "11.0.5\\+security-01",
                                "versionType": "semver"
                            },
                            {
                                "version": "11.0.6",
                                "status": "affected",
                                "lessThan": "11.0.6\\+security-01",
                                "versionType": "semver"
                            },
                            {
                                "version": "11.1.0",
                                "status": "affected",
                                "lessThan": "11.1.6\\+security-01",
                                "versionType": "semver"
                            },
                            {
                                "version": "11.1.7",
                                "status": "affected",
                                "lessThan": "11.1.7\\+security-01",
                                "versionType": "semver"
                            },
                            {
                                "version": "11.2.0",
                                "status": "affected",
                                "lessThan": "11.2.1\\+security-01",
                                "versionType": "semver"
                            },
                            {
                                "version": "11.2.2",
                                "status": "affected",
                                "lessThan": "11.2.2\\+security-01",
                                "versionType": "semver"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-10-18T14:12:08.366972Z",
                                "id": "CVE-2024-9264",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-10-18T14:34:57.522Z"
                }
            }
        ]
    }
}