Description
Loki queries with large limits can cause large memory allocations which can impact the availability of the service, depending on its deployment strategy.
Published: 2026-07-16
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Loki fails to enforce a maximum on the detected_fields query limit, allowing a user to request an arbitrarily large value. The resulting unbounded memory allocation can exhaust host resources, leading to out‑of‑memory termination or degraded performance. This flaw constitutes a denial‑of‑service vulnerability caused by uncontrolled memory usage (CWE‑770).

Affected Systems

Grafana Loki installations that have not applied the recent security patch are vulnerable. The advisory does not list specific version numbers, so any Loki release preceding the patched version should be treated as susceptible until the fix is verified.

Risk and Exploitability

The CVSS score of 7.5 indicates medium‑high severity. The EPSS score of less than 1% reflects a low present exploitation likelihood, and the flaw is not listed in CISA’s KEV catalog. It is inferred that an attacker can trigger the issue by issuing a Loki query with an excessively large limit over the network, causing the server to attempt a large memory allocation that may exhaust system resources.

Generated by OpenCVE AI on July 31, 2026 at 02:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Grafana Loki patch that implements bound checking for detected_fields queries.
  • Configure a safe maximum for detected_fields query limits or enforce limits through query whitelisting.
  • Deploy OS‑level resource constraints such as cgroups or container memory limits to cap Loki’s memory usage.
  • Enable monitoring and alerting for abnormal memory consumption or out‑of‑memory events to detect abuse.

Generated by OpenCVE AI on July 31, 2026 at 02:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 16 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-770
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 16 Jul 2026 05:00:00 +0000

Type Values Removed Values Added
First Time appeared Grafana
Grafana loki
Vendors & Products Grafana
Grafana loki

Thu, 16 Jul 2026 03:30:00 +0000

Type Values Removed Values Added
Description Loki queries with large limits can cause large memory allocations which can impact the availability of the service, depending on its deployment strategy.
Title Loki detected_fields query limits results in unbounded memory allocation
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GRAFANA

Published:

Updated: 2026-07-29T13:59:46.962Z

Reserved: 2026-01-05T09:26:06.215Z

Link: CVE-2026-21729

cve-icon Vulnrichment

Updated: 2026-07-16T12:45:43.079Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T02:30:05Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling