{"answers":{"affected":"1 open source package ship an affected version, including grafana. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-27876 in the wild and no public exploit code.","fix":"Upgrade grafana to a fixed version for your release line: 11.6.14, 12.1.10, 12.2.8 or 12.3.6.","what":"CVE-2026-27876 is a critical code injection vulnerability in Grafana Grafana, published on 27 Mar 2026. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-27876 and fix it if it is affected.\n\nWhat it is: CVE-2026-27876 is a critical code injection vulnerability in Grafana Grafana, published on 27 Mar 2026. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-27876 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- grafana (Bitnami): affected from 11.6.0; fixed in 11.6.14, 12.1.10, 12.2.8, 12.3.6, 12.4.2\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-2026-27876/ (Markdown: https://insights.sbomify.com/CVE-2026-27876/index.md)","id":"CVE-2026-27876","markdown":"https://insights.sbomify.com/CVE-2026-27876/index.md","name":"CVE-2026-27876","record":{"aliases":["BIT-grafana-2026-27876","GHSA-736h-475m-xhjc","MINI-22rf-pxhg-g4cj","MINI-2f89-787w-6p44","MINI-2q37-qh9f-464m","MINI-3832-r8mm-7hh8","MINI-4xq3-hwwm-pjjh","MINI-626r-6vxf-c8vc","MINI-6cjx-xqwh-cr76","MINI-7g2j-mf7m-5h4r","MINI-8hcc-r926-jjqv","MINI-cfg4-whc6-pwv2","MINI-fhjx-3j9p-fjv5","MINI-j83c-fvj6-gmpm","MINI-rhp2-224h-vp86","MINI-vr7c-7cfv-f553","MINI-wx5r-px5x-879p","MINI-xrfr-2q4g-5wmv","UBUNTU-CVE-2026-27876"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Grafana monitoring platform","requires_auth":"high_privilege","summary":"Remote attackers can execute arbitrary code via SQL Expressions in Grafana when the feature toggle is enabled, requiring an upgrade to mitigate.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GRAFANA","cpe":[{"product":"grafana","vendor":"grafana"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"},{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"A chained attack via SQL Expressions and a Grafana Enterprise plugin can lead to a remote arbitrary code execution impact (RCE). This is enabled by a feature in Grafana (OSS), so all users are always recommended to update to avoid future attack vectors going this path.\n\nOnly instances with the sqlExpressions feature toggle enabled are vulnerable.\n\nOnly instances in the following version ranges are affected:\n\n- 11.6.0 (inclusive) to 11.6.14 (exclusive): 11.6.14 has the fix. 11.5 and below are not affected.\n- 12.0.0 (inclusive) to 12.1.10 (exclusive): 12.1.10 has the fix. 12.0 did not receive an update, as it is end-of-life.\n- 12.2.0 (inclusive) to 12.2.8 (exclusive): 12.2.8 has the fix.\n- 12.3.0 (inclusive) to 12.3.6 (exclusive): 12.3.6 has the fix.\n- 12.4.0 (inclusive) to 12.4.2 (exclusive): 12.4.2 has the fix. 13.0.0 and above also have the fix: no v13 release is affected.","ecosystems":["Bitnami"],"exploits":{"exploitdb":0,"first_seen":"2026-03-30","github_poc":2,"max_poc_stars":3,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-03-30T14:19:58Z","kind":"github_poc","ref":"https://github.com/0xredash/CVE-2026-27876","stars":3,"title":"CVE-2026-27876"},{"date":"2026-09-05T23:39:36Z","kind":"github_poc","ref":"https://github.com/atiilla/CVE-2026-27876","stars":1,"title":"Grafana SQL Expressions Arbitrary File Write to RCE"}],"tier":"poc_unverified"},"has_fix":true,"headline":"RCE on Grafana via sqlExpressions","id":"CVE-2026-27876","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"grafana:grafana","products":["grafana:grafana"],"type":"code_injection","year":"2026"},"n_packages":1,"n_references":1,"next":{"headline":"Public dashboards discloses all direct mode datasources","id":"CVE-2026-27877"},"packages":[{"ecosystem":"Bitnami","fixed":["11.6.14","12.1.10","12.2.8","12.3.6","12.4.2"],"introduced":["11.6.0","12.0.0","12.2.0","12.3.0","12.4.0"],"last_affected":[],"package":"grafana","purl":"pkg:bitnami/grafana","source":"BIT-grafana-2026-27876"}],"prev":{"headline":"Simplex Incident Manager Clear Test","id":"CVE-2026-27875"},"products":["Grafana"],"published":"2026-03-27","related":[{"cvss_score":7.5,"headline":"Grafana Path Traversal","id":"CVE-2021-43798","kev_date_added":"2025-10-09","published":"2021-12-07"},{"cvss_score":10,"headline":"Incorrect privilege assignment","id":"CVE-2025-41115","kev_date_added":null,"published":"2025-11-21"},{"cvss_score":9.8,"headline":"Grafana vulnerable to race condition allowing privilege escalation","id":"CVE-2022-39328","kev_date_added":null,"published":"2022-11-08"},{"cvss_score":9.8,"headline":"Auth bypass in n/a","id":"CVE-2022-28660","kev_date_added":null,"published":"2022-05-20"},{"cvss_score":9.8,"headline":"Information disclosure in n/a","id":"CVE-2022-26148","kev_date_added":null,"published":"2022-03-21"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2018-15727","kev_date_added":null,"published":"2018-08-29"},{"cvss_score":9.4,"headline":"Grafana SQL Expressions allow for remote code execution","id":"CVE-2024-9264","kev_date_added":null,"published":"2024-10-18"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-27","vendors":["Grafana"]},"summary":"Remote attackers can execute arbitrary code via SQL Expressions in Grafana when the feature toggle is enabled, requiring an upgrade to mitigate.","url":"https://insights.sbomify.com/CVE-2026-27876/"}