Incorrect Privilege AssignmentWeakness · CWE-266

CVE-2024-6322

MEDIUM · 5.4 CVSS v3.1 Published 2024-08-20
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
63/100
Remediation priority · Elevated
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
Access control for plugin data sources protected by the ReqActions json field of the plugin.json is bypassed if the user or service account is granted associated access to any other data source, as the ReqActions check was not scoped to each specific datasource. The account must have prior query access to the impacted datasource.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · moderate confidence

The ReqActions field in plugin.json defines access control requirements for data source plugins, but this check was not scoped to each specific data source. A user with query access to any one data source could bypass ReqActions protections on other data sources because the permission check was satisfied by access to any data source rather than the specific target data source.

MitigationThe fix requires modifying the access control logic to properly scope ReqActions validation to each individual data source, ensuring that permission checks are evaluated against the specific data source being accessed rather than any data source the account can query.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Scope
Changed
Confidentiality
None
Integrity
Low
Availability
Low

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify the data source plugin platform and version
    Locate the main application (likely Grafana or similar) and check its installed version using 'grafana-cli --version', 'grafana-server --version', or check the package manager/version file
    Affected if The installed version falls within any affected version range for this vulnerability
  2. List all configured data source plugins
    Check the data sources configuration directory (commonly 'provisioning/datasources' or 'conf/provisioning/datasources') or query the datasources API endpoint if accessible
    Affected if Multiple data source plugins are configured and at least one has ReqActions defined in its plugin.json
  3. Locate plugin.json files with ReqActions field
    Find plugin.json files for data source plugins in the plugins directory (typically 'data/plugins' or '/var/lib/grafana/plugins') and examine them for the ReqActions field
    Affected if Any plugin.json contains a ReqActions field defining access control requirements
  4. Verify access control scoping for data sources
    Review the access control configuration files (such as datasources.yml in provisioning or role-based access control settings) and test whether permission to one data source grants access to others protected by ReqActions
    Affected if A user with query access to only one data source can access other data sources that have ReqActions requirements

A user is affected if they run a version where ReqActions checks are not properly scoped per data source, allowing cross-data-source permission bypass.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

The fix requires modifying the access control logic to properly scope ReqActions validation to each individual data source, ensuring that permission checks are evaluated against the specific data source being accessed rather than any data source the account can query.

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation6.0 h
  • Testing3.0 h
  • Review / QA2.0 h
14.0 hours of engineering $2,490
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,984.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2024-6322 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2024-6322 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data