GHSA-fcw4-wwqm-m8cf

Suggest an improvement
Source
https://github.com/advisories/GHSA-fcw4-wwqm-m8cf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-fcw4-wwqm-m8cf/GHSA-fcw4-wwqm-m8cf.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-fcw4-wwqm-m8cf
Aliases
Downstream
MINI (2)
Published
2026-06-19T20:51:16Z
Modified
2026-06-25T19:56:37Z
Severity
  • 6.4 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N CVSS Calculator
Summary
Grafana Operator: Privilege escalation from namespace admin to cluster admin via GrafanaDashboard jsonnetLib fileName
Details

We have released version 5.24.0 of the Grafana Operator. This patch includes a MODERATE severity security fix for a path traversal/privilege escalation vulnerability in the Grafana Operator.

Summary

The Grafana Operator supports loading dashboards & library panels using the jsonnet data templating language. The jsonnet expression is evaluated in the context of the operator manager pod.

Impact

It is possible for a malicious user who can create Dashboard or LibraryPanel resources for a Grafana instance to obtain the Kubernetes service account token of the Grafana Operator manager.

Affected versions

All Grafana Operator versions <= 5.23

Solutions and mitigations

All installations should be upgraded as soon as possible.

As a workaround, the following ValidatingAdmissionPolicy prevent the creation or modification of jsonnet based resources:

apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicy
metadata:
  name: "prevent-jsonnet-dashboards"
spec:
  failurePolicy: Fail
  matchConstraints:
    resourceRules:
      - apiGroups: ["grafana.integreatly.org"]
        apiVersions: ["v1beta1"]
        operations: ["CREATE", "UPDATE"]
        resources: ["grafanadashboards", "grafanalibrarypanels"]
  validations:
    - expression: "!has(object.spec.jsonnetLib)"
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicyBinding
metadata:
  name: "prevent-jsonnet-dashboards-clusterwide"
spec:
  policyName: "prevent-jsonnet-dashboards"
  validationActions: [Deny]

Acknowledgement

We would like to thank Artem Cherezov for responsibly disclosing the vulnerability.

Database specific
{
    "cwe_ids": [
        "CWE-200",
        "CWE-22"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-06-19T20:51:16Z",
    "nvd_published_at": null,
    "severity": "MODERATE"
}
References

Affected packages

Go / github.com/grafana/grafana-operator/v5

Package

Name
github.com/grafana/grafana-operator/v5
View open source insights on deps.dev
Purl
pkg:golang/github.com/grafana/grafana-operator/v5

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
5.24.0

Database specific

last_known_affected_version_range
"<= 5.23.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-fcw4-wwqm-m8cf/GHSA-fcw4-wwqm-m8cf.json"

Go / github.com/grafana/grafana-operator

Package

Name
github.com/grafana/grafana-operator
View open source insights on deps.dev
Purl
pkg:golang/github.com/grafana/grafana-operator

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
2.0.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-fcw4-wwqm-m8cf/GHSA-fcw4-wwqm-m8cf.json"