CVE-2026-21728: Github.com/grafana/tempo Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-p4r4-xvrq-gvmc
CVSS 7.5
CWE-400
Published
Advisory Summary

CVE-2026-21728 is a HIGH (CVSS 7.5) remote code execution vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Github.com/grafana/tempo libraries in the Go ecosystem. The issue involves grafana tempo has an uncontrolled resource consumption issue. Remediation is available by upgrading affected packages to version 2.8.4, 2.9.2, 2.10.2.

CVE-2026-21728 at a Glance

CVE Identifier CVE-2026-21728
GHSA Identifier GHSA-p4r4-xvrq-gvmc
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Github.com/grafana/tempo
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-21728

To remediate this vulnerability, upgrade all affected Github.com/grafana/tempo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/grafana/tempo fixed: 2.8.4
Upgrade github.com/grafana/tempo to 2.8.4
github.com/grafana/tempo fixed: 2.9.2
Upgrade github.com/grafana/tempo to 2.9.2
github.com/grafana/tempo fixed: 2.10.2
Upgrade github.com/grafana/tempo to 2.10.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/grafana/tempo

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-21728, inspect your project dependencies for Github.com/grafana/tempo:

inspect dependencies for github.com/grafana/tempo

Analyze the terminal output to locate any version of Github.com/grafana/tempo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.8.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Github.com/grafana/tempo, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Tempo queries with large limits can cause large memory allocations which can impact the availability of the service, depending on its deployment strategy. Mitigation can be done by setting max_result_limit in the search config, e.g. to 262144 (2^18).

CVE-2026-21728 Affected Github.com/grafana/tempo Versions

3 component(s)
Fixed Versions:
2.8.42.9.22.10.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/grafana/tempo
Go
≥ 1.3.0
< 2.8.4
2.8.4
github.com/grafana/tempo
Go
≥ 2.9.0
< 2.9.2
2.9.2
github.com/grafana/tempo
Go
≥ 2.10.0
< 2.10.2
2.10.2

References

Frequently Asked Questions

What is CVE-2026-21728?
CVE-2026-21728 is a security vulnerability in Github.com/grafana/tempo involving Grafana Tempo has an Uncontrolled Resource Consumption issue under CWE-400: Uncontrolled Resource Consumption.
Which Github.com/grafana/tempo versions are affected?
Affected versions include releases prior to 2.8.4, 2.9.2, 2.10.2 across affected packages: github.com/grafana/tempo.
What version fixes CVE-2026-21728?
Upgrading to 2.8.4, 2.9.2, 2.10.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/grafana/tempo affected?
Yes, github.com/grafana/tempo is affected in releases prior to 2.8.4, 2.9.2, 2.10.2. Upgrade your dependency to 2.8.4, 2.9.2, 2.10.2 or later.
What is the CVSS score of CVE-2026-21728?
CVE-2026-21728 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-21728?
CVE-2026-21728 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Go dependencies for CVE-2026-21728?
Run the dependency tree command: 'inspect dependencies for github.com/grafana/tempo'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-p4r4-xvrq-gvmc",
  "modified" : "2026-05-05T00:24:31Z",
  "published" : "2026-04-24T09:30:30Z",
  "aliases" : [ "CVE-2026-21728" ],
  "summary" : "Grafana Tempo has an Uncontrolled Resource Consumption issue",
  "details" : "Tempo queries with large limits can cause large memory allocations which can impact the availability of the service, depending on its deployment strategy.\n\nMitigation can be done by setting max_result_limit in the search config, e.g. to 262144 (2^18).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/tempo"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.3.0"
      }, {
        "fixed" : "2.8.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/tempo"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.9.0"
      }, {
        "fixed" : "2.9.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/tempo"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.10.0"
      }, {
        "fixed" : "2.10.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-21728"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/tempo/pull/6525"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/tempo/commit/650eb1985a0776789c8564122990f588a742356f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/grafana/tempo"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/tempo/blob/4dc3e5b0d3463a0b67498b662b85a148698b4afd/docs/sources/tempo/release-notes/version-2/v2-10.md?plain=1#L328"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/tempo/blob/4dc3e5b0d3463a0b67498b662b85a148698b4afd/docs/sources/tempo/release-notes/version-2/v2-8.md?plain=1#L251"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/tempo/blob/4dc3e5b0d3463a0b67498b662b85a148698b4afd/docs/sources/tempo/release-notes/version-2/v2-9.md?plain=1#L224"
  }, {
    "type" : "WEB",
    "url" : "https://grafana.com/security/security-advisories/cve-2026-21728"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-05T00:24:31Z",
    "nvd_published_at" : "2026-04-24T09:16:03Z"
  }
}